FFmpeg: VideoFrameEncoder - improve hw codec support
`VideoFrameEncoder::create` used to fail when a (hardware) encoder did
not support the "best" pixel format. This caused an early fallback to
software codecs.
We now rank all formats and try to open the best ones until we find one
that we can actually open.
Pick-to: 6.12
Change-Id: I7301edad727e3c39596e645d08150e91f24e9ba4
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
| commit | cb52b3d490157c38fa64a110fc41cb1787af11f2 |
| parent | ddc72f16ddd5e171702c59b69d5d34a6b93e8e8c |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Fri, 11 Sep 2026 09:03:28 +0000 |
- M src/plugins/multimedia/ffmpeg/qffmpegdefs_p.h
- M src/plugins/multimedia/ffmpeg/qffmpeghwaccel.cpp
- M src/plugins/multimedia/ffmpeg/qffmpeghwaccel_p.h
- M src/plugins/multimedia/ffmpeg/recordingengine/qffmpegvideoencoderutils.cpp
- M src/plugins/multimedia/ffmpeg/recordingengine/qffmpegvideoencoderutils_p.h
- M src/plugins/multimedia/ffmpeg/recordingengine/qffmpegvideoframeencoder.cpp
- M src/plugins/multimedia/ffmpeg/recordingengine/qffmpegvideoframeencoder_p.h