

h264_cuvid: Nvidia CUVID H264 decoder (codec h264) h263_cuvid: Nvidia CUVID H263 decoder (codec h263)


Now, for 10-bit encodes, you can now use the -hwaccel cuvid option (as the latest NVENC SDK enables FFmpeg to do full HDR transcoding), combined with -c:v, which can be any of the following entries based on the source content codec:

See the list available on your system as shown here.Īdd the appropriate CUVID decoder to the command line based on the source media file:įor transcoding 8-bit H.264/AVC content to the same or to 8-bit HEVC content as the final result, append -hwaccel cuvid -c:v h264_cuvid to the ffmpeg arguments before the -i option.įor transcoding 8-bit HEVC content to the same or to 8-bit H.264 content as the final result, append -hwaccel cuvid -c:v hevc_nvenc to the ffmpeg arguments before the -i option.įollow the same guide in transcoding 8-bit content supported by CUVID's decoder as shown above, linked to the previous gist, as per the input format. Note that this encode method lacks 10-bit support and is in the 4:2:0 color space.Įxtra notes: For full hardware-accelerated transcodes, you may also want to use one of the many Nvidia CUVID-based accelerated decoders available in your FFmpeg build. c:v hevc_nvenc -profile main -preset slow -rc vbr_hq \ Now, to do a simple NVENC encode in 1080p, (that will even work for Maxwell Gen 2 (GM200x) series), start with: ffmpeg -i \ If you've built ffmpeg as instructed here on Linux and the ffmpeg binary is in your path, you can do fast HEVC encodes as shown below, using NVIDIA's NPP's libraries to vastly speed up the process. Encoding high-quality HEVC content with FFmpeg - based NVENC encoder on supported hardware: tl dr įfmpeg -hide_banner -i input -c:v hevc_nvenc -preset hq -rc constqp -global_quality 21 -c:a libfdk_aac -ar:a 48000 -channel_layout:a 5.1 -ab:a 640k outputįfmpeg -hide_banner -i input -c:v hevc_nvenc -preset hq -rc vbr_hq -b:v 30000k -qmin 17 -qmax 21 -c:a libfdk_aac -ar:a 48000 -channel_layout:a 5.1 -ab:a 640k outputįfmpeg -hide_banner -hwaccel cuvid -c:v h264_cuvid/hevc_nvenc -i input -c:v hevc_nvenc -preset hq -rc vbr_hq -rc-lookahead 32 -b:v 30000k output Original
