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:
parent
80f1f5e00d
commit
76538aacb9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user