summaryrefslogtreecommitdiff
path: root/dot/local/bin/webencode
diff options
context:
space:
mode:
Diffstat (limited to 'dot/local/bin/webencode')
-rwxr-xr-xdot/local/bin/webencode14
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
3case $# in
4 2) INPUT=$1
5 OUTPUT=$2
6 ;;
7 1) INPUT=$1
8 OUTPUT=${1%.*}.web.mp4
9 ;;
10 *) exit 1
11 ;;
12esac
13
14ffmpeg -hide_banner -i "$INPUT" -c:a aac -c:v libx264 "$OUTPUT"