Posted: 2006-07-17T17:00:04-07:00
Well as you did not give an example, I assume you have a set of numbered files and the order is comming out all wrong because of the numbering.
Eg 1.jpg 2.jpg ... 9.jpp 10.jpg 11.jpg
etc..
You need to try to load the smaller image first. eg:
convert ?.jpg ??.jpg ???.jpg ..... output.mpg
Alturnativeally you need to rename all your images to add zeroes in front of the numbers that are too small. I use simple perl script called mv_renum for this..
http://www.cit.gu.edu.au/~anthony/software/mv_renum.pl
EG mv_renum images_*.jpg
will find the largest number in the given filenames, and prepend zeros to the number found in the other filesnames so they list in the correct order.
Or you can specfiy the number of digits you want each number to be
mv_renum -8 images_*.jpg
If you copy the script to be called mv_reseq it will also change all the numbers to remove any gaps, or with the right arguments add gaps to the sequence. It is a VERY handy script.
While we are looking at 'handy' scripts, you may also like to search for a
mv_perl script on the web. This lets you use a small perl RE to rename files.
Eg 1.jpg 2.jpg ... 9.jpp 10.jpg 11.jpg
etc..
You need to try to load the smaller image first. eg:
convert ?.jpg ??.jpg ???.jpg ..... output.mpg
Alturnativeally you need to rename all your images to add zeroes in front of the numbers that are too small. I use simple perl script called mv_renum for this..
http://www.cit.gu.edu.au/~anthony/software/mv_renum.pl
EG mv_renum images_*.jpg
will find the largest number in the given filenames, and prepend zeros to the number found in the other filesnames so they list in the correct order.
Or you can specfiy the number of digits you want each number to be
mv_renum -8 images_*.jpg
If you copy the script to be called mv_reseq it will also change all the numbers to remove any gaps, or with the right arguments add gaps to the sequence. It is a VERY handy script.
While we are looking at 'handy' scripts, you may also like to search for a
mv_perl script on the web. This lets you use a small perl RE to rename files.