Last active
June 16, 2017 14:28
-
-
Save rob-gordon/7ec08bc3917626a42f95a37778f23d71 to your computer and use it in GitHub Desktop.
Useful Web Video ffmpeg commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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