summaryrefslogtreecommitdiff
path: root/dot/local/bin/webm
blob: 5c200cabf3dfebc543dc515acf7fd44a4e9e1cbf (plain)
1
2
3
4
5
6
7
#!/bin/sh
input=$1
shift
output=${input%.*}.webm
[ -f "$input" -a ! -e "$output" ] || exit 1

ffmpeg -i "$input" -c:v libvpx -c:a libvorbis "$@" "$output"