<p>I have 28,000 images I need to convert into a movie.
I tried </p>

<pre><code>mencoder mf://*.jpg -mf w=640:h=480:fps=30:type=jpg -ovc lavc -lavcopts vcodec=msmpeg4v2 -nosound -o ../output-msmpeg4v2.avi
</code></pre>

<p>But it seems to crap out at 7500 frames.</p>

<p>The files are named
webcam_2007-04-16_070804.jpg
webcam_2007-04-16_071004.jpg
webcam_2007-04-16_071204.jpg
webcam_2007-04-16_071404.jpg
Up to march 2008 or so.</p>

<p>Is there another way I can pass the filenames to mencoder so it doesn't stop part way?</p>

<pre><code>MEncoder 2:1.0~rc2-0ubuntu13 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping: 7)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 16  data: 0x0 - 0x0
MF file format detected.
[mf] search expr: *.jpg
[mf] number of files: 28617 (114468)
VIDEO:  [IJPG]  640x480  24bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16  fourcc:0x47504A49  size:640x480  fps:30.00  ftime:=0.0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (640x480 fourcc=3234504d [MP42])
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos: 251.3s   7539f ( 0%) 47.56fps Trem:   0min   0mb  A-V:0.000 [1202:0]
Flushing video frames.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream: 1202.480 kbit/s  (150310 B/s)  size: 37772908 bytes  251.300 secs  7539     frames
</code></pre>

[{'answer_id': 75566, 'author': 'Grank', 'author_id': 12975, 'author_profile': 'https://Stackoverflow.com/users/12975', 'pm_score': 0, 'selected': False, 'text': '<p>another alternative is to bypass mencoder and use ffmpeg directly</p>\n'}, {'answer_id': 75616, 'author': 'Dark Shikari', 'author_id': 11206, 'author_profile': 'https://Stackoverflow.com/users/11206', 'pm_score': 1, 'selected': False, 'text': '<p>You might be better off going to #mplayer or #ffmpeg on Freenode IRC for specific help with those programs.</p>\n'}, {'answer_id': 75635, 'author': 'metadave', 'author_id': 7237, 'author_profile': 'https://Stackoverflow.com/users/7237', 'pm_score': 0, 'selected': False, 'text': '<p>Kinda of an odd answer... but I thought that Blender could construct videos from sequences of images. Just a thought.</p>\n'}, {'answer_id': 75668, 'author': 'moonshadow', 'author_id': 11834, 'author_profile': 'https://Stackoverflow.com/users/11834', 'pm_score': 3, 'selected': True, 'text': '<p>Shove the list of images in a file, one per line. Then use <code>mf://@filename</code></p>\n'}, {'answer_id': 83658, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>You can create a video from a sequence of images using LiVES:\n<a href="http://lives.sourceforge.net" rel="nofollow noreferrer">http://lives.sourceforge.net</a></p>\n\n<p>Simply place all of the images in a directory, and make sure they are in alphanumeric order.\nThen in LiVES, just go to File/Open File or Directory, and double-click on the image directory.</p>\n\n<p>Once the images have loaded you can edit the clip and save it in a variety of formats.</p>\n'}]
['https://Stackoverflow.com/questions/75508', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/11950/']