<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>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.</p>
<p>The conversion does not return any error, however the resulting
data is not correct. Here's the original NV12 frame:</p>
<p><a class="moz-txt-link-freetext" href="https://imgur.com/a/jAb8h12">https://imgur.com/a/jAb8h12</a><br>
</p>
<p>And here's the conversion to YUV420P (only avframe->data[0]
and avframe->data[1] have any data, data[2] is expected to have
the V data but it is missing).<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://imgur.com/a/ihQeJ0M">https://imgur.com/a/ihQeJ0M</a><br>
</p>
<p><br>
</p>
<p>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. <br>
</p>
<p>Any tips will be appreciated, I'll update if I find anything.<br>
</p>
<p><br>
</p>
<div class="moz-signature">-- <br>
<p>Saludos / Best regards, <br>
<br>
<b>Sergio Basurco</b> <br>
Coherent Synchro</p>
</div>
</body>
</html>