private async Task ExecuteAsync(FFmpegParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { var ffmpegProcess = new FFmpegProcess(); ffmpegProcess.Progress += OnProgress; ffmpegProcess.Completed += OnComplete; ffmpegProcess.Error += OnError; ffmpegProcess.Data += OnData; await ffmpegProcess.ExecuteAsync(parameters, FFmpegFilePath, cancellationToken); }
private void Execute(FFmpegParameters parameters) { var ffmpegProcess = new FFmpegProcess(); ffmpegProcess.Progress += OnProgress; ffmpegProcess.Completed += OnComplete; ffmpegProcess.Error += OnError; ffmpegProcess.Data += OnData; ffmpegProcess.Execute(parameters, FFmpegFilePath); }