FFmpeg: Re-enable H264/H265 encoding into Matroska


Recording Matroska with h264/h265 had been disabled because FFmpeg
failed to mux them. The root cause was that the affected muxers need
codec extradata supplied upfront, which requires
AV_CODEC_FLAG_GLOBAL_HEADER on the encoder context. 7f411dfa3 now sets
this flag whenever the muxer declares AVFMT_GLOBALHEADER, which fixes
the underlying problem. While the original fix was for av1/libsvtav1
only, it also fixed the h264/h265 recording onto matroska.

So we remove the exclusion and refine the integration test.

Amends 9fa27f829517c43702cf0cd5cdb29e78830da1c4 and
7f411dfa3c0769e4dd9ecd52a23377dbba3b2633

Pick-to: 6.12
Fixes: QTBUG-126276
Task-number: QTBUG-150171
Change-Id: Ic2c4c3eacf3da4fcc2e28bcdb59fc574cf92fbaa
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
commit1aba8edb5793966123eaa018d4e7c8b64d16fcbf
parentc771c0e80083d54cf4ee39a1562f3d72a2ac568f
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeSat, 12 Sep 2026 00:36:26 +0000