Browse Source

update recording analyze duration

Luke Pulverenti 8 years ago
parent
commit
c1ae3ec2ce
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs

+ 5 - 0
Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs

@@ -177,6 +177,11 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
                 inputModifiers = "-ss " + _mediaEncoder.GetTimeParameter(startTimeTicks) + " " + inputModifiers;
             }
 
+            var analyzeDurationSeconds = 5;
+            var analyzeDuration = " -analyzeduration " +
+                  (analyzeDurationSeconds * 1000000).ToString(CultureInfo.InvariantCulture);
+            inputModifiers += analyzeDuration;
+
             commandLineArgs = string.Format(commandLineArgs, inputTempFile, targetFile, videoArgs, GetAudioArgs(mediaSource), durationParam);
 
             return inputModifiers + " " + commandLineArgs;