I am using ffmpeg to extract still images from a video. From a given time, for a given duration using the -ss and -t parameters.
ffmpeg -ss 00:10:01 -t 2 -i /Volumes/OO_8/VideoSource.mkv -qscale:v 2 -start_number /Users/Olivier/Pictures/ScreenCaptures/ViewsOfNature-%4d.jpeg
(I start with the timestamp/duration first so that ffmpeg starts the demux at at that point.)
However, I want to use several starting points (for example, at 00:01:12 in, extract the images for 2 seconds; at 00:11:00 minutes in, extract the images for 4 seconds; etc.) I can do this manually, replacing the timestamp and duration, and moving the output images each time, but ideally I want to input the timestamps and durations all at once, and not overwrite the output images. Is there a way to do this? Perhaps with an external file with the timestamps/durations?
I am new to this, and prefer to do it with ffmpeg only, not use bash.