<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>I'm using vaapi hw decoder to decode h264 from an IPcamera.</div><div>I followed the example at <a href="https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/hw_decode.c">https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/hw_decode.c</a><br></div><div>Everything went smoothly, I get the 
VAAPI surface from GPU via av_hwframe_transfer_data(),</div><div>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' "<br></div><div>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?</div></div></div></div></div>