[MPlayer-users] Bugreport a/v out of sync

Alain Barthélemy cassandre at bartydeux.be
Sun Dec 21 23:47:45 CET 2003


Problem is simple: DVD encoding. Everything is allright except 1-2 seconds
delay at playback with mplayer in X11 environment.
No a/v out of sync on console.
No a/v out of sync on Windows XP (using WinAmp application).

SuSE-8.2
Linux 2.4.20-4GBathlon
/lib/libc.so.6
gcc version 3.3 20030226
ld version 2.13.90.0.18
as --version : GNU 2.13.90.0.18 20030121

=================================

# cpuinfo

processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 7
model name	: AMD Duron(tm) Processor
stepping	: 1
cpu MHz		: 1300.060
cache size	: 64 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 1
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
bogomips	: 2595.22

============================

# lspci (video and audio):

00:09.0 Multimedia audio controller: Ensoniq 5880 AudioPCI (rev 04)
	Subsystem: Ensoniq: Unknown device 8001
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort+ <MAbort- >SERR- <PERR-
	Latency: 64 (3000ns min, 32000ns max)
	Interrupt: pin A routed to IRQ 5
	Region 0: I/O ports at d000 [size=64]
	Capabilities: [dc] Power Management version 2
		Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] SiS650/651/M650/740 PCI/AGP VGA Display Adapter (prog-if 00 [VGA])
	Subsystem: Silicon Integrated Systems [SiS] SiS650/651/M650/740 PCI/AGP VGA Display Adapter
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	BIST result: 00
	Region 0: Memory at c0000000 (32-bit, prefetchable) [size=128M]
	Region 1: Memory at cfee0000 (32-bit, non-prefetchable) [size=128K]
	Region 2: I/O ports at ac00 [size=128]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [50] AGP version 2.0
		Status: RQ=16 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2,x4
		Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>

===========================


1) Mencoder instruction:

# mencoder dvd://1 -mc 0 -noskip -skiplimit 0 -ovc lavcopts vcodec=mpeg4:vhq
-oac mp3lame -lameopts abr:br=128:vol=5 -o temp.avi


failed to open frameno.avi
Reading config file /home/user/.mplayer
mencoder: aucun fichier répertoire de ce type
font: can't open file ...
...
Reading disc structure, please wait...
Ther are 2 titles on this DVD
There are 20 chapters ...
There are 1 angles ...
DVD successfully opened
success: format: 0 data: 0x0-0xD557D800
Selected DVD audio channel:128 language:fr
MPEG-PS file format detected
VIDEO:MPEG 720x576 (aspect 2) 25,000fps 9800,0 kbps (1225,0 kbyte/s)
[v] file fmt:2 fource:0x10000002 size:720x576 fps:25,00 ftime:=0x0400
=====================================================================
opening audio decoder:[liba52] AC3 decoding with liba52
using SSE optimized IMDCT transform
AC3:2.0 (stereo) 48000Hz 192,0kbit/s
using MMX optimized resampler
AUDIO:48000Hz,2ch,16bit(0010), ratio:24000->192000(192,0kbit)
Selected audio codec:[a52] afm:liba52 (AC3-liba52)

====================================
Opening video decoder:[mpegpes] MPEG1/2 video passthrough
Vdec:vo config request-720x576(preferred csp:MPEG PES)
Could not find matching colorspace - retrying with -vop scale ...
opening video filter:[scale]
The selected video_out device is incompatible with this codec
Vdecoder init failed :(
Opening video decoder:[libmpeg2]MPEG1/2 Video decoder:[libmpeg2-v0.3.1]
Selected video codec:[mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))

===================================
MP3 audio selected
Building audio filterchains for 48000Hz 2ch/16bit->48000Hz/2ch/16bit ...
Writing AVI header
Setting audio input gain to 5,000000
Vdec:vo config request -720x576 (preferred csp:Planar YV12)
Vdec:using Planar YV12 as ouput csp (no 0)
Movie-Aspect is 1,33:1-prescaling vo correct movie aspect
Video codec:libavcodec(720x576 fourcc 58564944 [DIVX])
High quality encoding selected (non real time)

==============================================================

2) mplayer temp.avi in console:

MPlayer 1.0pre1-3.3 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Duron MG Morgan (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.confReading config file /home/alain/.mplayer/config
Reading /home/alain/.mplayer/codecs.conf: Reading /usr/local/etc/mplayer/codecs.conf: Using built-in default codecs.conf
font: can't open file: /home/alain/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using usleep() timing
Setting up LIRC support...

Playing folamour.avi
AVI file format detected.
VIDEO:  [DIVX]  720x576  24bpp  25,000 fps  799,7 kbps (97,6 kbyte/s)
Clip info:
 Software: MEncoder 1.0pre1-3.3
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 14000->192000 (112,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int 
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
This file was encoded with libavcodec build 4677
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,25:1 - prescaling to correct movie aspect.
SwScaler: using unscaled Planar YV12 -> BGR 16-bit special converter
VO: [fbdev] 720x576 => 720x576 BGR 16-bit 

================================================================

3) mplayer temp.avi in X11 (blackbox):

MPlayer 1.0pre1-3.3 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Duron MG Morgan (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.confReading config file /home/alain/.mplayer/config
Reading /home/alain/.mplayer/codecs.conf: Reading /usr/local/etc/mplayer/codecs.conf: Using built-in default codecs.conf
font: can't open file: /home/alain/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using usleep() timing
Setting up LIRC support...

Playing folamour.avi
AVI file format detected.
VIDEO:  [DIVX]  720x576  24bpp  25,000 fps  799,7 kbps (97,6 kbyte/s)
Clip info:
 Software: MEncoder 1.0pre1-3.3
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 14000->192000 (112,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0.0" => local display)
Disabling DPMS
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int 
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
This file was encoded with libavcodec build 4677
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,25:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 720x576 Planar YV12 

Exiting... (Quit)


-- 
Alain Barthélemy
cassandre at bartydeux.be
http://bartydeux.be
Linux User #315631




More information about the MPlayer-users mailing list