[Libav-user] av_hwframe_transfer_data does not succeed from NV12 to YUV420P - How to get YUV420P from cuvid?
sergio.b at coherentsynchro.com
Tue Jun 5 13:15:45 EEST 2018
I'm decoding h264 with ffmpeg. I want to use the hwaccel decoders. I'm
using the cuvid decoder via API. In the fftools code there's a function
"hwaccel_retrieve_data" that is supposed to convert the decoded frame
(NV12) into any other format, I'm trying YUV420P.
The conversion does not return any error, however the resulting data is
not correct. Here's the original NV12 frame:
And here's the conversion to YUV420P (only avframe->data and
avframe->data have any data, data is expected to have the V data
but it is missing).
I think I'm on the right track, based on the code in hwcontext_cuda.c
aparently YUV420P is a supported format, I cannot get my head around how
I can tell the decoder to convert from NV12 to YUV420P though.
Any tips will be appreciated, I'll update if I find anything.
Saludos / Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user