Oh, I didn't noticed that h264_cuvid is legacy.
It seems the problem in this line:
ret = av_frame_make_writable(input_main);
If removed, it starts to work with -hwaccel cuda.
I'll take a closed look why and what happens but any advice would be
helpful. Thanks!
On 19.03.20 21:15, Timo Rothenpieler wrote:
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
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".