Only disable the global_header for AMD HEVC encoder (#10045)

This commit is contained in:
Nyanmisaka 2023-07-29 20:52:58 +08:00 committed by GitHub
parent 9564248b10
commit 148c86ee0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1457,8 +1457,8 @@ 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)
// global_header produced by AMD HEVC VA-API encoder causes non-playable fMP4 on iOS
if (string.Equals(codec, "hevc_vaapi", StringComparison.OrdinalIgnoreCase)
&& _mediaEncoder.IsVaapiDeviceAmd)
{
args += " -flags:v -global_header";