Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Resize / scale a video with FFmpeg

Resize / scale a video with FFmpeg

  • Scale the input.mp4 to a height of 600px.
  • Let FFmpeg choose a number which is divisible by 2 to avoid the not divisible by 2 error.
ffmpeg -i input.mp4 -vf scale=-2:600,setsar=1:1 ouput.mp4

Related

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