[FFmpeg-user] bat file problem

mB mb at code-it.com
Sun Apr 26 15:17:56 CEST 2015


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







More information about the ffmpeg-user mailing list