<div style="font-family: arial; font-size: 14px;"><div style="font-family: arial; font-size: 14px;">Hi,<br></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">The input format is the VA-API format (ie AV_PIX_FMT_VAAPI), as I'm passing a hardware frame to the filter, though it is NV12 before I pass the frame to the decoder, if that's relevant.<br></div></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">Thanks</div><div class="protonmail_quote">
------- Original Message -------<br>
On Sunday, February 13th, 2022 at 9:10 PM, Wang, Fei W <fei.w.wang-at-intel.com@ffmpeg.org> wrote:<br>
<blockquote class="protonmail_quote" type="cite">
<div>Hi,</div>
<div><br>
</div>
<div>What's your input format? Maybe you can use ffmpeg cmdline to confirm it first, like:</div>
<div><br>
</div>
<div>
<pre style="--tw-shadow: 0 0 transparent; padding: 0.5em; border: 0px; font-stretch: normal; font-size: 12px; line-height: 1.2; font-family: "lucida console", monospace; vertical-align: baseline; overflow-x: auto; color: rgb(34, 34, 34); orphans: 2; widows: 2; text-decoration-thickness: initial;" class="msg">ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -v verbose -f rawvideo -pix_fmt nv12 -s:v 1280x720 -i input_NV12.yuv -vf 'hwupload,scale_vaapi=format=bgra,hwdownload,format=bgra' -f rawvideo -vsync passthrough -an -vframes 10 -y output_NV12_to_BGRA.yuv</pre>
</div>
<div><br>
</div>
<div>And more vaapi use case you can reference ffmpeg-vaapi wiki:</div>
<div><br>
</div>
<div><a href="https://trac.ffmpeg.org/wiki/Hardware/VAAPI" rel="noreferrer nofollow noopener" target="_blank">https://trac.ffmpeg.org/wiki/Hardware/VAAPI</a></div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks</div>
<div>Fei</div>
<div><br>
</div>
<div><br>
</div>
<blockquote style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex" type="cite">
<div class="WordSection1">
<p class="MsoNormal"> </p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Libav-user <libav-user-bounces@ffmpeg.org> <b>On Behalf Of
</b>andr box<br>
<b>Sent:</b> Monday, February 14, 2022 6:05 AM<br>
<b>To:</b> This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter. <libav-user@ffmpeg.org><br>
<b>Subject:</b> Re: [Libav-user] Hardware scaling with libavfilter</p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">ne 13. 2. 2022 v 22:55 odesílatel icy_flurry via Libav-user <<a href="mailto:libav-user@ffmpeg.org" rel="noreferrer nofollow noopener" target="_blank">libav-user@ffmpeg.org</a>> napsal:</p>
</div>
<blockquote style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex" type="cite">
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">Hi,</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">I'm trying to scale an image in hardware using VA-API with libavfilter. I also want to change the colorspace of the image to BGRA. However, the output frame I get is just a black
image with a white line on top. How do I fix this? Let me know if more information is required.</span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">Code: <a target="_blank" href="https://pastecord.com/eqagejavum.cpp" rel="noreferrer nofollow noopener">https://pastecord.com/eqagejavum.cpp</a></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">Thanks in advance</span></p>
</div>
<p class="MsoNormal">_______________________________________________<br>
Libav-user mailing list<br>
<a target="_blank" href="mailto:Libav-user@ffmpeg.org" rel="noreferrer nofollow noopener">Libav-user@ffmpeg.org</a><br>
<a target="_blank" href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer nofollow noopener">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a target="_blank" href="mailto:libav-user-request@ffmpeg.org" rel="noreferrer nofollow noopener">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</p>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</blockquote><br>
</div>