Skip to content

Instantly share code, notes, and snippets.

@chrisknepper
Created June 12, 2014 02:03
Show Gist options
  • Save chrisknepper/e26ea1185821f3c122b7 to your computer and use it in GitHub Desktop.
Save chrisknepper/e26ea1185821f3c122b7 to your computer and use it in GitHub Desktop.
Simple WebM Conversion with FFmpeg
#Converts a file named "input.mkv" to a webm file named "output.webm"
#The file will be a 20-second clip of "input.mkv," beginning at 201 seconds (3 minutes and 21 seconds)
#ffmpeg must be in your $PATH or you must be in the same directory as it
#On Windows, add ".exe" to "ffmpeg"
ffmpeg -ss 201 -t 20 -i input.mkv -qmin 10 -qmax 42 -f webm -threads 4 -vcodec libvpx -acodec libvorbis output.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment