Skip to content

Instantly share code, notes, and snippets.

@rob-gordon
Last active June 16, 2017 14:28
Show Gist options
  • Select an option

  • Save rob-gordon/7ec08bc3917626a42f95a37778f23d71 to your computer and use it in GitHub Desktop.

Select an option

Save rob-gordon/7ec08bc3917626a42f95a37778f23d71 to your computer and use it in GitHub Desktop.
Useful Web Video ffmpeg commands
# converts an mp4 to webm
ffmpeg -i input-file.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output-file.webm
# grabs the first frame of the video for using as the <video> poster
ffmpeg -i input-file.mp4 -vframes 1 -f image2 video-poster.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment