views:

25

answers:

0

Can anyone help me in giving a proper command in ffmpeg to convert a set of BMP files which is getting generated in a folder to videos? But though the filenames are in a successive order it will not start from 1. I.e. if I start ffmpeg.exe like

ffmpeg.exe -i input%05d.bmp video.asf -vframe 30

it will take the filename from input00001 to 30 numbers only. But I want a code to take files with filenames as it is generated because according to my program my first files may get deleted and recording may be needed at some extend only, that is: it depends. That is if the folder is having filenames starting from input 00045 then it should take filename starting from that filename to next 30 frames.