|
|
|
@ -163,8 +163,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
|
|
|
|
|
|
|
|
|
var 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_latm
|
|
|
|
|
if (_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)
|
|
|
|
|