performance - A faster way to get screenshots of a video with ffmpeg -


i trying use ffmpeg screenshots of video @ given rate, works want, except fact has process entire video (which can take long time) , use ton of cpu resources grab few frames.

here ffmpeg command using screenshots:

ffmpeg -i "$videoname" -vf fps=$enterfps img%03d.jpg 

is there way make faster?

you can try select filter instead.

ffmpeg -i input_video -vf "select=between(t\,10\,20)" -vsync vfr output_image%04d.png 

this output frames in between 10-20 time interval. can refer here more information.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -