Skip to content

Instantly share code, notes, and snippets.

@salamanders
Created November 13, 2015 21:31
Show Gist options
  • Save salamanders/9daa6e855c9f0b190a73 to your computer and use it in GitHub Desktop.
Save salamanders/9daa6e855c9f0b190a73 to your computer and use it in GitHub Desktop.
ffmpeg reasonable vp9 encoding
ffmpeg -ss 00:09:06 -i myfile.flv -c:v libvpx-vp9 -pass 1 -b:v 2000K -threads 8 -speed 4 \
-tile-columns 6 -frame-parallel 1 \
-an -to 02:43:23 -loglevel quiet -f webm /dev/null \
&& ffmpeg -ss 00:09:06 -i myfile.flv -c:v libvpx-vp9 -pass 2 -b:v 2000K -threads 8 -speed 1 \
-tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 \
-c:a libvorbis -b:a 128k -to 02:43:23 -loglevel quiet -f webm myfile.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment