I have been using ffmpeg to convert a sequence of jpegs to a video using the following syntax
ffmpeg -f image2 -i frame%d.jpg -vcodec mpeg4 -b 800k video.avi
it works a treat, however if the filenames dont start at 0 and then pursue in accending order I get weird results. for example the first file in the directory is frame1 and last file is fram 61.I should point out that im always using a list of jpegs which accend in incrental order. for example a list of files called frame1, fram2, fram3 etc.
the following works fine
frame1.jpg to frame9.jpg
frame1.jpg to frame10.jpg frame2.jpg to frame8.jpg frame2.jpg to frame10.jpg frame2.jpg to frame11.jpg frame2.jpg to frame17.jpg frame2.jpg to frame20.jpg frame2.jpg to frame30.jpg frame2.jpg to frame61.jpg
the following doesnt work
26 to 57 fail
11 to 61 fail 10 to 61 fail 20 to 61 fail 24 to 61 fail
Can I modify the arguments for ffmpeg so that it will make the video regardless of the filenames? (frame%d)
See Question&Answers more detail:os