[MEncoder-users] Mencoder does not sort joeg images !?
Dieter
freebsd at sopwith.solgatos.com
Tue Jul 31 20:45:43 CEST 2007
> I've 1000's of jpeg images taken by my webcam's Time Lapse Video feature. Now,
> I want to stitch these into an AVI video.
>
> I'm using mencoder to get this done and this is the command I use:
>
> mencoder "mf://*.jpg" -mf type=jpeg:fps=10 -o /Movies/image-video2.avi -ovc
> xvid -xvidencopts bitrate=200
>
> The images are named with numbers starting with 1 i.e. 1.jpg, 2.jpg.... and so
> on and so forth, numbered in chronological order with the firstmost/oldest
> image being named 1.jpg. I expected mencoder to sort the filenames in
> ascending order and start with the lowermost number i.e. 1.jpg. Looks like it
> doesn't happen this way. When I play the encoded movie, I can tell that these
> images were not sorted as each of the image has date and time printed on the
> lower right corner and this keeps changing in randomly.
>
> How do I get mencoder to sort the filenames or how can I specify a file that
> contains the list of files sorted in the desired order ?
Have you tried naming the files with leading zeros so that they sort correctly?
000000001.jpg
000000002.jpg
000000003.jpg
000000004.jpg
000000005.jpg
000000006.jpg
000000007.jpg
000000008.jpg
000000009.jpg
000000010.jpg
000000011.jpg
More information about the MEncoder-users
mailing list