Created
November 1, 2019 19:12
-
-
Save nomisoft/428a217ad91dd5e12d55b6d37ef201a6 to your computer and use it in GitHub Desktop.
FFMPEG video resize
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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