The Free Software Media System - Server Backend & API
update recording params
Luke Pulverentic63edb6e887e
diff --git a/Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs b/Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.csindex 7460a9f06b..0567bdfd9e 100644--- a/Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs+++ b/Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs@@ -163,8 +163,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTVvar durationParam = " -t " + _mediaEncoder.GetTimeParameter(duration.Ticks);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;//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_latmif (_liveTvOptions.EnableOriginalAudioWithEncodedRecordings && !string.Equals(inputAudioCodec, "aac", StringComparison.OrdinalIgnoreCase)){- return "-codec:a copy";+ return "-codec:a:0 copy";}var audioChannels = 2;@@ -216,7 +215,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV{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)