Created
December 26, 2023 22:29
-
-
Save ethanpil/da357cd249ad9722dce7fe922442f080 to your computer and use it in GitHub Desktop.
FFMPEG Reduce Video Size
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
#Reduce input file resolution by half :: -vf "scale=trunc(iw/4)*2:trunc(ih/4)*2" | |
#Reduce quality (Higher is lower qualuty) :: -crf 24 | |
#Codec :: -vcodec libx265 OR -vcodec libx264 | |
ffmpeg -i input.mp4 -vf "scale=trunc(iw/4)*2:trunc(ih/4)*2" -vcodec libx264 -crf 24 output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment