LiViD   Performance How To UserPreferences
 
Help Search Diffs Info Edit Print View
 MoinMoin Wiki   LividWiki   RecentChanges   TitleIndex   WordIndex   Help 

Version as of 2001-02-19 21:16:45

Clear message


Contents:

  1. Hardware
    1. Faster Hardware
    2. XVideo
    3. MTRR Setup
    4. DMA Disk Access
  2. Software
    1. Find the Problem
    2. Compiling

Hardware

Faster Hardware

Buy faster hardware!

Yes, throwing money at the problem will help.

Memory is important. I just upgraded my machine from 64Meg to 96 Meg, and the (Mpeg2Dec) framerate jumped from 17 to 25 fps. Sure, my machine is slow (P2/233), and I'm really waiting for an accelerated mpeg driver for my Rage128 (see GatosProject), but if you have only 64 Meg, add some more memory... JeremyErwin

XVideo

Use XVideo if possible. This is supported in XFree86 4.0.x or greater for some video cards. See HardwareCompatibility.

Run xdpyinfo and look for XVideo extension.

Run xvinfo to see supported modes.

MTRR Setup

This could dramatically boost your mpeg decoding performance:

Configure the MTRR registers (/proc/mtrr) so that your frame buffer is accessible in write-combining mode. If you have XFree 4.x, this is done automatically, but with XFree 3.x you have to do it yourself. Please someone include a description of how to do this. Once your MTRR registers are properly configured you should see something like this :

# cat /proc/mtrr 
reg00: base=0x00000000 (   0MB), size= 256MB: write-back, count=1 
reg01: base=0xe2000000 (3616MB), size=  32MB: write-combining, count=2 
reg07: base=0xe4000000 (3648MB), size=  64MB: write-combining, count=1 

DMA Disk Access

If you use IDE disks, make sure they are accessed in DMA mode, not PIO. PIO is still the default, but it is a very large performance hit, because it does not let your system work on mpeg decoding and read from the disk in parallel. Make sure you run a command similar to hdparm -d1 /dev/hda. You will probably need additional arguments, and please read the man page first because you can break your filesystem if you abuse this command.

Software

Find the Problem

One way to determine if your processor is fast enough to decode video is to run Mpeg2Dec (or maybe OpenMediaSystem) with no video output. If the frame rate is much higher than with video enabled then your problem is the video driver or video hardware.

Something like this: mpeg2dec -o null foo.mpg. Compare framerate with mpeg2dec -o xvshm foo.mpg (or whatever driver you want).

Also see PerformanceResults.

Compiling


PythonPowered EditText of this page (last modified 2001-02-19 21:16:45)
FindPage by browsing, searching, or an index
Or try one of these actions: LikePages, SpellCheck

MoinMoin 1.108, Copyright © 2000-2001 by Jürgen Hermann

config = 0.000
total = 0.160
imports = 0.080
send_page = 0.070