[FFmpeg-devel] [PATCH] ffmpeg_qsv: respect hwaccel_output_format setting
Mark Thompson
sw at jkqxz.net
Wed Oct 28 22:04:35 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.
> 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.)
- Mark
More information about the ffmpeg-devel
mailing list