Make Live TV compatibility profiles customizable (#12529)

This commit is contained in:
gnattu
2024-09-08 11:08:54 +08:00
committed by GitHub
parent 84b20afe1f
commit b4f71859d9
6 changed files with 29 additions and 21 deletions

View File

@@ -331,6 +331,8 @@ namespace Jellyfin.LiveTv.TunerHosts.HdHomerun
SupportsTranscoding = true,
IsInfiniteStream = true,
IgnoreDts = true,
UseMostCompatibleTranscodingProfile = true, // All HDHR tuners require this
FallbackMaxStreamingBitrate = info.FallbackMaxStreamingBitrate,
// IgnoreIndex = true,
// ReadAtNativeFramerate = true
};

View File

@@ -94,7 +94,7 @@ namespace Jellyfin.LiveTv.TunerHosts
var mediaSource = sources[0];
if (mediaSource.Protocol == MediaProtocol.Http && !mediaSource.RequiresLooping)
if (tunerHost.AllowStreamSharing && mediaSource.Protocol == MediaProtocol.Http && !mediaSource.RequiresLooping)
{
var extension = Path.GetExtension(new UriBuilder(mediaSource.Path).Path);
@@ -200,7 +200,9 @@ namespace Jellyfin.LiveTv.TunerHosts
SupportsDirectPlay = supportsDirectPlay,
SupportsDirectStream = supportsDirectStream,
RequiredHttpHeaders = httpHeaders
RequiredHttpHeaders = httpHeaders,
UseMostCompatibleTranscodingProfile = !info.AllowFmp4TranscodingContainer,
FallbackMaxStreamingBitrate = info.FallbackMaxStreamingBitrate
};
mediaSource.InferTotalBitrate();