I am using ffmpeg to convert a number of jpgs into an mp4 file and it seems to be working great, video.mp4 is created. this is the command I'm using:
ffmpeg -r 0.1 -i uploads/image%d.jpg uploads/video.mp4
I have these files inside my uploads directory
image1.jpg
image2.jpg
image3.jpg
image4.jpg
I found this example in a quick google search. I've changed it a little bit but the image%d.jpg remains the same. It's supposed to loop each image and put it into the mp4. However I've found that it isn't including the last file here.
How is the %d incrementing by one and subsequently grabbing each file here? Why isn't it grabbing the last file? When I remove the 4th image, then it only loads the first two images, so the last image just isn't being included for some reason.
Any comments on how this works would really be helpful, Thanks!