summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdot/local/bin/webm7
1 files changed, 7 insertions, 0 deletions
diff --git a/dot/local/bin/webm b/dot/local/bin/webm
new file mode 100755
index 0000000..5c200ca
--- /dev/null
+++ b/dot/local/bin/webm
@@ -0,0 +1,7 @@
1#!/bin/sh
2input=$1
3shift
4output=${input%.*}.webm
5[ -f "$input" -a ! -e "$output" ] || exit 1
6
7ffmpeg -i "$input" -c:v libvpx -c:a libvorbis "$@" "$output"