|
|
@ -376,15 +376,15 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|
|
|
string analyzeDuration = string.Empty;
|
|
|
|
string analyzeDuration = string.Empty;
|
|
|
|
string ffmpegAnalyzeDuration = _config.GetFFmpegAnalyzeDuration() ?? string.Empty;
|
|
|
|
string ffmpegAnalyzeDuration = _config.GetFFmpegAnalyzeDuration() ?? string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(ffmpegAnalyzeDuration))
|
|
|
|
if (request.MediaSource.AnalyzeDurationMs > 0)
|
|
|
|
{
|
|
|
|
|
|
|
|
analyzeDuration = "-analyzeduration " + ffmpegAnalyzeDuration;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (request.MediaSource.AnalyzeDurationMs > 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
analyzeDuration = "-analyzeduration " +
|
|
|
|
analyzeDuration = "-analyzeduration " +
|
|
|
|
(request.MediaSource.AnalyzeDurationMs * 1000).ToString();
|
|
|
|
(request.MediaSource.AnalyzeDurationMs * 1000).ToString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (!string.IsNullOrEmpty(ffmpegAnalyzeDuration))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
analyzeDuration = "-analyzeduration " + ffmpegAnalyzeDuration;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var forceEnableLogging = request.MediaSource.Protocol != MediaProtocol.File;
|
|
|
|
var forceEnableLogging = request.MediaSource.Protocol != MediaProtocol.File;
|
|
|
|
|
|
|
|
|
|
|
|