试图将一堆jpegs转换成电影

时间:2008-09-16 18:34:09

标签: video encoding

我需要将28,000张图片转换成电影。 我试过了

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

但似乎在7500帧处扯掉了。

文件已命名 webcam_2007-04-16_070804.jpg webcam_2007-04-16_071004.jpg webcam_2007-04-16_071204.jpg webcam_2007-04-16_071404.jpg 到2008年3月左右。

我是否有另一种方法可以将文件名传递给mencoder,这样它就不会停止?

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

5 个答案:

答案 0 :(得分:2)

将文件列表推入文件中,每行一个。然后使用mf://@filename

答案 1 :(得分:1)

你可能最好去Freenode IRC的#mplayer或#ffmpeg寻求这些程序的特定帮助。

答案 2 :(得分:1)

您可以使用LiVES从一系列图像创建视频: http://lives.sourceforge.net

只需将所有图像放在目录中,并确保它们是按字母数字顺序排列的。 然后在LiVES中,只需转到文件/打开文件或目录,然后双击图像目录。

图片加载后,您可以编辑剪辑并以各种格式保存。

答案 3 :(得分:0)

另一种选择是绕过mencoder并直接使用ffmpeg

答案 4 :(得分:0)

有点奇怪的答案......但我认为Blender可以根据图像序列构建视频。只是一个想法。