[MPlayer-dev-eng] mencoder robustness

Jay Thomas jthomas2 at uiuc.edu
Sat Dec 1 03:40:03 CET 2001


Hi,

I noticed a little problem w/ mencoder when encoding MJPEG movies from
my matrox marvel into divx.

Basically the encoder freezes.

Here is some output:
[root at tv mjpeg]# /usr/local/bin/mencoder ETV-32993.avi
Reading /root/.mplayer/codecs.conf: 20 audio & 50 video codecs
success: format: 0  data: 0x0 - 0x6CE8A0D4
Detected AVI file format!
MainAVIHeader.dwFlags: (65552) HAS_INDEX WAS_CAPTUREFILE
VIDEO:  [MJPG]  352x240  24bpp  29.97 fps  9493.2 kbps (1158.8 kbyte/s)
[V] filefmt:3  fourcc:0x47504A4D  size:352x240  fps:29.97  ftime:=0.0334

Detected video codec: [mjpeg] drv:2 (Motion JPEG)
fs seg 0x40018000
Loading DLL: 'mcmjpg32.dll'
ICDecompressGetFormatSize ret: 40
Detected audio codec: [pcm] drv:2 (Uncompressed PCM)
AUDIO: srate=44100  chans=2  bps=2  sfmt=0x10  ratio: 176400->176400
Writing AVI header...
A:   1.5 V:   1.0 A-V:  0.561 oAV:  0.488 diff:  0.006 ct:  0.067 vpc:
0.067
skip frame!!!
A: 528.2 V: 527.7 A-V:  0.510 oAV:  0.470 diff:  0.000 ct:  0.073 vpc:
0.039
[1]+  Stopped                 /usr/local/bin/mencoder ETV-32993.avi

If I play the same thing with mplayer, here is the output:
[root at tv mjpeg]# /usr/local/bin/mplayer -vo x11 ETV-32993.avi


MPlayer CVS-011116-00:00(C) 2000-2001 Arpad Gereoffy (see DOCS!)

CPU vendor name: GenuineIntel  max cpuid level: 2
CPU: Intel Celeron A Mendocino/Pentium II Dixon
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Reading /root/.mplayer/codecs.conf: 20 audio & 50 video codecs
Font /root/.mplayer/font/font.desc loaded successfully! (206 chars)
Setting up lirc support...
Using Linux's hardware RTC timing (1024Hz)
Playing ETV-32993.avi
Detected AVI file format!
MainAVIHeader.dwFlags: (65552) HAS_INDEX WAS_CAPTUREFILE
VIDEO:  [MJPG]  352x240  24bpp  29.97 fps  9493.2 kbps (1158.8 kbyte/s)
[V] filefmt:3  fourcc:0x47504A4D  size:352x240  fps:29.97  ftime:=0.0334

Detected audio codec: [pcm] drv:2 (Uncompressed PCM)
AUDIO: srate=44100  chans=2  bps=2  sfmt=0x10  ratio: 176400->176400
Detected video codec: [mjpeg] drv:2 (Motion JPEG)
vo: X11 running at 1920x1440 with depth 16 and 16 bits/pixel
("tv.chmpgn1.il.hom
e.com:10.1" => remote display)
fs seg 0x40018000
Loading DLL: 'mcmjpg32.dll'
ICDecompressGetFormatSize ret: 40
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 352x240 => 352x240 BGR 15-bit
Shared memory not supported
Reverting to normal Xlib
AO: [oss] 44100Hz Stereo Signed 16-bit (Little-Endian)
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested:
Signed 16-
bit (Little-Endian))
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags:   2/2  (65536 bytes/frag)  free: 131072
Start playing...
A: 526.8 V: 523.4 A-V:  3.394 ct:  0.180  15686/15686  39% 231% 18.4% 50
0 0%
************************************************************************

** Your system is too SLOW to play this! try with -framedrop or RTFM! **

************************************************************************

A: 532.8 V: 525.4 A-V:  7.481 ct:  0.380  15746/15746  39% 238% 17.4%
110 0 0%
DEMUXER: Too many (241 in 8411770 bytes) video packets in the buffer!
(maybe you play a non-interleaved stream/file or the codec failed)
A: 533.2 V: 527.4 A-V:  5.778 ct:  0.584  15807/15807  39% 236% 11.4%
110 0 0%
MPlayer interrupted by signal 2 in module: flip_page
vo: uninit!
*** free_stream() called ***

So it seems to me that mencoder doesn't recover very well when the codec
fails which seems to happen every once in a while w/ the matrox marvel.

Does that make any sense?

Thanks,
-Jay

FYI: it is gcc-3.0.1 & ffmpeg's mjpeg codec doesn't work w/ MJPEGS's
from my marvel (in my experience, let me know if yours differs)

Oddly, it does work of MJPEG's from my Iomega buz.

FYI2: This is all part of a PVR project I'm working on. Things that I
have working now include, multi-channel record, TV on screen & web &
libraries of DVD's & mp3's.

FYI3: mencoder does rule. I've used it to rip almost 2 dozen dvd's so
far. ;-)

--
"The condition upon which God hath given liberty to man is eternal vigilance"
- John Philpot Curran, 1808 -

Freedom is not free.  Free men are not equal.  Equal men are not free.
This message Copyright (c) 2001 Jay Thomas
Jay Thomas, jthomas2 at uiuc.edu http://www.uiuc.edu/~jthomas2






More information about the MPlayer-dev-eng mailing list