[Libav-user] VAAPI hw decoder usage

Hanyi Zou hanyi at imagequalitylabs.com
Tue Nov 13 17:20:59 EET 2018


I'm using vaapi hw decoder to decode h264 from an IPcamera.
I followed the example at
Everything went smoothly, I get the VAAPI surface from GPU via
however the frame->format, AV_PIX_FMT_VAAPI_VLD, is unsupported by QT(I'm
using QT for my GUI). I'm trying to convert this AV_PIX_FMT_VAAPI_VLD to
yuv420p or RGB24. I've tried using filter "scale_vaapi=w=640:h=360:format=
yuv420p", but without any success, got error " Impossible to convert
between the formats supported by the filter 'Parsed_scale_vaapi_0' and the
filter 'auto_scaler_0' "
I've been stuck for 2 days, not sure what to do. How do I convert
AV_PIX_FMT_VAAPI_VLD to yuv or rgb?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20181113/4404aa74/attachment.html>

More information about the Libav-user mailing list