mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 15:20:34 +02:00
Fix H264 level on safari fmp4
This commit is contained in:
parent
7c91543694
commit
4a1aa619d2
|
@ -1062,10 +1062,12 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
}
|
}
|
||||||
else if (string.Equals(state.ActualOutputVideoCodec, "h264", StringComparison.OrdinalIgnoreCase))
|
else if (string.Equals(state.ActualOutputVideoCodec, "h264", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
// Clients may direct play higher than level 41, but there's no reason to transcode higher.
|
// Transcode to level 5.1 and lower for maximum compatibility.
|
||||||
if (requestLevel >= 41)
|
// h264 4k 30fps requires at least level 5.1 otherwise it will break on safari fmp4.
|
||||||
|
// https://en.wikipedia.org/wiki/Advanced_Video_Coding#Levels
|
||||||
|
if (requestLevel >= 51)
|
||||||
{
|
{
|
||||||
return "41";
|
return "51";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue