> 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
> [email protected]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> [email protected] with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to