Skip to content

Instantly share code, notes, and snippets.

@bigdawggi
Last active January 20, 2017 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bigdawggi/254400ae2ad427ada1bec86c534da92b to your computer and use it in GitHub Desktop.
Save bigdawggi/254400ae2ad427ada1bec86c534da92b to your computer and use it in GitHub Desktop.
Quick cheatsheet for ffmpeg

Movie Conversions with ffmpeg

NOTE About Vimeo: Looks like they want 5M for bitrate - I think that'll mean, just switching the 2M to 5M in the commands below.

This video’s bit rate is only 1984 kbit/s, which is lower than what we recommend for H.264 video. Your video might not look as nice as it should. For 1280x720 video, we recommend a data rate of at least 5000 kbit/s. Learn more about our recommended compression settings.

Convert iMovie mp4 to webm

No audio...remove "-an" if you want audio

ffmpeg -i dm-720p.30sec.mp4 -c:v libvpx -minrate 2M -maxrate 2M -b:v 2M -an dm-720p.webm

Compress iMovie mp4 to an "optimized mp4"

No audio...remove "-an" if you want audio

ffmpeg -i dm-720p.30sec.mp4 -minrate 2M -maxrate 2M -b:v 2M -an dm-720p.optimized.mp4

Links

Speeding up (<1) and slowing down (>1) video

https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video

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