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;}