![]() ![]() ![]() mpeg2_cuvid: Nvidia CUVID MPEG2VIDEO decoder (codec mpeg2video) mpeg1_cuvid: Nvidia CUVID MPEG1VIDEO decoder (codec mpeg1video) mjpeg_cuvid: Nvidia CUVID MJPEG decoder (codec mjpeg) hevc_cuvid: Nvidia CUVID HEVC decoder (codec hevc) h264_cuvid: Nvidia CUVID H264 decoder (codec h264) h263_cuvid: Nvidia CUVID H263 decoder (codec h263) Now, for 10-bit encodes, take care to omit the -hwaccel cuvid option (as all textures have to be copied to system memory) and instead add only the -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. qmin 15 -qmax 20 -2pass 1 -c:a copy /dev/null & ffmpeg -i -pass 2 \ c:v hevc_nvenc -profile main -preset slow -rc vbr_2pass \ filter:v hwupload_cuda,scale_npp=w=1920:h=1080:format=nv12:interp_algo=lanczos,hwdownload,format=nv12 \ Now, to do a simple NVENC encode in 1080p, (that will even work for Maxwell Gen 2 (GM200x) series), start with: ffmpeg -i -pass 1 \ 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 in a two-pass manner with FFmpeg - based NVENC encoder on supported hardware: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |