The Free Software Media System - Server Backend & API
Merge pull request #9907 from nyanmisaka/av1e
Bond-009e53e53eb29cc
diff --cc Jellyfin.Api/Helpers/DynamicHlsHelper.csindex ce73b57541,480267b512..646bf6443c--- a/Jellyfin.Api/Helpers/DynamicHlsHelper.cs+++ b/Jellyfin.Api/Helpers/DynamicHlsHelper.cs@@@ -211,8 -210,10 +211,9 @@@ public class DynamicHlsHelpe// Provide SDR HEVC entrance for backward compatibility.if (encodingOptions.AllowHevcEncoding+ && !encodingOptions.AllowAv1Encoding&& EncodingHelper.IsCopyCodec(state.OutputVideoCodec)- && !string.IsNullOrEmpty(state.VideoStream.VideoRange)- && string.Equals(state.VideoStream.VideoRange, "HDR", StringComparison.OrdinalIgnoreCase)+ && state.VideoStream.VideoRange == VideoRange.HDR&& string.Equals(state.ActualOutputVideoCodec, "hevc", StringComparison.OrdinalIgnoreCase)){var requestedVideoProfiles = state.GetRequestedProfiles("hevc");@@@ -252,10 -253,13 +253,12 @@@// Provide Level 5.0 entrance for backward compatibility.// e.g. Apple A10 chips refuse the master playlist containing SDR HEVC Main Level 5.1 video,// but in fact it is capable of playing videos up to Level 6.1.- if (EncodingHelper.IsCopyCodec(state.OutputVideoCodec)+ if (encodingOptions.AllowHevcEncoding+ && !encodingOptions.AllowAv1Encoding+ && EncodingHelper.IsCopyCodec(state.OutputVideoCodec)&& state.VideoStream.Level.HasValue&& state.VideoStream.Level > 150- && !string.IsNullOrEmpty(state.VideoStream.VideoRange)- && string.Equals(state.VideoStream.VideoRange, "SDR", StringComparison.OrdinalIgnoreCase)+ && state.VideoStream.VideoRange == VideoRange.SDR&& string.Equals(state.ActualOutputVideoCodec, "hevc", StringComparison.OrdinalIgnoreCase)){var playlistCodecsField = new StringBuilder();