[MPlayer-users] Bug while reading MJPEG avi file
Stef Epardaud
stephane+mplayer at inforealm.org
Fri Mar 25 10:05:47 CET 2005
--
Stéphane Epardaud
-------------- next part --------------
Hello,
I suspect this is a bug: when I try to read my .avi file (taken from a
fujifilm digital camera) I get this mplayer output and no success:
labyrinth stephane 21:48 us4 $ mplayer vid_ecureuil.avi
MPlayer 1.0pre6-3.3.5 (C) 2000-2004 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
MMX2 supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing vid_ecureuil.avi.
AVI file format detected.
VIDEO: [MJPG] 320x240 24bpp 30.000 fps 4610.5 kbps (562.8 kbyte/s)
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 16000 Hz, 1 ch, 8 bit (0x8), ratio: 16000->16000 (128.0 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Checking audio filter chain for 16000Hz/1ch/8bit -> 16000Hz/2ch/8bit...
AF_pre: af format: 1 bps, 1 ch, 16000 hz, little endian unsigned int
AF_pre: 16000Hz 1ch Unsigned 8-bit
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: default
alsa: 16000 Hz/2 channels/2 bpf/32768 bytes buffer/Unsigned 8 bit
AO: [alsa] 16000Hz 2ch Unsigned 8-bit (1 bps)
Building audio filter chain for 16000Hz/1ch/8bit -> 16000Hz/2ch/8bit...
Starting playback...
VDec: vo config request - 320 x 240 (preferred csp: Unknown)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
mp_image: Unknown out_fmt: 0x0
FATAL: Could not initialize video filters (-vf) or video output (-vo).
alsa-uninit: pcm closed
Exiting... (End of file)
----
And when I do it with -vc mjpeg it works:
labyrinth stephane 21:54 us4 $ mplayer -vc mjpeg vid_ecureuil.avi
MPlayer 1.0pre6-3.3.5 (C) 2000-2004 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
MMX2 supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing vid_ecureuil.avi.
AVI file format detected.
VIDEO: [MJPG] 320x240 24bpp 30.000 fps 4610.5 kbps (562.8 kbyte/s)
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 16000 Hz, 1 ch, 8 bit (0x8), ratio: 16000->16000 (128.0 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Forced video codec: mjpeg
Opening video decoder: [vfw] Win32/VfW video codecs
Loading codec DLL: 'mcmjpg32.dll'
Loaded DLL driver mcmjpg32.dll at 10000000
VDec: vo config request - 320 x 240 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 9.
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x240 => 320x240 Packed YUY2
Selected video codec: [mjpeg] vfm:vfw (MainConcept Motion JPEG)
==========================================================================
Checking audio filter chain for 16000Hz/1ch/8bit -> 16000Hz/2ch/8bit...
AF_pre: af format: 1 bps, 1 ch, 16000 hz, little endian unsigned int
AF_pre: 16000Hz 1ch Unsigned 8-bit
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: default
alsa: 16000 Hz/2 channels/2 bpf/32768 bytes buffer/Unsigned 8 bit
AO: [alsa] 16000Hz 2ch Unsigned 8-bit (1 bps)
Building audio filter chain for 16000Hz/1ch/8bit -> 16000Hz/2ch/8bit...
Starting playback...
alsa-uninit: pcm closed 0.001 ct: -0.004 46/ 46 9% 3% 1.7% 0 0 31%
Exiting... (Quit)
----
The annoying thing is that I want to convert this file (MJPEG, raw pcm audio)
to DivX/mp3 with mencoder, but I've had no luck, probably due in some degree
to this bug. Does anyone have any idea ? (I could post the video online, but
it's 16Megs)
Thanks.
--
St��phane Epardaud
More information about the MPlayer-users
mailing list