[FFmpeg-devel] [PATCH v2 2/2] avfilter: add vf_overlay_cuda

Timo Rothenpieler timo at rothenpieler.org
Thu Mar 19 15:15:01 EET 2020


I'm currently trying to get this to work with nvdec, but seemingly can't:

./ffmpeg_g.exe -v verbose
-hwaccel_output_format cuda -hwaccel cuda -i test_h264.mp4 
-hwaccel_output_format cuda -hwaccel cuda -i test2_h264.mp4
-filter_complex
"[0:v]scale_cuda=640:-2[p],[1:v][p]overlay_cuda=x=100:y=100:shortest=true"
-an -c:v h264_nvenc -y out.mp4

It works with legacy h264_cuvid, but definitely also needs to work with 
the proper nvdec hwaccel.

I'm currently investigating as to why, but the error it produces is very 
hard to track down:

Error while filtering 2: Invalid argument
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #1:0


More information about the ffmpeg-devel mailing list