[MPlayer-users] mplayer can't play mjpeg files

Alexander Kogan alexander at kogan.nnov.ru
Wed Jan 26 15:44:52 CET 2005


Hi!

Latest mplayer from CVS can't play mjpeg files produced by Canon A60 camera.
Test file is on http://awp.nnov.ru/~jk/test.avi.

Here is an output from mplayer -v:

% mplayer -v test.avi
MPlayer dev-CVS-050125-13:55-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 
10)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE



CommandLine: '-v' 'test.avi'
init_freetype
get_path('font/font.desc') -> '/home/jk/.mplayer/font/font.desc'
font: can't open file: /home/jk/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
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.
Using nanosleep() timing
get_path('input.conf') -> '/home/jk/.mplayer/input.conf'
Can't open input config file /home/jk/.mplayer/input.conf: No such file or 
directory
Can't open input config file /etc/mplayer/input.conf: No such file or 
directory
Falling back on default (hardcoded) input config
get_path('test.avi.conf') -> '/home/jk/.mplayer/test.avi.conf'
Playing test.avi.
[file] File size is 1048576 bytes
STREAM: [file] test.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x15A
======= AVI Header =======
us/frame: 66666  (fps=15.000)
max bytes/sec: 342599
padding: 0
MainAVIHeader.dwFlags: (65552) HAS_INDEX WAS_CAPTUREFILE
frames  total: 2225   initial: 0
streams: 2
Suggested BufferSize: 22105
Size:  320 x 240
==========================
list_end=0xD4
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC: mjpg (67706A6D)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 1000000/66666 = 15.000
Start: 0   Len: 2225
Suggested BufferSize: 22105
Quality 10000
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 320
  biHeight 240
  biPlanes 1
  biBitCount 24
  biCompression 1196444237='MJPG'
  biSizeImage 230400
===========================
list_end=0x138
==> Found audio stream: 1
====== STREAM Header =====
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 11024/1 = 11024.000
Start: 0   Len: 1635226
Suggested BufferSize: 11024
Quality 10000
Sample size: 1
==========================
found 'wf', 16 bytes of 18
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 1
Samplerate: 11024
avg byte/sec: 11024
Block align: 1
bits/sample: 8
cbSize: 0
===========================
hdr=Digitization Time  size=26
Digitization Time: Thu Feb 12 20:09:46 2004

list_end=0x17A
hdr=Software  size=12
Software  : CanonMVI01
list_end=0x2A480D4
Found movie at 0x80C - 0x2A480D4
stream_seek: WARNING! Can't seek to 0x2A480D4 !
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=42680230 (2225)  audio size=1635226
VIDEO:  [MJPG]  320x240  24bpp  15.000 fps  2301.9 kbps (281.0 kbyte/s)
[V] filefmt:3  fourcc:0x47504A4D  size:320x240  fps:15.00  ftime:=0.0667
Clip info:
 Digitization Time: Thu Feb 12 20:09:46 2004

 Software: CanonMVI01
get_path('sub/') -> '/home/jk/.mplayer/sub/'
get_path('default.sub') -> '/home/jk/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 11024 Hz, 1 ch, 8 bit (0x3), ratio: 11024->11024 (88.2 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
X11 opening display: jk.lab313:0.0
vo: X11 color mask:  FFFF  (R:F800 G:7E0 B:1F)
vo: X11 running at 1440x1080 with depth 16 and 16 bpp ("jk.lab313:0.0" => 
remote display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE BELOW X 
atoms
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Checking audio filter chain for 11024Hz/1ch/8bit -> 11024Hz/2ch/8bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=11024Hz, nch = 1, format = 0x00000003 and bps 
= 1
AF_pre: af format: 1 bps, 1 ch, 11024 hz, little-endian 8-bit unsigned int
AF_pre: 11024Hz 1ch little-endian 8-bit unsigned int
ao2: 11024 Hz  2 chans  u8
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audiolib:  connection to "tcp/jk.lab313:8000" refused by server
audiolib:  Client is not authorized to connect to Server
libaudiooss: could not open nas audio server
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Success
ao2: 11024 Hz  2 chans  u8
ao_nas: init(): Using audioserver jk.lab313:0.0
audiolib:  connection to "tcp/jk.lab313:8000" refused by server
audiolib:  Client is not authorized to connect to Server
ao_nas: init(): Can't open nas audio server -> nosound
AO: [null] 11024Hz 2ch little-endian 8-bit unsigned int (1 bps)
AO: Description: Null audio output
AO: Author: Tobias Diedrich
Building audio filter chain for 11024Hz/1ch/8bit -> 11024Hz/2ch/8bit...
[dummy] Was reinitialized, rate=11024Hz, nch = 1, format = 0x00000003 and bps 
= 1
[libaf] Adding filter channels
[channels] Changing number of channels to 2
[dummy] Was reinitialized, rate=11024Hz, nch = 1, format = 0x00000003 and bps 
= 1
Starting playback...
XXX initial  v_pts=0.933  a_pos=11024 (1.000)
[libaf] Reallocating memory in module channels, old len = 0, new len = 65535
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 320 x 240 (preferred csp: Unknown)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
mp_image: Unknown out_fmt: 0x0
*** [vo] Exporting mp_image_t, 320x240x0bpp YUV packed, 0 bytes

FATAL: Could not initialize video filters (-vf) or video output (-vo).

Uninit audio filters...
[libaf] Removing filter dummy
[libaf] Removing filter channels
uninit audio: pcm
uninit video: ffmpeg
vo: uninit ...

Exiting... (End of file)


-- 
Alexander Kogan
Institute of Applied Physics
Russian Academy of Sciences




More information about the MPlayer-users mailing list