Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Video Processing Nuget packages, tried MediaToolkit and ffmpeg what next? [closed]

$
0
0

I have a program that extracts images from video at 1 frame every 2 seconds, I was using MediaToolkit but as it hasn't been updated in years it is increasingly failing to process some videos.

I switched over to FFMpegCore as few months ago and it processes all the videos but it's exceedingly slow, it's almost as if it's parsing every video at real time so can take 20 mins to process a video.

Is there any way I can speed up FFMpegCore or any recommendations on nuget packages I could use instead?

Thanks in advance

Here's my code for FFMpegCore

for (double t = 0.0; t < duration; t += tSpan){    var outputFile = $"{recordId}_{recordIndex:000}{count:0000000}.jpg";    var outputFilename = $"{imageFolder}\\{outputFile}";    FFMpegArguments        .FromFileInput(localVideoFile)        .OutputToFile(outputFilename, false, options =>        options            .WithCustomArgument($"-ss {t}")            .WithCustomArgument("-vframes 1"))        .ProcessSynchronously();    count += 2;}

Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>