Skip to content

Instantly share code, notes, and snippets.

@aphex3k
Created November 28, 2018 05:45
Show Gist options
  • Save aphex3k/b3dac3a42695f25e575cd696522f12fe to your computer and use it in GitHub Desktop.
Save aphex3k/b3dac3a42695f25e575cd696522f12fe to your computer and use it in GitHub Desktop.
FFMPEG transcoding using NVENC

ffmpeg -y -hwaccel cuvid -c:v mpeg2_cuvid -i input.ts -c:v h264_nvenc -preset slow -profile:v high -level 4.2 -vf format=yuv420p -rc vbr_hq -qmin 23 -qmax 32 -maxrate 5M -bufsize 10M -c:a copy -map 0:0 -map 0:1 output.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment