[FFmpeg-devel] [PATCH v2 2/2] avfilter: add vf_overlay_cuda
Timo Rothenpieler
timo at rothenpieler.org
Thu Mar 19 15:40:17 EET 2020
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.
More information about the ffmpeg-devel
mailing list