Opened 12 years ago

Last modified 12 years ago

#844 new defect

mencoder fails with too many image files

Reported by: moricio@… Owned by: reimar
Priority: very important Component: core
Version: 1.0rc1 Severity: critical
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

I have 41756 image files in a directory and I run the following command:

mencoder "mf://axis_070606*.jpg" -mf fps=30:type=jpg:w=320:h=240 -o output.avi -ovc lavc -lavcopts vcodec=wmv2:vbitrate=150:trell -oac copy

mencoder stops encoding after 644 files and produces an output file with a perfect video.

What is going on?

Thanks.

MRamirez

Change History (6)

comment:1 Changed 12 years ago by moricio@…

I'm including the output message from the run.


-bash-2.05b$ mencoder "mf://axis_070606*.jpg" -mf fps=30:type=jpg:w=320:h=240 -o output.avi -ovc lavc -lavcopts vcodec=wmv2:vbitrate=150:trell -oac copy
MEncoder 1.0rc1-3.3.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Celeron(R) 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 for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 16 data: 0x0 - 0x0
MF file format detected.
[mf] search expr: axis_070606*.jpg
[mf] number of files: 41756 (167024)
VIDEO: [IJPG] 320x240 24bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16 fourcc:0x47504A49 size:320x240 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 - 320 x 240 (preferred colorspace: Planar 422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler?: reducing / aligning filtersize 1 -> 4
SwScaler?: reducing / aligning filtersize 1 -> 4
SwScaler?: reducing / aligning filtersize 1 -> 1
SwScaler?: reducing / aligning filtersize 9 -> 8

SwScaler?: BICUBIC scaler, from yuv422p to yuv420p using MMX2
SwScaler?: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler?: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler?: using 1-tap MMX "scaler" for vertical scaling (YV12 like)
SwScaler?: 320x240 -> 320x240
videocodec: libavcodec (320x240 fourcc=32564d57 [WMV2])
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
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: 21.5s 644f ( 0%) 166.71fps Trem: 0min 0mb A-V:0.000 [177:0]
Flushing video frames
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream: 177.391 kbit/s (22173 B/s) size: 476000 bytes 21.467 secs 644 frames


MRamirez

comment:2 Changed 12 years ago by compn

try using the filelist feature of mf://

ls *.jpg > list.txt
mencoder mf://@list.txt ...

comment:3 Changed 12 years ago by moricio@…

Hi!
Been there, done that, doesn't work. Any more ideas. Your advice produces the same results.
M.

comment:4 Changed 12 years ago by compn

does mplayer mf://axis_070606*.jpg -mf fps=30:type=jpg:w=320:h=240
only play the first 644 frames?

can you try with another shell? tcsh?
mf is kind of buggy...

ffmpeg can also turn images into video:
http://electron.mit.edu/~gsteele/ffmpeg/

comment:5 Changed 12 years ago by moricio@…

Yes it plays the 644 frames(In reply to comment #4)

does mplayer mf://axis_070606*.jpg -mf fps=30:type=jpg:w=320:h=240
only play the first 644 frames?
can you try with another shell? tcsh?
mf is kind of buggy...
ffmpeg can also turn images into video:
http://electron.mit.edu/~gsteele/ffmpeg/

I tried with other shells and same pattern.
ffmpeg requires the files to be sequeantially numbered and mine are not created that way. Mplayer plays the 644 frames.

comment:6 Changed 12 years ago by compn

can you zip up 650 images

(verify that 650 images only outputs 644 frames)
and upload it somewhere so the devs can squash this bug?

Note: See TracTickets for help on using tickets.