Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }