Skip to content

Instantly share code, notes, and snippets.

@davidonet
Created November 15, 2011 14:21
Show Gist options
  • Save davidonet/1367188 to your computer and use it in GitHub Desktop.
Save davidonet/1367188 to your computer and use it in GitHub Desktop.
ffmpeg mp4 to 720p webm
for f in ../*.mp4; do\
ffmpeg -i $f -threads 4 -vpre libvpx-720p -vb 3900k -pass 1 -an -f webm -s 1280x720 -y /dev/null -passlogfile `basename $f .mp4`.log;\
ffmpeg -i $f -threads 4 -vpre libvpx-720p -vb 3900k -pass 2 -acodec libvorbis -ab 100k -f webm -s 1280x720 -passlogfile `basename $f .mp4`.log -y `basename $f .mp4`.webm; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment