[FFmpeg-devel] [PATCH] ffmpeg_qsv: respect hwaccel_output_format setting

Xiang, Haihao haihao.xiang at intel.com
Thu Oct 29 04:38:14 EET 2020


> On 22/10/2020 02:52, Haihao Xiang wrote:
> > Without this change, the output pixel format from qsv decoder is always
> > 'qsv' ...
> 
> No it isn't.

My thought was for '-hwaccel qsv' part. 

> 
> > ffmpeg -loglevel verbose -hwaccel qsv -c:v h264_qsv
> > -hwaccel_output_format yuv420p -i input.h264
> > -pix_fmt rgb24 -f null -
> 
> The legacy decoders still use the -hwaccel option to indicate a desire for
> hardware-surface output, so don't set that.
> 
> (Updating them to use the hw_device_ctx API like everything else would be more
> useful than adding workarounds in the generic code.)

Did you mean to take hwaccel_qsv as a generic hwaccel method and make
hw_device_setup_for_decode() works for qsv too? 

Thanks
Haihao


> 
> - Mark
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list