Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1256 closed defect (fixed)

mp4 demuxer broken for some MP4 movies (AVC video + AAC audio)

Reported by: t.artem@… Owned by: r_togni@…
Priority: normal Component: core
Version: HEAD Severity: major
Keywords: Cc: rectalogic@…
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Change History (12)

comment:1 Changed 11 years ago by t.artem@…

No matter how much of those files I try to split using mp4box, mplayer plays them all, so the problem seems to be these movies headers.

I cannot provide any sample :-(

comment:2 Changed 11 years ago by compn

here is the copy/paste from that pastebin:

mplayer -v -msglevel all=9 Be\ Kind\ Rewind\ \[2008-DVDRip-H.264\]-NewArtRiot?.mp4
MPlayer dev-SVN-r27482-4.2.4 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (Family: 15, Model: 67, Stepping: 3)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Adding file Be Kind Rewind [2008-DVDRip-H.264]-NewArtRiot?.mp4
Config pushed level is now 2
Config pushed level is now 3
get_path('codecs.conf') -> '/home/birdie/.mplayer/codecs.conf'
Reading /home/birdie/.mplayer/codecs.conf: Can't open '/home/birdie/.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.
Configuration: --disable-vidix --enable-gui --enable-dynamic-plugins --enable-menu --enable-radio --enable-radio-capture --disable-inet6 --disable-arts --disable-esd
CommandLine?: '-v' '-msglevel' 'all=9' 'Be Kind Rewind [2008-DVDRip-H.264]-NewArtRiot?.mp4'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay?
get_path('fonts') -> '/home/birdie/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/birdie/.mplayer/input.conf'
Can't open input config file /home/birdie/.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
get_path('Be Kind Rewind [2008-DVDRip-H.264]-NewArtRiot?.mp4.conf') -> '/home/birdie/.mplayer/Be Kind Rewind [2008-DVDRip-H.264]-NewArtRiot?.mp4.conf'

[init getch2?]

Playing Be Kind Rewind [2008-DVDRip-H.264]-NewArtRiot?.mp4.
get_path('sub/') -> '/home/birdie/.mplayer/sub/'
[file] File size is 932279460 bytes
STREAM: [file] Be Kind Rewind [2008-DVDRip-H.264]-NewArtRiot?.mp4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
s->pos=0 newpos=0 new_bufpos=0 buflen=0
LAVF_check: QuickTime?/MPEG-4/Motion JPEG 2000 format
libavformat file format detected.
mp_seek(0xa682810, 0, 65536)
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
mp_seek(0xa682810, 929100674, 0)
s->pos=8000 newpos=3760F000 new_bufpos=3760F382 buflen=0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xa68c340]edit list not starting at 0, a/v desync might occur, patch welcome
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
32768=mp_read(0xa682810, 0xa683aa4, 32768), eof:0
290=mp_read(0xa682810, 0xa683aa4, 32768), eof:1
mp_seek(0xa682810, 932279460, 0)
s->pos=379174A4 newpos=37917000 new_bufpos=379174A4 buflen=0
stream_seek: WARNING! Can't seek to 0x379174A4 !
s->pos=0 newpos=37917000 new_bufpos=379174A4 buflen=0

### FREEZE AT THIS POINT

could you try these files with svn ffmpeg, and see if it has the same problem?
mplayer is using the ffmpeg mp4 demuxer
mplayer -demuxer mov will use the old mplayer mp4 demuxer (and probably work for your files)

comment:3 Changed 11 years ago by t.artem@…

mplayer -demuxer mov Funny.Games.US.ENG.DVDRip-LGLuX.mp4 works just fine!

As for the second movie - I get a plenty of errors and the video output is broken (seeking video also produces a distorted picture):

mplayer -v -demuxer mov Be\ Kind\ Rewind\ \[2008-DVDRip-H.264\]-NewArtRiot?.mp4
MPlayer dev-SVN-r27482-4.2.4 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (Family: 15, Model: 67, Stepping: 3)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
get_path('codecs.conf') -> '/home/birdie/.mplayer/codecs.conf'
Reading /home/birdie/.mplayer/codecs.conf: Can't open '/home/birdie/.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.
Configuration: --disable-vidix --enable-gui --enable-dynamic-plugins --enable-menu --enable-radio --enable-radio-capture --disable-inet6 --disable-arts --disable-esd
CommandLine?: '-v' '-demuxer' 'mov' 'Be Kind Rewind [2008-DVDRip-H.264]-NewArtRiot?.mp4'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay?
get_path('fonts') -> '/home/birdie/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/birdie/.mplayer/input.conf'
Can't open input config file /home/birdie/.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
get_path('Be Kind Rewind [2008-DVDRip-H.264]-NewArtRiot?.mp4.conf') -> '/home/birdie/.mplayer/Be Kind Rewind [2008-DVDRip-H.264]-NewArtRiot?.mp4.conf'

Playing Be Kind Rewind [2008-DVDRip-H.264]-NewArtRiot?.mp4.
get_path('sub/') -> '/home/birdie/.mplayer/sub/'
[file] File size is 932279460 bytes
STREAM: [file] Be Kind Rewind [2008-DVDRip-H.264]-NewArtRiot?.mp4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
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
MOV: Movie DATA found!
MOV: Movie header found!
Quicktime/MOV file format detected.
MOV: Movie header (100 bytes): tscale=44100 dur=269420637
MOV: unknown chunk: iods 16


MOV: Track #0:
MOV: Track header!
tkhd len=84 ver=0 flags=0x0 id=1 dur=269420637 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: avc1 (136 bytes)
MOV: Sample duration table! (113841 blocks)
MOV: Sample size table! (entries=146477 ss=0) (ver:0,flags:0)
MOV: Sample->Chunk mapping table! (2 blocks) (ver:0,flags:0)
MOV: Chunk offset table! (6104 chunks)
MOV: unknown chunk: ctts 575416
MOV: Syncing samples (keyframes) table! (1177 entries) (ver:0,flags:0)
MOV: Edit atom!
MOV: Edit list table (1 entries) (ver:0,flags:0)
MOV: entry#0: duration: 269420637 start time: 3678 speed: 1.0x
MOV track #0: 6104 chunks, 146477 samples
pts=269420637 scale=44100 time=6109.311
EL#0: pts=3678 1st_sample=3 frames=146474 (6109.311s) pts_offs=-5517
==> Found video stream: 0
[mov] Video stream found, -vid 0
MOV: AVC decoder configuration record atom (50)!
MOV: avcC version: 1
MOV: avcC profile: 77
MOV: avcC profile compatibility: 64
MOV: avcC level: 41
MOV: avcC nal length size: 4
MOV: avcC number of sequence param sets: 1
MOV: avcC sps 0 have length 27
MOV: avcC number of picture param sets: 1
MOV: avcC pps 0 have length 4
MOV: Found unknown movie atom pasp (16)!
Image size: 720 x 368 (24 bpp)
Display size: 853 x 368
Fourcc: avc1 Codec:


MOV: Track #1:
MOV: Track header!
tkhd len=84 ver=0 flags=0x0 id=2 dur=269416448 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 size table! (entries=263102 ss=0) (ver:0,flags:0)
MOV: Sample->Chunk mapping table! (2 blocks) (ver:0,flags:0)
MOV: Chunk offset table! (5980 chunks)
MOV track #1: 5980 chunks, 263102 samples
pts=269416448 scale=44100 time=6109.217
==> Found audio stream: 1
[mov] Audio stream found, -aid 1
Audio bits: 16 chans: 2 rate: 44100
MOV: Found MPEG4 audio Elementary Stream Descriptor atom (51)!
ESDS MPEG4 version: 0 flags: 0x000000
ESDS MPEG4 ES Descriptor (34Bytes):

-> ESId: 0
-> streamPriority: 0

ESDS MPEG4 Decoder Config Descriptor (20Bytes):

-> objectTypeId: 64
-> streamType: 0x15
-> bufferSizeDB: 0x00029A
-> maxBitrate: 206.360kbit/s
-> avgBitrate: 127.699kbit/s

ESDS MPEG4 Decoder Specific Descriptor (2Bytes)
ESDS MPEG4 Sync Layer Config Descriptor (1Bytes)

-> predefined: 2

Fourcc: mp4a


Quicktime Clip Info:
MOV: longest streams: A: #1 (263102 samples) V: #0 (146477 samples)
VIDEO: [avc1] 720x368 24bpp 23.993 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7 fourcc:0x31637661 size:720x368 fps:23.993 ftime:=0.0417
get_path('sub/') -> '/home/birdie/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0.0" => local 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
[VO_XV] Using Xv Adapter #0 (NV17 Video Texture)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 2046x2046
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
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: 44100Hz channels: 2
FAAD: got 127kbit/s bitrate from MP4 header!
AUDIO: 44100 Hz, 2 ch, s16le, 127.7 kbit/9.05% (ratio: 15962->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Trying preferred audio driver 'alsa', options '[none]'
alsa-init: requested format: 44100 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.16
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opened in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy@…>
AO: Comment: under developement
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Starting playback...
Increasing filtered audio buffer size from 0 to 65536
[h264 @ 0x8823690]B picture before any references, skipping
[h264 @ 0x8823690]decode_slice_header error
[h264 @ 0x8823690]no frame!
Error while decoding frame!
[h264 @ 0x8823690]B picture before any references, skipping,?% 0 0
[h264 @ 0x8823690]decode_slice_header error
[h264 @ 0x8823690]no frame!
Error while decoding frame!
[h264 @ 0x8823690]B picture before any references, skipping,?% 0 0
[h264 @ 0x8823690]decode_slice_header error
[h264 @ 0x8823690]no frame!
Error while decoding frame!
[h264 @ 0x8823690]B picture before any references, skipping,?% 0 0
[h264 @ 0x8823690]decode_slice_header error
[h264 @ 0x8823690]no frame!
Error while decoding frame!
Frame num gap 2 0 A-V: 0.019 ct: 0.006 4/ 4 ??% ??% ??,?% 0 0
[h264 @ 0x8823690]warning: first frame is no keyframe
[h264 @ 0x8823690]Missing reference picture
[h264 @ 0x8823690]no picture
[ffmpeg] aspect_ratio: 2.317935t: 0.008 5/ 5 ??% ??% ??,?% 0 0
VDec: vo config request - 720 x 368 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 2.32:1 - prescaling to correct movie aspect.
VO Config (720x368->854x368,flags=0,'MPlayer',0x32315659)
VO: [xv] 720x368 => 854x368 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel@…> 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 280 for hw scaling
[xv] dx: 0 dy: 0 dw: 854 dh: 368
* [vo] Exporting mp_image_t, 720x368x12bpp YUV planar, 397440 bytes
Unicode font: 1201 glyphs.
Unicode font: 1201 glyphs.
[xv] dx: 0 dy: 0 dw: 854 dh: 368
[h264 @ 0x8823690]Missing reference picture0/ 10 ??% ??% ??,?% 0 0
Uninit audio filters... 0.000 ct: 0.024 129/129 17% 3% 1.5% 0 0
[libaf] Removing filter dummy
Uninit audio: faad
FAAD: Closing decoder!
Uninit video: ffmpeg
alsa-uninit: pcm closed
vo: uninit ...

Exiting... (Quit)

comment:4 Changed 11 years ago by t.artem@…

(As a side note - ffplay plays both movies just fine without any options.)

The first movie (which plays fine with mov demuxer) verbose output:

mplayer -v -demuxer mov Funny.Games.US.ENG.DVDRip-LGLuX.mp4
MPlayer dev-SVN-r27482-4.2.4 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (Family: 15, Model: 67, Stepping: 3)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
get_path('codecs.conf') -> '/home/birdie/.mplayer/codecs.conf'
Reading /home/birdie/.mplayer/codecs.conf: Can't open '/home/birdie/.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.
Configuration: --disable-vidix --enable-gui --enable-dynamic-plugins --enable-menu --enable-radio --enable-radio-capture --disable-inet6 --disable-arts --disable-esd
CommandLine?: '-v' '-demuxer' 'mov' 'Funny.Games.US.ENG.DVDRip-LGLuX.mp4'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay?
get_path('fonts') -> '/home/birdie/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/birdie/.mplayer/input.conf'
Can't open input config file /home/birdie/.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
get_path('Funny.Games.US.ENG.DVDRip-LGLuX.mp4.conf') -> '/home/birdie/.mplayer/Funny.Games.US.ENG.DVDRip-LGLuX.mp4.conf'

Playing Funny.Games.US.ENG.DVDRip-LGLuX.mp4.
get_path('sub/') -> '/home/birdie/.mplayer/sub/'
[file] File size is 729693421 bytes
STREAM: [file] Funny.Games.US.ENG.DVDRip-LGLuX.mp4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
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
MOV: Movie DATA found!
MOV: Movie header found!
Quicktime/MOV file format detected.
MOV: Movie header (100 bytes): tscale=44100 dur=295559463
MOV: unknown chunk: iods 16


MOV: Track #0:
MOV: Track header!
tkhd len=84 ver=0 flags=0x0 id=1 dur=295559463 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 (164 bytes)
MOV: Sample duration table! (118508 blocks)
MOV: Sample size table! (entries=160688 ss=0) (ver:0,flags:0)
MOV: Sample->Chunk mapping table! (2 blocks) (ver:0,flags:0)
MOV: Chunk offset table! (6696 chunks)
MOV: Syncing samples (keyframes) table! (780 entries) (ver:0,flags:0)
MOV track #0: 6696 chunks, 160688 samples
pts=295559463 scale=44100 time=6702.029
==> Found video stream: 0
[mov] Video stream found, -vid 0
MOV: Found MPEG4 movie Elementary Stream Descriptor atom (94)!
ESDS MPEG4 version: 0 flags: 0x000000
ESDS MPEG4 ES Descriptor (77Bytes):

-> ESId: 0
-> streamPriority: 0

ESDS MPEG4 Decoder Config Descriptor (63Bytes):

-> objectTypeId: 32
-> streamType: 0x11
-> bufferSizeDB: 0x012B88
-> maxBitrate: 8722.880kbit/s
-> avgBitrate: 743.917kbit/s

ESDS MPEG4 Decoder Specific Descriptor (45Bytes)
ESDS MPEG4 Sync Layer Config Descriptor (1Bytes)

-> predefined: 2

Image size: 720 x 400 (24 bpp)
Display size: 720 x 400
Fourcc: mp4v Codec:


MOV: Track #1:
MOV: Track header!
tkhd len=84 ver=0 flags=0x0 id=2 dur=295555072 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 size table! (entries=288628 ss=0) (ver:0,flags:0)
MOV: Sample->Chunk mapping table! (2 blocks) (ver:0,flags:0)
MOV: Chunk offset table! (6560 chunks)
MOV track #1: 6560 chunks, 288628 samples
pts=295555072 scale=44100 time=6701.929
==> Found audio stream: 1
[mov] Audio stream found, -aid 1
Audio bits: 16 chans: 2 rate: 44100
MOV: Found MPEG4 audio Elementary Stream Descriptor atom (51)!
ESDS MPEG4 version: 0 flags: 0x000000
ESDS MPEG4 ES Descriptor (34Bytes):

-> ESId: 0
-> streamPriority: 0

ESDS MPEG4 Decoder Config Descriptor (20Bytes):

-> objectTypeId: 64
-> streamType: 0x15
-> bufferSizeDB: 0x0002CD
-> maxBitrate: 231.312kbit/s
-> avgBitrate: 123.752kbit/s

ESDS MPEG4 Decoder Specific Descriptor (2Bytes)
ESDS MPEG4 Sync Layer Config Descriptor (1Bytes)

-> predefined: 2

Fourcc: mp4a


Quicktime Clip Info:
MOV: longest streams: A: #1 (288628 samples) V: #0 (160688 samples)
VIDEO: [mp4v] 720x400 24bpp 23.993 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7 fourcc:0x7634706D size:720x400 fps:23.993 ftime:=0.0417
get_path('sub/') -> '/home/birdie/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0.0" => local 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
[VO_XV] Using Xv Adapter #0 (NV17 Video Texture)
[xv common] Drawing no colorkey.
[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: 44100Hz channels: 2
FAAD: got 123kbit/s bitrate from MP4 header!
AUDIO: 44100 Hz, 2 ch, s16le, 123.8 kbit/8.77% (ratio: 15469->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Trying preferred audio driver 'alsa', options '[none]'
alsa-init: requested format: 44100 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.16
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opened in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy@…>
AO: Comment: under developement
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Starting playback...
Increasing filtered audio buffer size from 0 to 65536
[ffmpeg] aspect_ratio: 1.800000
VDec: vo config request - 720 x 400 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.80:1 - prescaling to correct movie aspect.
VO Config (720x400->720x400,flags=0,'MPlayer',0x32315659)
VO: [xv] 720x400 => 720x400 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel@…> 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 280 for hw scaling
[xv] dx: 0 dy: 0 dw: 720 dh: 400
* [vo] Allocating (slices) mp_image_t, 720x400x12bpp YUV planar, 432000 bytes
Unicode font: 1201 glyphs.
Unicode font: 1201 glyphs.
[xv] dx: 0 dy: 0 dw: 720 dh: 400
* [vo] Allocating (slices) mp_image_t, 720x400x12bpp YUV planar, 432000 bytes
Uninit audio filters... 0.002 ct: 0.022 28/ 28 6% 2% 1.4% 0 0
[libaf] Removing filter dummy
Uninit audio: faad
FAAD: Closing decoder!
Uninit video: ffmpeg
alsa-uninit: pcm closed
vo: uninit ...

Exiting... (Quit)

comment:5 Changed 11 years ago by t.artem@…

One more broken file http://thepiratebay.org/torrent/4387814/Kabluey_2007_DVDRip_[A_Release-Lounge_H264_By_Paulx1]

Also, the video gets distorted if I ff or rewind and many errors like these ones are shown:

Error while decoding frame!
[h264 @ 0x883ef10]B picture before any references, skipping,?% 0 0
[h264 @ 0x883ef10]decode_slice_header error
[h264 @ 0x883ef10]no frame!
Error while decoding frame!
[h264 @ 0x883ef10]warning: first frame is no keyframe??% ??,?% 0 0
[h264 @ 0x883ef10]Missing reference picture
[h264 @ 0x883ef10]Missing reference picture5/785 ??% ??% ??,?% 0 0
[h264 @ 0x883ef10]B picture before any references, skipping.8% 0 0
[h264 @ 0x883ef10]decode_slice_header error
[h264 @ 0x883ef10]no frame!
Error while decoding frame!
[h264 @ 0x883ef10]B picture before any references, skipping,?% 0 0
[h264 @ 0x883ef10]decode_slice_header error
[h264 @ 0x883ef10]no frame!
Error while decoding frame!
[h264 @ 0x883ef10]warning: first frame is no keyframe??% ??,?% 0 0
[h264 @ 0x883ef10]Missing reference picture
[h264 @ 0x883ef10]Missing reference picture1/821 ??% ??% ??,?% 0 0
[h264 @ 0x883ef10]B picture before any references, skipping.7% 0 0
[h264 @ 0x883ef10]decode_slice_header error
[h264 @ 0x883ef10]no frame!
Error while decoding frame!
[h264 @ 0x883ef10]warning: first frame is no keyframe??% ??,?% 0 0
[h264 @ 0x883ef10]Missing reference picture
[h264 @ 0x883ef10]Missing reference picture3/843 ??% ??% ??,?% 0 0

comment:6 Changed 11 years ago by t.artem@…

  • Component changed from demuxer to core

comment:7 Changed 11 years ago by compn

well, unfortunately the mplayer developers really dislike files over torrents.
so i dont expect this will be fixed without any easily accessible sample.

comment:8 Changed 11 years ago by t.artem@…

I don't have samples less than 700MB in size. How can I pass any of them to developers?

comment:9 Changed 11 years ago by compn

try this patch:
http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1267
and thanks for uploading the sample :)

comment:10 Changed 11 years ago by t.artem@…

Great many thanks for this patch!!!

Actually it has solved two problems - this one, and a problem with seeking in some MP4 files (when you ff or rewind the picture gets totally distorted until a full new "I" (key) frame comes).

I leave this bug open until this patch is committed.

comment:11 Changed 11 years ago by t.artem@…

  • Resolution set to fixed
  • Status changed from new to closed

Even without this patch the latest mplayer SVN snapshot plays all those movies. So I neither endorse that patch nor reject it.

comment:12 Changed 11 years ago by rectalogic@…

  • Cc rectalogic@… added

* Bug 1267 has been marked as a duplicate of this bug. *

Note: See TracTickets for help on using tickets.