akplast.blogg.se

H264_nvenc
H264_nvenc













h264_nvenc

To get fully working hardware transcoding you must do 2 steps: Hwaccel cuvid is deprecated and FFmpeg give a hint to use -hwaccel_output_format cuda and that i the solution for -pix_fmt yuv420p When i using acceleration method -hwaccel cuvid or -hwaccel cuda the hardcoded parameter -pix_fmt yuv420p give always an error. Unfortunately -pix_fmt cuda is not working, the -pix_fmt yuv420p is still in parameters when transcoding is starting.Ĭan you add support for hardware encoding with Nvidia cards?Īfter a week of reading and tests i got finally working decode and encode with my Nvidia Quadro K2000. 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 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. I have tested a lot of variants but only hardware decoding is working.įrom 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) Nvidia graphics cards from Kepler family can hardware encode H.264 YUV 4:2:0.















H264_nvenc