Exemplo n.º 1
0
 public ProcessManagerFactory(IFFmpegConfig config, IFFmpegParser ffmpegParser, IProcessFactory processFactory, IFileSystemService fileSystemService)
 {
     this.Config            = config ?? new FFmpegConfig();
     this.Parser            = ffmpegParser ?? new FFmpegParser();
     this.ProcessFactory    = processFactory ?? new ProcessFactory();
     this.FileSystemService = fileSystemService ?? new FileSystemService();
 }
Exemplo n.º 2
0
 public ProcessManager(IFFmpegConfig config, IFFmpegParser ffmpegParser, IProcessFactory processFactory, IFileSystemService fileSystemService, ProcessOptions options = null)
 {
     this.Config     = config ?? throw new ArgumentNullException(nameof(config));
     this.parser     = ffmpegParser ?? throw new ArgumentNullException(nameof(ffmpegParser));
     this.factory    = processFactory ?? throw new ArgumentNullException(nameof(processFactory));
     this.fileSystem = fileSystemService ?? throw new ArgumentNullException(nameof(fileSystem));
     this.Options    = options ?? new ProcessOptions();
 }
Exemplo n.º 3
0
 public ProcessManagerAvs(IFFmpegConfig config, IFFmpegParser ffmpegParser, IProcessFactory processFactory, IFileSystemService fileSystemService, ProcessOptions options = null)
     : base(config, ffmpegParser, processFactory, fileSystemService, options)
 {
     OutputType = ProcessOutput.None;
 }
Exemplo n.º 4
0
 public ProcessManagerFFmpeg(IFFmpegConfig config, IFFmpegParser ffmpegParser, IProcessFactory processFactory, IFileSystemService fileSystemService, ProcessOptionsFFmpeg options = null)
     : base(config, ffmpegParser, processFactory, fileSystemService, options ?? new ProcessOptionsFFmpeg())
 {
     OutputType = ProcessOutput.Error;
 }