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>
commitcb52b3d490157c38fa64a110fc41cb1787af11f2
parentddc72f16ddd5e171702c59b69d5d34a6b93e8e8c
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeFri, 11 Sep 2026 09:03:28 +0000