I'm trying to convert a series of JPEG images into a time lapse video. They're in the format IMGP0001.JPG, IMGP0002.JPG, etc. From the looks of things, this should match the pattern IMGP%04.JPG.

I've tried the following commands (modified from the 2nd entry at this page):

ffmpeg -f image2 -i IMGP%04d.jpg video.mpg

I get the error "IMGP%04d.JPG: No such file or directory".

What am I doing wrong? Perhaps the syntax "IMGP%04d.JPG" is *nix specific? If so what would be the Windows equivalent?

link|improve this question
Move images to path with short name (no whitespaces etc.). – user105748 Nov 17 '11 at 8:00
feedback

1 Answer

up vote 1 down vote accepted

Try putting the filename template in double quotes. Also, if you are running the command in a script you may need to use %% instead of %.

link|improve this answer
This was it! It was being called in a batch file, and I needed to escape the % with another. i.e. IMGP%%04d.jpg. – CadentOrange Oct 10 '11 at 8:20
1  
Another thing to note is that the sequence should start with 1 or else it won't detect properly. You may need to rename your files before processing them. That issue bit me today. See stackoverflow.com/questions/2829113/… – Jason Navarrete Nov 23 '11 at 16:57
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.