|
|
@ -9,6 +9,7 @@ using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using Jellyfin.Api.Extensions;
|
|
|
|
using Jellyfin.Api.Extensions;
|
|
|
|
using Jellyfin.Api.Models.StreamingDtos;
|
|
|
|
using Jellyfin.Api.Models.StreamingDtos;
|
|
|
|
|
|
|
|
using MediaBrowser.Common.Configuration;
|
|
|
|
using MediaBrowser.Common.Extensions;
|
|
|
|
using MediaBrowser.Common.Extensions;
|
|
|
|
using MediaBrowser.Common.Net;
|
|
|
|
using MediaBrowser.Common.Net;
|
|
|
|
using MediaBrowser.Controller.Configuration;
|
|
|
|
using MediaBrowser.Controller.Configuration;
|
|
|
@ -203,9 +204,11 @@ namespace Jellyfin.Api.Helpers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
builder.Append(flacWaPlaylist);
|
|
|
|
builder.Append(flacWaPlaylist);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var encodingOptions = _serverConfigurationManager.GetEncodingOptions();
|
|
|
|
|
|
|
|
|
|
|
|
// Provide SDR HEVC entrance for backward compatibility.
|
|
|
|
// Provide SDR HEVC entrance for backward compatibility.
|
|
|
|
if (EncodingHelper.IsCopyCodec(state.OutputVideoCodec)
|
|
|
|
if (encodingOptions.AllowHevcEncoding
|
|
|
|
|
|
|
|
&& EncodingHelper.IsCopyCodec(state.OutputVideoCodec)
|
|
|
|
&& !string.IsNullOrEmpty(state.VideoStream.VideoRange)
|
|
|
|
&& !string.IsNullOrEmpty(state.VideoStream.VideoRange)
|
|
|
|
&& string.Equals(state.VideoStream.VideoRange, "HDR", StringComparison.OrdinalIgnoreCase)
|
|
|
|
&& string.Equals(state.VideoStream.VideoRange, "HDR", StringComparison.OrdinalIgnoreCase)
|
|
|
|
&& string.Equals(state.ActualOutputVideoCodec, "hevc", StringComparison.OrdinalIgnoreCase))
|
|
|
|
&& string.Equals(state.ActualOutputVideoCodec, "hevc", StringComparison.OrdinalIgnoreCase))
|
|
|
|