Browse Source

update recording params

Luke Pulverenti 8 năm trước cách đây
mục cha
commit
c63edb6e88

+ 3 - 4
Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs

@@ -163,8 +163,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
 
 
             var durationParam = " -t " + _mediaEncoder.GetTimeParameter(duration.Ticks);
             var durationParam = " -t " + _mediaEncoder.GetTimeParameter(duration.Ticks);
             var inputModifiers = "-fflags +genpts -async 1 -vsync -1";
             var inputModifiers = "-fflags +genpts -async 1 -vsync -1";
-            var mapArgs = "-map 0 -ignore_unknown";
-            var commandLineArgs = "-i \"{0}\"{5} " + mapArgs + " {2} -map_metadata -1 -threads 0 {3}{4} -y \"{1}\"";
+            var commandLineArgs = "-i \"{0}\"{5} {2} -map_metadata -1 -threads 0 {3}{4} -y \"{1}\"";
 
 
             long startTimeTicks = 0;
             long startTimeTicks = 0;
             //if (mediaSource.DateLiveStreamOpened.HasValue)
             //if (mediaSource.DateLiveStreamOpened.HasValue)
@@ -207,7 +206,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
             // do not copy aac because many players have difficulty with aac_latm
             // do not copy aac because many players have difficulty with aac_latm
             if (_liveTvOptions.EnableOriginalAudioWithEncodedRecordings && !string.Equals(inputAudioCodec, "aac", StringComparison.OrdinalIgnoreCase))
             if (_liveTvOptions.EnableOriginalAudioWithEncodedRecordings && !string.Equals(inputAudioCodec, "aac", StringComparison.OrdinalIgnoreCase))
             {
             {
-                return "-codec:a copy";
+                return "-codec:a:0 copy";
             }
             }
 
 
             var audioChannels = 2;
             var audioChannels = 2;
@@ -216,7 +215,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
             {
             {
                 audioChannels = audioStream.Channels ?? audioChannels;
                 audioChannels = audioStream.Channels ?? audioChannels;
             }
             }
-            return "-codec:a aac -strict experimental -ab 320000";
+            return "-codec:a:0 aac -strict experimental -ab 320000";
         }
         }
 
 
         private bool EncodeVideo(MediaSourceInfo mediaSource)
         private bool EncodeVideo(MediaSourceInfo mediaSource)