Skip to content

Instantly share code, notes, and snippets.

@nomisoft
Created November 1, 2019 19:12
Show Gist options
  • Save nomisoft/428a217ad91dd5e12d55b6d37ef201a6 to your computer and use it in GitHub Desktop.
Save nomisoft/428a217ad91dd5e12d55b6d37ef201a6 to your computer and use it in GitHub Desktop.
FFMPEG video resize
// Resize to 720px width, scale height and avoid "height not divisible by 2" errors
ffmpeg -i input.mp4 -filter:v scale="trunc(oh*a/2)*2:720" -c:a copy output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment