[Mplayer-users] Audio sync problem w/ VBR

Jean-Marc Saffroy saffroy at wanadoo.fr
Sun Sep 9 18:52:12 CEST 2001


Hi,

I have problems playing a particular AVI file: it is a DivX movie with 2
audio tracks : one is a VBR mp3, the other is a constant bit rate mp3.
Problems occur when I do a seek while playing the VBR audio : audio and
video are not synchronized anymore, the time difference can be several
minutes. The playback is fine with the constant bit rate audio in any
case, and even with the VBR, provided I don't do any seek.

I have not found this particular bug in the docs, and the suggested option
for desync with VBR (-mc 0) did not solve the problem. Can my movie have
buggy headers ? Should I check out the latest CVS snapshot ? Should I
upload a part of the file ? (Can be large, there are 2 minutes of opening
credits.) At the end of this mail is the output of mplayer -v.

TIA for any help.

Regards,

Jean-Marc

-- 

My config (probably not related):
Slackware 7.1, kernel 2.2.19, XFree 4.1 (XFree.org binaries), Matrox G200,
Xv, Creative AWE32 with OSS drivers from 2.2.19.

MPlayer 0.18pre5(C) 2000-2001 Arpad Gereoffy <arpi at thot.banki.hu>

CommandLine: '-v' '-ss' '120' '-fs' '-aid' '1' '/mnt/cdrom/BIVX/movie.avi'
Reading /home/saffroy/.mplayer/codecs.conf: 15 audio & 32 video codecs
Font /home/saffroy/.mplayer/font/font.desc loaded successfully! (495 chars)
Detected AVI file format!
======= AVI Header =======
us/frame: 41708  (fps=23.976)
max bytes/sec: 0
padding: 0
flags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 187789   initial: 0
streams: 3
Suggested BufferSize: 0
Size:  640 x 273
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: div3 (33766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 23976/1000 = 23.976
Start: 0   Len: 187789
Suggested BufferSize: 43465
Quality 10000
Sample size: 0
found 'bih', 40 bytes of 40
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 44100/1152 = 38.281
Start: 0   Len: 299830
Suggested BufferSize: 522
Quality -1
Sample size: 0
found 'wf', 30 bytes of 20
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 10696
Block align: 1152
bits/sample: 0
cbSize: 12
==> Found audio stream: 2
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 8000/1 = 8000.000
Start: 0   Len: 62658428
Suggested BufferSize: 4000
Quality -1
Sample size: 1
found 'wf', 30 bytes of 20
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 1
Samplerate: 44100
avg byte/sec: 8000
Block align: 1
bits/sample: 0
cbSize: 12
Found movie at 0x380C - 0x2B0AD860
Reading INDEX block, 503284 chunks for 187789 frames
AVI index offset: 14344
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=717790590
VIDEO:  [DIV3]  640x273  24bpp  23.98 fps  733.2 kbps (89.5 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:640x273  fps:23.98  ftime:=0.0417
Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
Initializing audio codec...
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: Processor ID: 652
mp3lib: Using Pentium-MMX optimized decore.
AUDIO: srate=44100  chans=2  bps=2  sfmt=0x10  ratio: 16000->176400
Detected video codec: [divxds] drv:4 (DivX ;-) (MS MPEG-4 v3))
vo_debug: query(Packed YUY2) returned 0x1
vo_debug1: out_fmt=Packed YUY2
Loading DLL: /usr/lib/win32/divx_c32.ax  OK
Using DirectShow codec: divx_c32.ax
DShow: using YUY2 colorspace
INFO: Win32/DShow video codec init OK!
vo_debug2: out_fmt=Packed YUY2
vo: X11 color mask:  FFFF  (R:F800 G:7E0 B:1F)
vo: X11 running at 1280x1024 depth: 16 (":0.0" => local display)
VO: [xv] 640x273 => 1280x546 Packed YUY2 fs 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de>
video_out->init(640x273->1280x546,flags=1,'MPlayer',0x32595559)
vo_debug3: out_fmt=Packed YUY2
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 46 for hw scaling
[xv] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 1280 dh: 1024
[xv-fs] dcx: 1 dcy: 240 dx: 0 dy: 239 dw: 1280 dh: 546
Disabling DPMS
stat: 1
INFO: Video OUT driver init OK!
AO: [oss] 44100Hz Stereo Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
ao2: 44100 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
Initial frame delay  A: 1  V: 0
AVI Initial frame delay: 0.042
START:  a_pts=0.000  v_pts=0.000  
Start playing...
[xv] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 1280 dh: 1024
[xv-fs] dcx: 1 dcy: 240 dx: 0 dy: 239 dw: 1280 dh: 546
break;
XXX i=5894  last=5894  apos=1314294  curr_audio_pos=1314688  
SEEK: idx=5894  (a:5894 v:7923)  v.skip=756  a.skip=394/0.000  
A: 122.9  V:   0.0  A-V:  0.000  ct:  0.000   
Initial PTS delay: -31.425 sec  (calculated: -0.101)
v: audio_delay=-31.467  buffer_delay=0.143  a.pts=91.800  v.pts=123.124
A:  92.2 ( 123.4)  V: 123.1  A-V:  0.224 ct:  0.022  2954   0%  0%  0.0% 0
A:  92.3 ( 123.4)  V: 123.2  A-V:  0.259 ct:  0.027  2955   0%  0%  0.0% 0
[snip]
A:  98.3 ( 129.4)  V: 129.4  A-V: -0.005 ct:  0.213  3105  44%  6%  3.4% 0
Exiting... (Quit)
max framesize was 16887 bytes
Successfully enabled DPMS



_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mplayer-users



More information about the MPlayer-users mailing list