Reputation: 149
I am trying to convert images00001.jpg up to images00400.jpg with frame step of 20 to video. So far I have this but it includes all frames from 1 to 400:
!ffmpeg -start_number 1 -i images%05d.jpg -vframes 400 -vcodec mpeg4 result.mp4
Upvotes: 1
Views: 7398
Reputation: 93018
Use
ffmpeg -start_number 1 -framerate 25 -i images%05d.jpg -vf framestep=20,setpts=N/FRAME_RATE/TB -c:v mpeg4 result.mp4
This will make for a 0.8 second video.
Upvotes: 3