I think that doubling the % symbol because you are executing from a bat file will help, ie. img%%1d.bmp

That said, I prefer using "-pattern_type glob" so your command would look more like this:

   ffmpeg.exe -framerate 1/10 -f image2 -pattern_type glob -i
   'img*.bmp' temp.avi

I hope that helps!

 - James

On 4/26/2015 6:17 AM, mB wrote:
greetings,
I have ffmpeg.exe, 7 BMP images (i.e. img1.bmp, img2.bmp, ...) and the 
following bat file all located in the same Wins folder:

@echo off
ffmpeg.exe -framerate 1/10 -f image2 -i img%1d.bmp temp.avi
PAUSE

This does not work when double clicked - and returns the error:
“Could find no file with path ‘imgd.bmp’ and index in the range 0-4. imgd.bmp: 
no such file or directory.”

BUT

if I use this bat file:
@echo off
CMD
Pause

and type in “ffmpeg.exe -framerate 1/10 -f image2 -i img%1d.bmp temp.avi” – 
without the quote marks
(the exact same command) - the bat file works (combines the img files and 
creates a avi video – slideshow)

Any help to get the bat file to just automatically exe the command instead of 
having to enter it manually at the cmd prompt?

Thanks in advance for any help,
mikeB





_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to