diff options
-rwxr-xr-x | dot/local/bin/webm | 7 |
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 | ||
2 | input=$1 | ||
3 | shift | ||
4 | output=${input%.*}.webm | ||
5 | [ -f "$input" -a ! -e "$output" ] || exit 1 | ||
6 | |||
7 | ffmpeg -i "$input" -c:v libvpx -c:a libvorbis "$@" "$output" | ||