Hi, What's your input format? Maybe you can use ffmpeg cmdline to confirm it first, like:
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 And more vaapi use case you can reference ffmpeg-vaapi wiki: https://trac.ffmpeg.org/wiki/Hardware/VAAPI Thanks Fei From: Libav-user <[email protected]> On Behalf Of andr box Sent: Monday, February 14, 2022 6:05 AM To: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter. <[email protected]> Subject: Re: [Libav-user] Hardware scaling with libavfilter ne 13. 2. 2022 v 22:55 odesílatel icy_flurry via Libav-user <[email protected]<mailto:[email protected]>> napsal: Hi, 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. Code: https://pastecord.com/eqagejavum.cpp Thanks in advance _______________________________________________ Libav-user mailing list [email protected]<mailto:[email protected]> https://ffmpeg.org/mailman/listinfo/libav-user To unsubscribe, visit link above, or email [email protected]<mailto:[email protected]> with subject "unsubscribe".
_______________________________________________ Libav-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/libav-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
