[MPlayer-users] performance problem

Thomas Buchmüller t.buchi at gmx.net
Tue May 20 13:38:52 CEST 2003


Hello!

On my Acer Travelmate527 i've got performance probs watching videos with
mplayer.

My System is a PIII 800MHz (/proc/cpuinfo is reporting ~650??) with an
ATI Rage Mobility (Mach64) mtrr is set up and with the gatos drivers
XV-Extensions work.

It's not a specific file, the problem exists with several files.
I tried different vo and ao options.

i had no performance problems as long as i had SuSE 7.2 (with
XFree86 4.2.0 I think) running, but i think i had a mplayer cvs-version
previous to 0.90, too.

Any help is welcome,
thanks in advance


System:

SuSE Linux 8.2

uname -a
Linux pc18278 2.4.20-4GB #1 Mon Mar 17 17:54:44 UTC 2003 i686 unknown
unknown GNU/Linux

ls -l /lib/libc[.-]*
-rwxr-xr-x    1 root     root      1475331 2003-03-13 20:10 /lib/libc.so.6

X -version
XFree86 Version 4.3.0
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: SuSE Linux [ELF] SuSE
Build Date: 17 March 2003

gcc -v
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.3/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib
--enable-languages=c,c++,f77,objc,java,ada --disable-checking
--enable-libgcj --with-gxx-include-dir=/usr/include/g++
--with-slibdir=/lib --with-system-zlib --enable-shared
--enable-__cxa_atexit i486-suse-linux
Thread model: posix
gcc version 3.3 20030226 (prerelease) (SuSE Linux)

ld -v
GNU ld version 2.13.90.0.18 20030121 (SuSE Linux)

as --version
GNU assembler 2.13.90.0.18 20030121 (SuSE Linux)
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i486-suse-linux'.

cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Pentium III (Coppermine)
stepping        : 10
cpu MHz         : 646.666
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov
pat pse36 mmx fxsr sse
bogomips        : 1291.05

lspci -vv
01:00.0 VGA compatible controller: ATI Technologies Inc Rage Mobility P/M
AGP 2x (rev 64) (prog-if 00 [VGA])
        Subsystem: Acer Incorporated [ALI]: Unknown device 1010
        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-
        Latency: 32 (2000ns min), cache line size 08
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at 81000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: I/O ports at 8000 [size=256]
        Region 2: Memory at 80600000 (32-bit, non-prefetchable) [size=4K]
        Expansion ROM at 80620000 [disabled] [size=128K]
        Capabilities: [50] AGP version 1.0
                Status: RQ=256 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64-
HTrans- 64bit- FW- AGP3- Rate=x1,x2
                Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW-
Rate=<none>
        Capabilities: [5c] Power Management version 1
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:06.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link
Controller Audio Device (rev 01)
        Subsystem: Acer Incorporated [ALI]: Unknown device 1010
        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+
        Latency: 32 (500ns min, 6000ns max)
        Interrupt: pin A routed to IRQ 10
        Region 0: I/O ports at 9000 [size=256]
        Region 1: Memory at 82200000 (32-bit, non-prefetchable) [size=4K]
        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-

GATOS for XFree86 4.3.0
-------------- next part --------------
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer dev-CVS-030520-08:30-3.3 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 10)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: Datei oder Verzeichnis nicht gefunden
Reading config file /home/buchmue/.mplayer/config
Reading /home/buchmue/.mplayer/codecs.conf: can't open '/home/buchmue/.mplayer/codecs.conf': Datei oder Verzeichnis nicht gefunden
Reading /usr/local/etc/mplayer/codecs.conf: 57 audio & 145 video codecs
CommandLine: '-v' '-frames' '250' '-benchmark' 'cue://CD_Image_File_CD1.cue:2'
get_path('font/font.desc') -> '/home/buchmue/.mplayer/font/font.desc'
font: can't open file: /home/buchmue/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: Keine Berechtigung (mplayer should be setuid root or /dev/rtc should be readable by the user.)
Using usleep() timing
get_path('input.conf') -> '/home/buchmue/.mplayer/input.conf'
Can't open input config file /home/buchmue/.mplayer/input.conf : Datei oder Verzeichnis nicht gefunden
Can't open input config file /usr/local/etc/mplayer/input.conf : Datei oder Verzeichnis nicht gefunden
Falling back on default (hardcoded) input config
get_path('CD_Image_File_CD1.cue:2.conf') -> '/home/buchmue/.mplayer/CD_Image_File_CD1.cue:2.conf'

Playing cue://CD_Image_File_CD1.cue:2
dirname: .
bincue_path: .
[bincue] using bin file CD_Image_File_CD1.bin
track 00:  format=20  00:00:00
track 01:  format=20  00:05:14
VCD start byte position: 0xDCB64  end: 0x31AA32A0
start:904036 end:833237664
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x84ab340  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x84ab340  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x84ab340  
Checking for REAL
DEMUXER: freeing demuxer at 0x84ab340  
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x84ab340  
DEMUXER: freeing demuxer at 0x84abba8  
Searching demuxer type for filename cue://CD_Image_File_CD1.cue:2 ext: .cue:2
Checking for MOV
DEMUXER: freeing demuxer at 0x84abba8  
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x84abba8  
DEMUXER: freeing demuxer at 0x84abba8  
DEMUXER: freeing demuxer at 0x84abba8  
DEMUXER: freeing demuxer at 0x84abba8  
DEMUXER: freeing demuxer at 0x84abba8  
DEMUXER: freeing demuxer at 0x84abba8  
DEMUXER: freeing demuxer at 0x84abba8  
Checking for PVA
DEMUXER: freeing demuxer at 0x84abba8  
************Checking for TS************
NOT A TS FILE1
TRIED UP TO POSITION 1000000, FOUND d3, packet_size= 0
BUF: 47 51 ed 0f, PID 4589, SIZE: 0 
PID 4589, COMPARE CC 15 AND LAST_CC -1
BUF: 47 51 ed 0f, PID 4589, SIZE: 0 
PID 4589, COMPARE CC 15 AND LAST_CC 15
DEMUXER: freeing demuxer at 0x84abba8  
system stream synced at 0x131D29 (0)!
==> Found video stream: 0
MPEG-PS file format detected.
==> Found audio stream: 0
Searching for sequence header... OK!
VIDEO:  MPEG2  480x576  (aspect 2)  25,00 fps  2530,0 kbps (316,2 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:480x576  fps:25,00  ftime:=0,0400
get_path('sub/') -> '/home/buchmue/.mplayer/sub/'
get_path('default.sub') -> '/home/buchmue/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done

MPEG 1.0, Layer II, 44100 Hz 224 kbit Stereo, BPF: 732
Channels: 2, copyright: No, original: No, CRC: Yes, emphasis: 0
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 28000->176400 (224,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFF  (R:F800 G:7E0 B:1F)
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0.0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports STAYS_ON_TOP state.
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 480 x 576 (preferred csp: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
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)
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 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags:   8/8  (8192 bytes/frag)  free:  65536
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2
Starting playback...
VDec: vo config request - 480 x 576 (preferred csp: 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 (480x576->768x576,flags=0,'MPlayer',0x32315659)
VO: [xv] 480x576 => 768x576 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: 0x59565955 (UYVY) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 61 for hw scaling
[xv] dx: 0 dy: 0 dw: 768 dh: 576
*** [vo] Allocating mp_image_t, 480x576x12bpp YUV planar, 414720 bytes
[xv] dx: 0 dy: 0 dw: 768 dh: 576
A:   0,4 V:   0,0 A-V:  0,387 ct:  0,000    1/  1   0%  0%  0,0% 0 0 0%
*** [vo] Allocating (slices) mp_image_t, 480x576x12bpp YUV planar, 414720 bytes
A:   0,5 V:   0,2 A-V:  0,269 ct:  0,004    2/  2   0%  0%  0,0% 1 0 0%
A:   0,5 V:   0,3 A-V:  0,285 ct:  0,008    3/  3   0%  0%  0,0% 2 0 0%
*** [vo] Allocating mp_image_t, 480x576x12bpp YUV planar, 414720 bytes
A:   0,6 V:   0,3 A-V:  0,314 ct:  0,012    4/  4   0%  0%  0,0% 3 0 0%
A:   0,7 V:   0,3 A-V:  0,352 ct:  0,016    5/  5   0%  0%  0,0% 4 0 0%
A:   0,7 V:   0,4 A-V:  0,369 ct:  0,020    6/  6   0%  0%  0,0% 5 0 0%
A:   0,8 V:   0,4 A-V:  0,388 ct:  0,024    7/  7   0%  0%  0,0% 5 0 0%
A:   0,9 V:   0,5 A-V:  0,402 ct:  0,028    8/  8   0%  0%  0,0% 6 0 0%
A:   0,9 V:   0,5 A-V:  0,415 ct:  0,032    9/  9   0%  0%  0,0% 7 0 0%
A:   1,0 V:   0,5 A-V:  0,439 ct:  0,036   10/ 10   0%  0%  0,0% 8 0 0%
A:   1,0 V:   0,6 A-V:  0,453 ct:  0,040   11/ 11   0%  0%  0,0% 9 0 0%
A:   1,1 V:   0,6 A-V:  0,466 ct:  0,044   12/ 12   0%  0%  0,0% 10 0 0%
A:   1,1 V:   0,7 A-V:  0,488 ct:  0,048   13/ 13   0%  0%  0,0% 11 0 0%
A:   1,2 V:   0,7 A-V:  0,528 ct:  0,052   14/ 14  59% 122%  4,1% 12 0 0%
A:   1,3 V:   0,7 A-V:  0,542 ct:  0,056   15/ 15  57% 122%  4,1% 13 0 0%
A:   1,3 V:   0,8 A-V:  0,562 ct:  0,060   16/ 16  54% 122%  4,0% 14 0 0%
A:   1,4 V:   0,8 A-V:  0,579 ct:  0,064   17/ 17  52% 122%  3,9% 15 0 0%
A:   1,5 V:   0,9 A-V:  0,593 ct:  0,068   18/ 18  50% 122%  3,7% 16 0 0%
A:   1,5 V:   0,9 A-V:  0,612 ct:  0,072   19/ 19  49% 122%  3,7% 17 0 0%
A:   1,6 V:   0,9 A-V:  0,629 ct:  0,076   20/ 20  48% 122%  3,7% 18 0 0%
A:   1,6 V:   1,0 A-V:  0,647 ct:  0,080   21/ 21  46% 122%  3,5% 18 0 0%
A:   1,7 V:   1,0 A-V:  0,666 ct:  0,084   22/ 22  45% 122%  3,5% 19 0 0%
A:   1,7 V:   1,1 A-V:  0,679 ct:  0,088   23/ 23  44% 122%  3,5% 20 0 0%
A:   1,8 V:   1,1 A-V:  0,696 ct:  0,092   24/ 24  43% 122%  3,4% 21 0 0%
A:   1,9 V:   1,1 A-V:  0,741 ct:  0,096   25/ 25  42% 122%  3,3% 22 0 0%
A:   1,9 V:   1,2 A-V:  0,756 ct:  0,100   26/ 26  42% 122%  3,4% 23 0 0%
A:   2,0 V:   1,2 A-V:  0,800 ct:  0,104   27/ 27  44% 122%  3,3% 24 0 0%
A:   2,1 V:   1,3 A-V:  0,820 ct:  0,108   28/ 28  43% 122%  3,3% 25 0 0%
A:   2,1 V:   1,3 A-V:  0,837 ct:  0,112   29/ 29  42% 122%  3,3% 26 0 0%
A:   2,2 V:   1,3 A-V:  0,851 ct:  0,116   30/ 30  41% 121%  3,2% 27 0 0%
A:   2,3 V:   1,4 A-V:  0,871 ct:  0,120   31/ 31  41% 122%  3,2% 28 0 0%
A:   2,3 V:   1,4 A-V:  0,885 ct:  0,124   32/ 32  40% 121%  3,2% 29 0 0%
A:   2,4 V:   1,5 A-V:  0,902 ct:  0,128   33/ 33  40% 121%  3,1% 30 0 0%
A:   2,4 V:   1,5 A-V:  0,947 ct:  0,132   34/ 34  39% 121%  3,1% 31 0 0%
A:   2,5 V:   1,5 A-V:  0,961 ct:  0,136   35/ 35  39% 121%  3,1% 32 0 0%
A:   2,6 V:   1,6 A-V:  0,978 ct:  0,140   36/ 36  38% 121%  3,1% 33 0 0%
A:   2,6 V:   1,6 A-V:  1,000 ct:  0,144   37/ 37  38% 122%  3,1% 34 0 0%
A:   2,7 V:   1,7 A-V:  1,016 ct:  0,148   38/ 38  37% 122%  3,1% 35 0 0%
A:   2,7 V:   1,7 A-V:  1,029 ct:  0,152   39/ 39  37% 121%  3,0% 36 0 0%
A:   2,8 V:   1,7 A-V:  1,051 ct:  0,156   40/ 40  36% 122%  3,0% 37 0 0%
A:   2,8 V:   1,8 A-V:  1,065 ct:  0,160   41/ 41  36% 121%  3,0% 38 0 0%
A:   2,9 V:   1,8 A-V:  1,078 ct:  0,164   42/ 42  36% 121%  3,0% 39 0 0%
A:   3,0 V:   1,9 A-V:  1,097 ct:  0,168   43/ 43  35% 122%  3,0% 40 0 0%
A:   3,0 V:   1,9 A-V:  1,114 ct:  0,172   44/ 44  35% 121%  2,9% 41 0 0%
A:   3,1 V:   1,9 A-V:  1,154 ct:  0,176   45/ 45  35% 121%  2,9% 42 0 0%
A:   3,2 V:   2,0 A-V:  1,174 ct:  0,180   46/ 46  35% 121%  2,9% 43 0 0%
A:   3,2 V:   2,0 A-V:  1,191 ct:  0,184   47/ 47  34% 121%  2,9% 44 0 0%
A:   3,3 V:   2,1 A-V:  1,204 ct:  0,188   48/ 48  34% 121%  2,9% 45 0 0%
A:   3,3 V:   2,1 A-V:  1,222 ct:  0,192   49/ 49  34% 121%  2,9% 46 0 0%
A:   3,4 V:   2,1 A-V:  1,235 ct:  0,196   50/ 50  33% 121%  2,9% 47 0 0%
A:   3,4 V:   2,2 A-V:  1,251 ct:  0,200   51/ 51  33% 121%  2,9% 48 0 0%
A:   3,5 V:   2,2 A-V:  1,271 ct:  0,204   52/ 52  33% 121%  2,8% 49 0 0%
A:   3,5 V:   2,3 A-V:  1,286 ct:  0,208   53/ 53  33% 121%  2,8% 50 0 0%

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use ALSA 0.5 or the OSS emulation of ALSA 0.9.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try -hardframedrop.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/video.html and DOCS/sound.html for tuning/speedup tips.
If none of this helps you, read DOCS/bugreports.html.

...

BENCHMARKs: VC:   2,266s VO:  12,180s A:   0,241s Sys:   0,181s =   14,868s
BENCHMARK%: VC: 15,2387% VO: 81,9200% A:  1,6217% Sys:  1,2196% = 100,0000%
Uninit audio filters...
[libaf] Removing filter dummy 
uninit audio: mp3lib
uninit video: libmpeg2
DEMUXER: freeing demuxer at 0x84abba8  
DEMUXER: freeing sh_audio at 0x84648f0  
DEMUXER: freeing sh_video at 0x8464638  
vo: uninit ...

Exiting... (End of file)


More information about the MPlayer-users mailing list