diff options
author | Andrew Cady <d@jerkface.net> | 2018-06-12 16:55:24 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2018-06-12 17:07:12 -0400 |
commit | 49a3bb3566362bea8ea11bcaf9e1b5b015501ee3 (patch) | |
tree | 6d099124d2d55907508f78622b4507085b0342a2 /dot/local/bin/webm | |
parent | 286c48b3dc414e8273504b1dee665f9694d40d2b (diff) |
webm command
Diffstat (limited to 'dot/local/bin/webm')
-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" | ||