diff options
| author | Cody Robibero <cody@robibe.ro> | 2022-04-22 16:40:53 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2022-04-28 09:26:45 -0400 |
| commit | 76cfb8c9037d836feb37634b8b9d3e0c23c05d87 (patch) | |
| tree | 8b2c7194d96b95c384aeebee411d0fb39d20a013 /MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | |
| parent | e5e7c10b818ca0de376fda11c3d83d0893307837 (diff) | |
Merge pull request #7643 from jellyfin/h264-level
(cherry picked from commit 12f9132975a4415ab7df3be9dcc2b56d68082d5f)
Signed-off-by: crobibero <cody@robibe.ro>
Diffstat (limited to 'MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs')
| -rw-r--r-- | MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs index 162a821f5..006fd8861 100644 --- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs +++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs @@ -1062,10 +1062,12 @@ namespace MediaBrowser.Controller.MediaEncoding } 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. - if (requestLevel >= 41) + // Transcode to level 5.1 and lower for maximum compatibility. + // 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"; } } } |
