diff options
Diffstat (limited to 'dot/local/bin/webencode')
-rwxr-xr-x | dot/local/bin/webencode | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dot/local/bin/webencode b/dot/local/bin/webencode new file mode 100755 index 0000000..ede6b72 --- /dev/null +++ b/dot/local/bin/webencode | |||
@@ -0,0 +1,14 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | case $# in | ||
4 | 2) INPUT=$1 | ||
5 | OUTPUT=$2 | ||
6 | ;; | ||
7 | 1) INPUT=$1 | ||
8 | OUTPUT=${1%.*}.web.mp4 | ||
9 | ;; | ||
10 | *) exit 1 | ||
11 | ;; | ||
12 | esac | ||
13 | |||
14 | ffmpeg -hide_banner -i "$INPUT" -c:a aac -c:v libx264 "$OUTPUT" | ||