|
|
|
@ -849,10 +849,8 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService |
|
|
|
.GetValue<string>(ConfigElementKey.FFmpegDefaultMpegTsScript, cancellationToken) |
|
|
|
.GetValue<string>(ConfigElementKey.FFmpegDefaultMpegTsScript, cancellationToken) |
|
|
|
.IfNoneAsync("Default"); |
|
|
|
.IfNoneAsync("Default"); |
|
|
|
List<MpegTsScript> allScripts = _mpegTsScriptService.GetScripts(); |
|
|
|
List<MpegTsScript> allScripts = _mpegTsScriptService.GetScripts(); |
|
|
|
foreach (var script in allScripts.Where(s => string.Equals( |
|
|
|
Option<MpegTsScript> maybeScript = Optional(allScripts.Find(s => s.Id == defaultScript)); |
|
|
|
s.Name, |
|
|
|
foreach (var script in maybeScript) |
|
|
|
defaultScript, |
|
|
|
|
|
|
|
StringComparison.OrdinalIgnoreCase))) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
Option<Command> maybeCommand = await _mpegTsScriptService.Execute( |
|
|
|
Option<Command> maybeCommand = await _mpegTsScriptService.Execute( |
|
|
|
script, |
|
|
|
script, |
|
|
|
@ -865,6 +863,11 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (maybeScript.IsNone) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
_logger.LogWarning("Unable to locate MPEG-TS Script in folder {Id}", defaultScript); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
IPipelineBuilder pipelineBuilder = await _pipelineBuilderFactory.GetBuilder( |
|
|
|
IPipelineBuilder pipelineBuilder = await _pipelineBuilderFactory.GetBuilder( |
|
|
|
HardwareAccelerationMode.None, |
|
|
|
HardwareAccelerationMode.None, |
|
|
|
Option<VideoInputFile>.None, |
|
|
|
Option<VideoInputFile>.None, |
|
|
|
|