Skip to content

Instantly share code, notes, and snippets.

@He1my
Last active September 5, 2022 13:41
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 He1my/76bc1a6211790a8445530f031f13a9d8 to your computer and use it in GitHub Desktop.
Save He1my/76bc1a6211790a8445530f031f13a9d8 to your computer and use it in GitHub Desktop.
ffmpeg -i in.mp4 -vf scale=-1:720 -vcodec libx265 -crf 29 -c:a copy out.mkv
Scale down 4K video , change width only, change frame rate
ffmpeg -i in.mp4 -vf "fps=24,scale=2880:-1,format=yuv420p" -c:v libx264 -crf 20 -c:a copy out.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment