mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 07:10:34 +02:00
Backport pull request #9928 from jellyfin/release-10.8.z
Disable global_header on AMD VA-API encoder
Original-merge: a732a28229
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;
|
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;
|
return args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue