[Preston] Re: optimizing X11/Video performance for DVD playback

Donald Simpson preston at mailman.lug.org.uk
Mon Mar 3 19:03:10 2003


--=-OZOeHd78DIaEX030Qj38
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

I had a problem when playing DVDs in my system I have a 1.7Gig P4 but
DVD playback was poor the frame would freeze every 2 or 3 seconds.

I later found out that UDMA for CD drives is turned off by default in
most Linux distributions.

to check if it's truned on type the following at a root console hdparm
-d /dev/hdc where hdc is your DVD drive.

to turn it on type hdparm -d 1 /dev/hdc

good luck

Donald.
On Mon, 2003-03-03 at 12:00, preston-request@mailman.lug.org.uk wrote:


    
    Message: 1
    From: Jim Skelton <skelton@oak.u-net.com>
    To: preston@mailman.lug.org.uk
    Date: Sun, 2 Mar 2003 21:56:03 +0000
    Subject: [Preston] optimizing X11/Video performance for DVD playback
    Reply-To: preston@mailman.lug.org.uk
    
    Hi all
    
    I eventually found the time to buy a DVD drive and install  ogle for DVD 
    playback, however I can only seem to get a frame rate of 18 frames per 
    second, which does look a bit jerky (bit like "super 8 home movie at times) 
    .Is it possible to improve system performance?
    
    My system is a duron 750 MHz with 128Meg of ram, the video card is a rage128 
    with 32Meg of vid memory. I have installed the R128 drivers which give the 
    XVideo extensions. Ive also been into the BIOS and set AGP to x4 and switched 
    on the fast write mode (although I'm not really sure what difference these 
    make but they do sound as if they might improve performace) (operating system 
    is RH7.2 with X11 4.1.0)
    
    When i look at system performance the play back software is using about 40% 
    of CPU time and X is using between 50 and 60% of CPU time, so there is almost 
    no processing time so spare. 
    
    Would reducing the screen resolution or number of colors improve things 
    significantly. The brute force solution would seem to be to buy a faster 
    processor but this seems a bit over the top when a DVD FAQ I read suggests 
    that a 350MHz Pentium should be adequate for play back
    
    all suggestions gratefully received
    
    Jim
    
    
    --__--__--



    

--=-OZOeHd78DIaEX030Qj38
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.0.2">
</HEAD>
<BODY>
Hi,
<BR>

<BR>
I had a problem when playing DVDs in my system I have a 1.7Gig P4 but DVD playback was poor the frame would freeze every 2 or 3 seconds.
<BR>

<BR>
I later found out that UDMA for CD drives is turned off by default in most Linux distributions.
<BR>

<BR>
to check if it's truned on type the following at a root console hdparm -d /dev/hdc where hdc is your DVD drive.
<BR>

<BR>
to turn it on type hdparm -d 1 /dev/hdc
<BR>

<BR>
good luck
<BR>

<BR>
Donald.
<BR>
On Mon, 2003-03-03 at 12:00, preston-request@mailman.lug.org.uk wrote:
<BR>
<FONT SIZE="3"></FONT>
    <BLOCKQUOTE>
<PRE><FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Message: 1</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>From: Jim Skelton &lt;skelton@oak.u-net.com&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>To: preston@mailman.lug.org.uk</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Date: Sun, 2 Mar 2003 21:56:03 +0000</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Subject: [Preston] optimizing X11/Video performance for DVD playback</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Reply-To: preston@mailman.lug.org.uk</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Hi all</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>I eventually found the time to buy a DVD drive and install  ogle for DVD </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>playback, however I can only seem to get a frame rate of 18 frames per </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>second, which does look a bit jerky (bit like &quot;super 8 home movie at times) </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>.Is it possible to improve system performance?</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>My system is a duron 750 MHz with 128Meg of ram, the video card is a rage128 </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>with 32Meg of vid memory. I have installed the R128 drivers which give the </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>XVideo extensions. Ive also been into the BIOS and set AGP to x4 and switched </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>on the fast write mode (although I'm not really sure what difference these </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>make but they do sound as if they might improve performace) (operating system </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>is RH7.2 with X11 4.1.0)</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>When i look at system performance the play back software is using about 40% </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>of CPU time and X is using between 50 and 60% of CPU time, so there is almost </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>no processing time so spare. </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Would reducing the screen resolution or number of colors improve things </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>significantly. The brute force solution would seem to be to buy a faster </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>processor but this seems a bit over the top when a DVD FAQ I read suggests </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>that a 350MHz Pentium should be adequate for play back</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>all suggestions gratefully received</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Jim</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>--__--__--</FONT></FONT></I></PRE>
    </BLOCKQUOTE>
<FONT SIZE="3"></FONT>
    <BLOCKQUOTE>
<PRE></PRE>
    </BLOCKQUOTE>
</BODY>
</HTML>

--=-OZOeHd78DIaEX030Qj38--