Exemple #1
0
        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);
        }
Exemple #2
0
        public void Execute(FFmpegParameters parameters, string ffmpegFilePath)
        {
            var argumentBuilder = new FFmpegArgumentBuilder();
            var arguments       = argumentBuilder.Build(parameters);
            var startInfo       = GenerateStartInfo(ffmpegFilePath, arguments);

            Execute(startInfo, parameters);
        }