Skip to content

Instantly share code, notes, and snippets.

@derofim
Created September 12, 2018 20:21
Show Gist options
  • Save derofim/9a5c650b6cc308fdbe416e000b31e7bf to your computer and use it in GitHub Desktop.
Save derofim/9a5c650b6cc308fdbe416e000b31e7bf to your computer and use it in GitHub Desktop.
ffmpeg mp4 to webm/ogv
ffmpeg -i local-video.mp4 -c:v libvpx -b:v 1M -c:a libvorbis output.webm
ffmpeg -i local-video.mp4 -c:v libtheora -q:v 7 -c:a libvorbis -q:a 4 output.ogv
https://superuser.com/questions/1096841/how-do-i-convert-mp4-to-ogv-while-still-retaining-the-same-quality-using-ffmpeg
https://askubuntu.com/questions/351593/bulk-batch-convert-mp4-and-m4v-files-to-webm-via-command-line
@derofim
Copy link
Author

derofim commented Sep 12, 2018

ffmpeg -i inputfile.mkv -vf "select=eq(n,0)" -q:v 31 output_image.png

https://stackoverflow.com/questions/4425413/how-to-extract-the-1st-frame-and-restore-as-an-image-with-ffmpeg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment