Skip to content

Instantly share code, notes, and snippets.

@ethanpil
Created December 26, 2023 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethanpil/da357cd249ad9722dce7fe922442f080 to your computer and use it in GitHub Desktop.
Save ethanpil/da357cd249ad9722dce7fe922442f080 to your computer and use it in GitHub Desktop.
FFMPEG Reduce Video Size
#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