mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-19 15:33:03 +03:00
Disable global_header on AMD VA-API encoder
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
@@ -1313,6 +1313,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user