Have you tried a batch file containing: for (*.bmp) do "C:\...FFmpeg.exe" -i "...\Name%Xd.bmp" blah blah blah? where X in Name%Xd.bmp is the number of nubers in the file name