I am trying to use ffmpeg to get screenshots of a video at a given rate, which works exactly as I want, except for the fact that it has to process the entire video (which can take a long time) and use a ton of CPU resources just to grab a few frames.
Here is the ffmpeg command that I am using to get the screenshots:
ffmpeg -i "$videoName" -vf fps=$enterFPS img%03d.jpg
Is there any way to make that faster?
You can try
select
filter instead.This will output all the frames in between 10-20 time interval. You can also refer here for more information.