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