Exemple #1
0
        private void Ffmpeg_Progress(object sender, FFmpeg.NET.Events.ConversionProgressEventArgs e)
        {
            Console.Clear();
            float perc = (float)Math.Round((decimal)(e.ProcessedDuration.TotalSeconds / e.TotalDuration.TotalSeconds * 100), 2);

            Console.WriteLine($"Progress: {perc}%");
            Console.WriteLine("if you decide to close the program now, you must also kill it from the task manager");
        }
Exemple #2
0
        protected void Ffmpeg_Progress(object sender, FFmpeg.NET.Events.ConversionProgressEventArgs e)
        {
            double percent = (this.completedDuration + e.ProcessedDuration.TotalSeconds) / this.totalDuration;

            this.ReportProgress(this.progress, percent);
        }