Skip to content

Instantly share code, notes, and snippets.

@abhikhatri
Created October 11, 2016 11:11
Show Gist options
  • Save abhikhatri/27a643158563a566f0eacb98452ddd5f to your computer and use it in GitHub Desktop.
Save abhikhatri/27a643158563a566f0eacb98452ddd5f to your computer and use it in GitHub Desktop.
//Resize to Width Height
ffmpeg -i input.mp4 -s WxH -qscale 0 -vcodec mpeg4 output.mp4
//Compress the output file
ffmpeg -i output.mp4 -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -vcodec h264 -acodec mp2 output-final.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment