[MPlayer-users] Size of MP4 video not correctly recognized.

Hernan Badino hernan.badino at gmail.com
Mon Aug 28 23:40:25 CEST 2006


Hello Everybody,

My Sanyo camera records mp4 files which cannot be played correctly by 
mplayer. I remember that with some previous version (I don't know which 
one) I could play the file without problem but now I only can see the 
upper-left quarter of the video (320x240) instead of the full VGA. My 
current mplayer version is not the last from repository but is not older 
than 1 month. Nevertheless, I can remember this problem was already 
there with the last release version of mplayer.

A sample file is available in the following url:

http://www.lelaps.de/photos/VCLP6549.MP4

The output I get is the following: (with -v option).
-------------------------------------
MPlayer dev-SVN-r19184-3.3.1 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 2.00GHz (Family: 6, Model: 13, 
Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Warning unknown option ffourcc at line 2
get_path('codecs.conf') -> '/home/badino/.mplayer/codecs.conf'
Reading /home/badino/.mplayer/codecs.conf: Can't open 
'/home/badino/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open 
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' 'VCLP6549.MP4'
init_freetype
get_path('font/font.desc') -> '/home/badino/.mplayer/font/font.desc'
font: can't open file: /home/badino/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: Permission denied (it should be readable by the 
user.)
Using nanosleep() timing
get_path('input.conf') -> '/home/badino/.mplayer/input.conf'
Can't open input config file /home/badino/.mplayer/input.conf: No such 
file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such 
file or directory
Falling back on default (hardcoded) input config
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Permission denied
Failed to open LIRC support.
You will not be able to use your remote control.
get_path('VCLP6549.MP4.conf') -> '/home/badino/.mplayer/VCLP6549.MP4.conf'

Playing VCLP6549.MP4.
get_path('sub/') -> '/home/badino/.mplayer/sub/'
[file] File size is 1277952 bytes
STREAM: [file] VCLP6549.MP4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename VCLP6549.MP4 ext: .MP4
Trying demuxer 7 based on filename extension
Checking for MOV
ISO: File Type Major Brand: ISO/IEC 14496-1 (MPEG-4 system) v2
ISO: File Type Minor Version: 0
ISO: File Type Compatible Brand #0: mp42
ISO: File Type Compatible Brand #1: isom
ISO: File Type Compatible Brand #2:
ISO: File Type Compatible Brand #3:
MOV: Movie header found!
MOV: Movie DATA found!
Quicktime/MOV file format detected.
MOV: Movie header (100 bytes): tscale=30000  dur=111111
--------------
MOV: Track #0:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=1 dur=111111 lay=0 vol=0
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: /vide ()
MOV: unknown handler class: 0x0 ()
MOV:   Media info!
MOV:    Video header!
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: mp4v  (139 bytes)
MOV:     Sample duration table! (1 blocks)
MOV:     Syncing samples (keyframes) table! (8 entries) (ver:0,flags:0)
MOV:     Sample->Chunk mapping table!  (2 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=111 ss=0) (ver:0,flags:0)
MOV:     Chunk offset table! (8 chunks)
MOV track #0: 8 chunks, 111 samples
pts=111111  scale=30000  time=3.704
==> Found video stream: 0
MOV: Found MPEG4 movie Elementary Stream Descriptor atom (69)!
ESDS MPEG4 version: 0  flags: 0x000000
ESDS MPEG4 ES Descriptor (55Bytes):
 -> ESId: 1
 -> streamPriority: 31
ESDS MPEG4 Decoder Config Descriptor (47Bytes):
 -> objectTypeId: 32
 -> streamType: 0x11
 -> bufferSizeDB: 0x0249F0
 -> maxBitrate: 6000.000kbit/s
 -> avgBitrate: 3000.000kbit/s
ESDS MPEG4 Decoder Specific Descriptor (32Bytes)
ESDS MPEG4 Sync Layer Config Descriptor (1Bytes)
 -> predefined: 2
Image size: 320 x 240 (24 bpp)
Display size: 320 x 240
Fourcc: mp4v  Codec: ''
--------------
MOV: Track #1:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=2 dur=111111 lay=0 vol=256
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: /soun ()
MOV: unknown handler class: 0x0 ()
MOV:   Media info!
MOV:    Sound header!
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: mp4a  (71 bytes)
MOV:     Sample duration table! (1 blocks)
MOV:     Sample->Chunk mapping table!  (7 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=173 ss=0) (ver:0,flags:0)
MOV:     Chunk offset table! (8 chunks)
MOV track #1: 8 chunks, 173 samples
pts=177152  scale=48000  time=3.691
==> Found audio stream: 1
Audio bits: 16  chans: 2  rate: 48000
MOV: Found MPEG4 audio Elementary Stream Descriptor atom (51)!
ESDS MPEG4 version: 0  flags: 0x000000
ESDS MPEG4 ES Descriptor (34Bytes):
 -> ESId: 2
 -> streamPriority: 0
ESDS MPEG4 Decoder Config Descriptor (20Bytes):
 -> objectTypeId: 64
 -> streamType: 0x15
 -> bufferSizeDB: 0x001000
 -> maxBitrate: 192.000kbit/s
 -> avgBitrate: 128.000kbit/s
ESDS MPEG4 Decoder Specific Descriptor (2Bytes)
ESDS MPEG4 Sync Layer Config Descriptor (1Bytes)
 -> predefined: 2
Fourcc: mp4a
--------------
MOV: Track #2:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=3 dur=111111 lay=0 vol=0
MOV: unknown chunk: tref 16
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: /odsm ()
MOV: unknown handler class: 0x0 ()
MOV:   Media info!
MOV:    Generic header!
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: mp4s  (35 bytes)
MOV:     Sample duration table! (1 blocks)
MOV:     Sample->Chunk mapping table!  (1 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=1 ss=18) (ver:0,flags:0)
MOV:     Chunk offset table! (1 chunks)
MOV track #2: 1 chunks, 0 samples
pts=111111  scale=30000  time=3.704
Generic track - not completely understood! (id: 2)
--------------
MOV: Track #3:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=4 dur=111111 lay=0 vol=0
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: /sdsm ()
MOV: unknown handler class: 0x0 ()
MOV:   Media info!
MOV:    Generic header!
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: mp4s  (40 bytes)
MOV:     Sample duration table! (1 blocks)
MOV:     Sample->Chunk mapping table!  (1 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=1 ss=16) (ver:0,flags:0)
MOV:     Chunk offset table! (1 chunks)
MOV track #3: 1 chunks, 0 samples
pts=111111  scale=30000  time=3.704
Generic track - not completely understood! (id: 3)
--------------
MOV: unknown chunk: iods 25
Quicktime Clip Info:
 Format: Digital Camera
 Info: SANYO DIGITAL CAMERA C1
MOV: longest streams: A: #1 (173 samples)  V: #0 (111 samples)
VIDEO:  [mp4v]  320x240  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7  fourcc:0x7634706D  size:320x240  fps:29.97  ftime:=0.0334
get_path('sub/') -> '/home/badino/.mplayer/sub/'
X11 opening display: :0.
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1920x1200 with depth 24 and 32 bpp (":0." => local 
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP X atoms
Disabling DPMS
DPMSDisable stat: 1
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x0101fe).
[xv common] Maximum source image dimensions: 2046x2046
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 4608 bytes for input buffer.
dec_audio: Allocating 49152 + 65536 = 114688 bytes for output buffer.
FAAD: Decoder init done (0Bytes)!
FAAD: Negotiated samplerate: 48000Hz  channels: 2
FAAD: got 128kbit/s bitrate from MP4 header!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) 
decoder)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
ao2: 48000 Hz  2 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
[ffmpeg] aspect_ratio: 1.333333
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (320x240->320x240,flags=0,'MPlayer',0x32315659)
VO: [xv] 320x240 => 320x240 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 145 for hw scaling
[xv] dx: 0 dy: 0 dw: 384 dh: 240
*** [vo] Allocating (slices) mp_image_t, 640x480x12bpp YUV planar, 
460800 bytes
[xv] dx: 0 dy: 0 dw: 384 dh: 240
*** [vo] Allocating (slices) mp_image_t, 640x480x12bpp YUV planar, 
460800 bytes
get_path('subfont.ttf') -> '/home/badino/.mplayer/subfont.ttf'
Unicode font: 1899 glyphs.
Uninit audio filters... 0.001 ct:  0.021  34/ 34  8%  1%  1.1% 0 0
[libaf] Removing filter dummy
Uninit audio: faad
FAAD: Closing decoder!
Uninit video: ffmpeg
Successfully enabled DPMS
vo: uninit ...

-------------------------------------

I don't know why the video is recognized as QVGA instead of VGA. It must 
just be a bug.

Cheers,

Hernan




More information about the MPlayer-users mailing list