Skip to content

Instantly share code, notes, and snippets.

@outsidecontext
Created December 15, 2015 15:45
Show Gist options
  • Select an option

  • Save outsidecontext/84b713aea5af45b1cb12 to your computer and use it in GitHub Desktop.

Select an option

Save outsidecontext/84b713aea5af45b1cb12 to your computer and use it in GitHub Desktop.
Useful ffmpeg commands
# convert mov to mp4
ffmpeg -i input.mov -vcodec h264 -acodec aac -strict -2 output.mp4
# convert and resize height (width will auto scale to match input dimensions)
ffmpeg -i input.mov -vf scale=-1:height -vcodec h264 output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment