On 19.03.2020 14:35, Yaroslav Pogrebnyak wrote:
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!

For what I'm aware, make_writable does not work on hardware frames.
And the nvdec hwaccel returns frames that are mapped device memory, and thus hard read-only.

You will need to manually allocate output frames from the hw_frames_ctx.
_______________________________________________
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".

Reply via email to