aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2025-01-28 11:29:22 +0100
committerGitHub <noreply@github.com>2025-01-28 11:29:22 +0100
commitbcdffa74a80972f8493837fa911c9628598f7fa3 (patch)
tree9ce05e93dfed4339b86eea1b05620ad0a4635d07 /src
parent0869a4f1f6e4b7cd327a0b14db08b070e963e776 (diff)
parenta70200af149eb5702178483d5bcc4d50a73e784f (diff)
Remove useless checks and dead code (#13405)
* Remove useless checks and dead code * Enable adaptive bitrate streaming again * Disable adaptive bitrate streaming by default
Diffstat (limited to 'src')
-rw-r--r--src/Jellyfin.LiveTv/IO/EncodedRecorder.cs30
1 files changed, 1 insertions, 29 deletions
diff --git a/src/Jellyfin.LiveTv/IO/EncodedRecorder.cs b/src/Jellyfin.LiveTv/IO/EncodedRecorder.cs
index 0c660637f..c04954207 100644
--- a/src/Jellyfin.LiveTv/IO/EncodedRecorder.cs
+++ b/src/Jellyfin.LiveTv/IO/EncodedRecorder.cs
@@ -124,22 +124,7 @@ namespace Jellyfin.LiveTv.IO
private string GetCommandLineArgs(MediaSourceInfo mediaSource, string inputTempFile, string targetFile)
{
- string videoArgs;
- if (EncodeVideo(mediaSource))
- {
- const int MaxBitrate = 25000000;
- videoArgs = string.Format(
- CultureInfo.InvariantCulture,
- "-codec:v:0 libx264 -force_key_frames \"expr:gte(t,n_forced*5)\" {0} -pix_fmt yuv420p -preset superfast -crf 23 -b:v {1} -maxrate {1} -bufsize ({1}*2) -profile:v high -level 41",
- GetOutputSizeParam(),
- MaxBitrate);
- }
- else
- {
- videoArgs = "-codec:v:0 copy";
- }
-
- videoArgs += " -fflags +genpts";
+ string videoArgs = "-codec:v:0 copy -fflags +genpts";
var flags = new List<string>();
if (mediaSource.IgnoreDts)
@@ -205,19 +190,6 @@ namespace Jellyfin.LiveTv.IO
private static string GetAudioArgs(MediaSourceInfo mediaSource)
{
return "-codec:a:0 copy";
-
- // var audioChannels = 2;
- // var audioStream = mediaStreams.FirstOrDefault(i => i.Type == MediaStreamType.Audio);
- // if (audioStream is not null)
- // {
- // audioChannels = audioStream.Channels ?? audioChannels;
- // }
- // return "-codec:a:0 aac -strict experimental -ab 320000";
- }
-
- private static bool EncodeVideo(MediaSourceInfo mediaSource)
- {
- return false;
}
protected string GetOutputSizeParam()