public async Task ExecuteAsync(FFmpegParameters parameters, string ffmpegFilePath, CancellationToken cancellationToken = default(CancellationToken)) { var argumentBuilder = new FFmpegArgumentBuilder(); var arguments = argumentBuilder.Build(parameters); var startInfo = GenerateStartInfo(ffmpegFilePath, arguments); await ExecuteAsync(startInfo, parameters, cancellationToken); }
public void Execute(FFmpegParameters parameters, string ffmpegFilePath) { var argumentBuilder = new FFmpegArgumentBuilder(); var arguments = argumentBuilder.Build(parameters); var startInfo = GenerateStartInfo(ffmpegFilePath, arguments); Execute(startInfo, parameters); }