mirror of
https://github.com/tanrax/bash-folders.git
synced 2024-12-22 18:25:35 +01:00
Update files
This commit is contained in:
parent
e599f1c7f7
commit
751cb6abc8
41
README.md
41
README.md
@ -2,32 +2,47 @@
|
||||
|
||||
Collection of Bash scripts that execute functionalities in folders.
|
||||
|
||||
## Video to mp4
|
||||
## Video optmizer
|
||||
|
||||
Folder that watches when new videos are added to a folder and optimizes them.
|
||||
|
||||
### Requirements
|
||||
|
||||
- `inotify-tools`
|
||||
- `ffmpeg`
|
||||
|
||||
Example in Debian.
|
||||
|
||||
``` sh
|
||||
sudo apt install inotify-tools ffmpeg
|
||||
```
|
||||
|
||||
### Install
|
||||
|
||||
|
||||
``` sh
|
||||
curl -o dynamic-folders-video-optimizer https://raw.githubusercontent.com/tanrax/dynamic-folders/main/dynamic-folders-video-optimizer.sh && chmod +x dynamic-folders-video-optimizer && sudo mv dynamic-folders-video-optimizer /usr/local/bin
|
||||
```
|
||||
|
||||
### Run
|
||||
|
||||
``` sh
|
||||
dynamic-folders-video-optimizer [folder to watch]
|
||||
```
|
||||
|
||||
### Service
|
||||
|
||||
```sh
|
||||
wget /etc/systemd/system/github-runner-glosa.service
|
||||
curl -o maza https://raw.githubusercontent.com/tanrax/maza-ad-blocking/master/maza && chmod +x maza && sudo mv maza /usr/local/bin
|
||||
```
|
||||
|
||||
```ini
|
||||
[Unit]
|
||||
Description=Github runner glosa
|
||||
After=network.target
|
||||
Description=Folder that watches when new videos are added to a folder and optimizes them.
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
User=github
|
||||
Group=github
|
||||
Restart=always
|
||||
WorkingDirectory=/home/github/actions-runner
|
||||
ExecStart=/home/user/
|
||||
User=[user]
|
||||
Group=[user]
|
||||
WorkingDirectory=/home/[user]
|
||||
ExecStart=dynamic-folders-video-optimizer [folder to watch]
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# --
|
||||
# Description: Script that watches when new videos are added to a folder and optimizes them to mp4 for Web.
|
||||
# Description: Script that watches when new videos are added to a folder and optimizes them.
|
||||
# --
|
||||
# Requirements: Install inotify-tools and ffmpeg
|
||||
# Example Debian: $sudo apt install inotify-tools ffmpeg
|
||||
@ -29,7 +29,7 @@ usage() {
|
||||
|
||||
cat << EOF
|
||||
Usage: $PROGNAME [OPTION]
|
||||
Watches when new videos are added to a folder and optimizes them to mp4 for Web.
|
||||
Watches when new videos are added to a folder and optimizes them.
|
||||
Options:
|
||||
--folder [path] Folder path where new video will be monitored and optimized
|
||||
--help Display this usage message and exit
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
Loading…
Reference in New Issue
Block a user