[MPlayer-users] VDec: Codec did not set sh->disp_w and sh->di sp_h, trying workaround.

Luis.F.Correia Luis.F.Correia at seg-social.pt
Fri Feb 7 12:13:09 CET 2003


You really should look into the mail archives and searched for animatrix....

>From a message from Arpi:

------ begin quote ------
try this patch:


Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.93
diff -u -r1.93 demux_mov.c
--- demux_mov.c 27 Jan 2003 22:29:47 -0000      1.93
+++ demux_mov.c 5 Feb 2003 17:58:15 -0000
@@ -597,7 +597,10 @@
                    unsigned int
fourcc=stream_read_dword_le(demuxer->stream);
                    if(len<8) break; // error
                    mp_msg(MSGT_DEMUX,MSGL_V,"MOV: %*s desc #%d: %.4s  (%d
bytes)\n",level,"",i,&fourcc,len-16);
-                   if(!i){
+                   if(fourcc!=trak->fourcc && i)
+
mp_msg(MSGT_DEMUX,MSGL_WARN,MSGTR_MOVvariableFourCC);
+//                 if(!i)
+                   {
                        trak->fourcc=fourcc;
                        // read type specific (audio/video/time/text etc)
header
                        // NOTE: trak type is not yet known at this point
:(((
@@ -605,8 +608,6 @@
                        trak->stdata=malloc(trak->stdata_len);
 
stream_read(demuxer->stream,trak->stdata,trak->stdata_len);
                    }
-                   if(fourcc!=trak->fourcc && i)
-
mp_msg(MSGT_DEMUX,MSGL_WARN,MSGTR_MOVvariableFourCC);
                    if(!stream_seek(demuxer->stream,pos+len)) break;
                }
                break;

------end quote -----




-----Original Message-----
From: Mariusz Woloszyn [mailto:emsi at ipartners.pl]
Sent: Friday, February 07, 2003 10:55 AM
To: mplayer-users at mplayerhq.hu
Subject: [MPlayer-users] VDec: Codec did not set sh->disp_w and sh->disp_h,
trying workaround.


[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]

Hi!

I tryed to play (using current CVS mplayer) and mov (quicktime) file, but
got this (no window with video appears):

Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer CVS-030207-11:09-2.95.3 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel Pentium 4 Xeon Foster (Family: 8, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or
directory
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: 50 audio & 130 video codecs
CommandLine: 'animatrixlgfinal_dl.mov' '-v'
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
Font /root/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/root/.mplayer/input.conf'
Parsing input config file /root/.mplayer/input.conf
Input config file /root/.mplayer/input.conf parsed : 52 binds
get_path('animatrixlgfinal_dl.mov.conf') ->
'/root/.mplayer/animatrixlgfinal_dl.mov.conf'

Playing animatrixlgfinal_dl.mov
Not an URL!
File size is 148236471 bytes
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x83f3f18
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x83f3f18
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x83f3f18
Checking for REAL
DEMUXER: freeing demuxer at 0x83f3f18
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x83f3f18
Searching demuxer type for filename animatrixlgfinal_dl.mov ext: .mov
Trying demuxer 7 based on filename extension
Checking for MOV
MOV: Movie header found!
MOV: 'WIDE' chunk found!
MOV: Movie DATA found!
QuickTime/MOV file format detected.
MOV: Movie header (100 bytes): tscale=600  dur=332187
--------------
MOV: Track #0:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=1 dur=332187 lay=0 vol=0
MOV: unknown chunk: load 16
MOV:  Edit atom!
MOV:   Edit list table (4 entries) (ver:0,flags:0)
MOV:     entry#0: duration: 6340  start time: 0  speed: 1.0x
MOV:     entry#1: duration: 6  start time: 6365  speed: 1.0x
MOV:     entry#2: duration: 325801  start time: 6940  speed: 1.0x
MOV:     entry#3: duration: 40  start time: 332765  speed: 1.0x
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: mhlr/vide (appl) Apple Video Media Handler
MOV:   Media info!
MOV:    Video header!
MOV:    Handler header: dhlr/alis (appl) Apple Alias Data Handler
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:2)
MOV:      desc #0: jpeg  (86 bytes)
MOV:      desc #1: SVQ3  (95 bytes)
MOV: WARNING: Variable FOURCC detected!?
MOV:     Sample duration table! (3 blocks)
MOV:     Syncing samples (keyframes) table! (1349 entries) (ver:0,flags:0)
MOV:     Sample->Chunk mapping table!  (2223 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=13311 ss=0) (ver:0,flags:0)
MOV:     Chunk offset table! (2223 chunks)
MOV track #0: 2223 chunks, 13311 samples
pts=332805  scale=600  time=554.675
EL#0: pts=0  1st_sample=0  frames=253 (10.567s)  pts_offs=0
EL#1: pts=6365  1st_sample=254  frames=1 (0.010s)  pts_offs=-25
EL#2: pts=6940  1st_sample=277  frames=13033 (543.002s)  pts_offs=-594
EL#3: pts=332765  1st_sample=13310  frames=1 (0.067s)  pts_offs=-618
==> Found video stream: 0
MOV: Found unknown movie atom prjp (12)!
Image size: 640 x 272 (24 bpp)
Display size: 640 x 272
Fourcc: jpeg  Codec: 'Photo - JPEG'
--------------
MOV: Track #1:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=2 dur=332147 lay=65535 vol=256
MOV:  Edit atom!
MOV:   Edit list table (2 entries) (ver:0,flags:0)
MOV:     entry#0: duration: 6346  start time: -1  speed: 1.0x
MOV:     entry#1: duration: 325801  start time: 3759  speed: 1.0x
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: mhlr/soun (appl) Apple Sound Media Handler
MOV:   Media info!
MOV:    Sound header!
MOV:    Handler header: dhlr/alis (appl) Apple Alias Data Handler
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: QDM2  (116 bytes)
MOV:     Sample duration table! (1 blocks)
MOV:     Sample->Chunk mapping table!  (834 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=23953408 ss=1) (ver:0,flags:0)
MOV:     Chunk offset table! (1088 chunks)
MOV track #1: 1088 chunks, 0 samples
pts=23953408  scale=44100  time=543.161
==> Found audio stream: 1
Audio bits: 16  chans: 2  rate: 44100
Audio header: samp/pack=4096 bytes/pack=278 bytes/frame=556 bytes/samp=2
Audio extra header: len=80  fcc=0x77617665
Fourcc: QDM2
--------------
MOV: Track #2:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=3 dur=6170 lay=65535 vol=256
MOV:  Edit atom!
MOV:   Edit list table (2 entries) (ver:0,flags:0)
MOV:     entry#0: duration: 40  start time: -1  speed: 1.0x
MOV:     entry#1: duration: 6130  start time: 0  speed: 1.0x
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: mhlr/soun (appl) Apple Sound Media Handler
MOV:   Media info!
MOV:    Sound header!
MOV:    Handler header: dhlr/alis (appl) Apple Alias Data Handler
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: QDM2  (108 bytes)
MOV:     Sample duration table! (1 blocks)
MOV:     Sample->Chunk mapping table!  (16 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=450560 ss=1) (ver:0,flags:0)
MOV:     Chunk offset table! (21 chunks)
MOV track #2: 21 chunks, 0 samples
pts=450560  scale=44100  time=10.217
==> Found audio stream: 2
Audio bits: 16  chans: 2  rate: 44100
Audio header: samp/pack=4096 bytes/pack=278 bytes/frame=556 bytes/samp=2
Audio extra header: len=72  fcc=0x77617665
Fourcc: QDM2
--------------
Quicktime Clip Info:
 Name: WWW.THEANIMATRIX.COM
 Author: www.thematrix.com
 Copyright: 2003 Warner Bros. All rights reserved.
MOV: longest streams: A: #1 (1088 samples)  V: #0 (13311 samples)
[V] filefmt:7  fourcc:0x6765706A  size:640x272  fps:15.00  ftime:=0.0667
Clip info:
 name: WWW.THEANIMATRIX.COM
 author: www.thematrix.com
 copyright: 2003 Warner Bros. All rights reserved.
get_path('sub/') -> '/root/.mplayer/sub/'
==========================================================================
Opening audio decoder: [qtaudio] QuickTime Audio Decoder
win32 libquicktime loader (c) Sascha Sommer
Standard init done you may now call supported functions
loader_init DONE???
loader_init DONE!
get_path('registry') -> '/root/.mplayer/registry'
External func COMCTL32.dll:17
External func COMCTL32.dll:16
QuickTime6 DLLs found
QuickTime.qts patched!!! old entry=0x6693b330
theQuickTimeDispatcher catched -> 0x6693b330
Win32 Warning: Accessed uninitialized Critical Section (0x66bc4210)!
WARNING! Invalid Ptr handle!
Win32 Warning: Accessed uninitialized Critical Section (0x66bc41f8)!

### Searching for QuickTime plugins (*.qtx) at /usr/lib/win32...
loader: Couldn't find the QuickTime plugins (.qtx files) at /usr/lib/win32
InitializeQTML:0
SoundConverterOpen:0
SoundConverterSetInfo:0
SoundConverterGetBufferSizes:131072
WantedBufferSize = 176400
InputBufferSize  = 5560
OutputBufferSize = 163848
FramesToGet = 10
FrameSize: 556 -> 16384
SoundConverterBeginConversion:0
dec_audio: Allocating 5560 bytes for input buffer
dec_audio: Allocating 163848 + 65536 = 229384 bytes for output buffer
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 5986->176400 (47.9 kbit)
Selected audio codec: [qdmc] afm:qtaudio (Quicktime QDMC/QDM2 audio
decoders)
==========================================================================
SDL: Using driver: x11
SDL: deactivating XScreensaver/DPMS
SDL: X11 Resolution 1280x1024
==========================================================================
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 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and
bps = 2
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
SDL: Samplerate: 44100Hz Channels: Stereo Format Signed 16-bit
(Little-Endian)
SDL: buf size = 4096
AO: [sdl] 43880Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: SDLlib audio output
AO: Author: Felix Buenemann <atmosfear at users.sourceforge.net>
Building audio filter chain for 44100Hz/2ch/16bit -> 43880Hz/2ch/16bit...
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and
bps = 2
[libaf] Adding filter resample
[resample] Changing sample rate to 43880Hz
[resample] Using linear interpolation.
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and
bps = 2
[resample] Using linear interpolation.
Starting playback...
[libaf] Reallocating memory in module resample, old len = 0, new len =
65212
mjpeg: JFIF header found (version: 1.1)
mjpeg: unsupported coding type (c2)
[ffmpeg] aspect_ratio: 0.000000
VDec: Codec did not set sh->disp_w and sh->disp_h, trying workaround.
A:  -0.0 V:   0.0 A-V: -0.021 ct:  0.000    1/  1   0%  0%  0.0% 0 0
0%^M*** [vo] Exporting mp_image_t, 0x0x24bpp YUV planar, 0 bytes
A:   0.0 V:   0.1 A-V: -0.042 ct: -0.004    2/  2   0%  0%  0.0% 0 0
0%^MA:   0.1 V:   0.1 A-V: -0.037 ct: -0.008    3/  3   0%  0%  0.0% 0 0
0%^MError while decoding frame!
A:   0.1 V:   0.2 A-V: -0.008 ct: -0.009    4/  4   0%  0%  0.0% 0 0
0%^MA:   0.1 V:   0.2 A-V: -0.050 ct: -0.013    5/  5   0%  0%  0.0% 0 0
0%^Mmjpeg: unsupported coding type (cf)
mjpeg: unsupported coding type (cf)
mjpeg: unsupported coding type (cf)
A:   0.2 V:   0.2 A-V: -0.022 ct: -0.015    6/  6   0%  0%  0.0% 0 0
0%^MA:   0.3 V:   0.3 A-V: -0.017 ct: -0.017    7/  7   0%  0%  0.0% 0 0
0%^Mmjpeg: unsupported coding type (cf)
mjpeg comment:
'H^?˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ř~A˙'
A:   0.3 V:   0.3 A-V: -0.012 ct: -0.018    8/  8   0%  0%  0.0% 0 0
0%^Mmjpeg: unsupported coding type (c9)
A:   0.3 V:   0.4 A-V: -0.030 ct: -0.021    9/  9   0%  0%  0.0% 0 0
0%^MA:   0.4 V:   0.4 A-V: -0.002 ct: -0.021   10/ 10   0%  0%  0.0% 0 0
0%^Mmjpeg: unsupported coding type (cf)
mjpeg comment:
'~~~~^?üü˙˙˙üüüüüüü˙ůů˙˙˙ůůůůůůů˙óó˙˙˙óóóóóóó˙çç˙˙˙ççççççç˙ĎĎ˙˙˙ĎĎĎĎĎĎĎ˙~_~_
˙˙˙~_~_~_~_~_~_~_˙??˙˙˙???????ţ~^?˙˙ţ~~~~~~^?üü˙˙˙üüüüüüü˙ůů˙˙˙ůůůůůůů˙óóđ~B
˙'
A:   0.4 V:   0.4 A-V: -0.020 ct: -0.023   11/ 11   0%  0%  0.0% 0 0
0%^Mmjpeg: unsupported coding type (ce)
mjpeg comment: '~Fř^W^D~K~C^P^F'
A:   0.5 V:   0.5 A-V: -0.015 ct: -0.024   12/ 12   0%  0%  0.0% 0 0
0%^MA:   0.5 V:   0.5 A-V: -0.010 ct: -0.025   13/ 13   0%  0%  0.0% 0 0
0%^MA:   0.6 V:   0.6 A-V: -0.005 ct: -0.026   14/ 14   0%  0%  4.1% 0 0
0%^MA:   0.6 V:   0.6 A-V: -0.023 ct: -0.028   15/ 15   0%  0%  4.1% 0 0
0%^MA:   0.7 V:   0.6 A-V:  0.005 ct: -0.028   16/ 16   0%  0%  3.8% 0 0
0%^Mmjpeg: unsupported coding type (cf)
mjpeg: unsupported coding type (cf)
A:   0.7 V:   0.7 A-V: -0.013 ct: -0.029   17/ 17   0%  0%  3.8% 0 0
0%^MUninit audio filters...
[libaf] Removing filter dummy
[libaf] Removing filter resample
uninit audio: qtaudio
SoundConverterEndConversion:0
SoundConverterClose:0
uninit video: ffmpeg
DEMUXER: freeing demuxer at 0x83f02e8
DEMUXER: freeing sh_video at 0x83f0100
DEMUXER: freeing sh_audio at 0x83f0cf8
DEMUXER: freeing sh_audio at 0x83f1ce8
SDL: activating XScreensaver/DPMS
SDL: Audio Subsystem shutting down!
vo: x11 uninit called but X11 not inited..

Exiting... (Quit)


--
Mariusz Wołoszyn
Internet Security Specialist, GTS - Internet Partners

_______________________________________________
RTFM!!!  http://www.MPlayerHQ.hu/DOCS
Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
http://mplayerhq.hu/mailman/listinfo/mplayer-users



More information about the MPlayer-users mailing list