Skip to content

Instantly share code, notes, and snippets.

@np1
Created May 28, 2013 18:27
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 np1/5664953 to your computer and use it in GitHub Desktop.
Save np1/5664953 to your computer and use it in GitHub Desktop.
ffmpeg and mencoder useful commands
# Convert video from one format to another
# (uses file extensions to determine format)
ffmpeg -i inputfile.mp4 outputfile.flv
# Resize a video
# the -1 lets ffmpeg choose the width, maintaining aspect ratio
ffmpeg -i outfile.mp4 -vf scale=720:-1 resized.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment