Created
February 6, 2021 14:44
-
-
Save udasan/0d67796bb160bc2a87662aaff1c55cf2 to your computer and use it in GitHub Desktop.
shrink video by ffmpeg
This file contains 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
@echo off | |
set INPUT=%1 | |
set OUTPUT=%2 | |
set WIDTH=%3 | |
ffmpeg -i %INPUT% -vf "scale=%WIDTH%:trunc(ih*%WIDTH%/iw/2)*2" -movflags +faststart -c:v libx264 -c:a copy -crf 28 %OUTPUT% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment