Skip to content

Instantly share code, notes, and snippets.

@touhonoob
Last active July 4, 2020 12:00
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 touhonoob/35bdc4c21f8f52ea60ed862d009bf302 to your computer and use it in GitHub Desktop.
Save touhonoob/35bdc4c21f8f52ea60ed862d009bf302 to your computer and use it in GitHub Desktop.
Transcode h265 to h264 using ffmpeg cuda. Lowering 28 results in better quality & bigger file size
ffmpeg -loglevel verbose -hwaccel cuda -i input.mkv -c:v h264_nvenc -pix_fmt yuv444p -rc vbr -cq 28 -qmin 28 -qmax 28 -tune animation output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment