Backport pull request #9928 from jellyfin/release-10.8.z

Disable global_header on AMD VA-API encoder

Original-merge: a732a28229564a6da7db18bab07bcee75d6f2648

Merged-by: Bond-009 <bond.009@outlook.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
nyanmisaka 2023-07-02 01:41:17 -04:00 committed by Joshua M. Boniface
parent 80f1f5e00d
commit 76538aacb9

View File

@ -1454,6 +1454,13 @@ namespace MediaBrowser.Controller.MediaEncoding
args += keyFrameArg + gopArg;
}
// global_header produced by AMD VA-API encoder causes non-playable fMP4 on iOS
if (codec.Contains("vaapi", StringComparison.OrdinalIgnoreCase)
&& _mediaEncoder.IsVaapiDeviceAmd)
{
args += " -flags:v -global_header";
}
return args;
}