Skip to content

Instantly share code, notes, and snippets.

@stong
Created April 30, 2022 22:38
Show Gist options
  • Save stong/c03e0f7b2123bef5f50cae26bd21bb51 to your computer and use it in GitHub Desktop.
Save stong/c03e0f7b2123bef5f50cae26bd21bb51 to your computer and use it in GitHub Desktop.
nvdec/nvenc full hardware transcode and downscale, avoiding autorotation problem
ffmpeg -noautorotate -y -hwaccel cuvid -c:v hevc_cuvid -hwaccel_output_format cuda -resize 1280x720 -i input.mov -c:v h264_nvenc test.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment