Hardware encoding ffmpeg NVENC - WORKING !!!
Posted: Sat Apr 18, 2020 12:15 am
Nvidia graphics cards from Kepler family can hardware encode H.264 YUV 4:2:0 - https://developer.nvidia.com/video-enco ... ort-matrix
FFmpeg has support for this - https://devblogs.nvidia.com/nvidia-ffmp ... ing-guide/
I have tested a lot of variants but only hardware decoding is working.
From commnad line ffmpeg (version from UMS 9.4.1) is able to decode and encode without problem (ffmpeg -vsync 0 -hwaccel cuvid -c:v h264_cuvid -i input.mp4 -c:a copy -c:v h264_nvenc -b:v 5M output.mp4)
The problem in UMS is that one parameter is hardcoded for ffmpeg and cant be changed -pix_fmt yuv420p, the encoder h264_nvenc not support this parameter.
Parameters -preset ultrafast -level 31 arent supported too, but i have change they in CustomFFmpegOptions = -pix_fmt cuda -c:v h264_nvenc -zerolatency 1 -preset slow -level 41 -f matroska
Unfortunately -pix_fmt cuda is not working, the -pix_fmt yuv420p is still in parameters when transcoding is starting.
Can you add support for hardware encoding with Nvidia cards?
FFmpeg has support for this - https://devblogs.nvidia.com/nvidia-ffmp ... ing-guide/
I have tested a lot of variants but only hardware decoding is working.
From commnad line ffmpeg (version from UMS 9.4.1) is able to decode and encode without problem (ffmpeg -vsync 0 -hwaccel cuvid -c:v h264_cuvid -i input.mp4 -c:a copy -c:v h264_nvenc -b:v 5M output.mp4)
The problem in UMS is that one parameter is hardcoded for ffmpeg and cant be changed -pix_fmt yuv420p, the encoder h264_nvenc not support this parameter.
Parameters -preset ultrafast -level 31 arent supported too, but i have change they in CustomFFmpegOptions = -pix_fmt cuda -c:v h264_nvenc -zerolatency 1 -preset slow -level 41 -f matroska
Unfortunately -pix_fmt cuda is not working, the -pix_fmt yuv420p is still in parameters when transcoding is starting.
Can you add support for hardware encoding with Nvidia cards?