[Mplayer-users] [mplayer PATCH] CDROM documentation and minor fixes

Nick Kurshev nickols_k at mail.ru
Wed Apr 18 18:56:27 CEST 2001


Hello!

I want to suggest you file for your mplayer documentation. This file was born after spending by me about 3 days 
on researchs of problem with my CDROM. I hope it can be useful for other users which have problems
as me.

Also I have found minor lacks in configure (sorry for CFLAGS again):

--- configure.old	Wed Apr 18 02:04:44 2001
+++ configure	Wed Apr 18 16:40:04 2001
@@ -548,6 +548,9 @@
         _mmx=no
 	_mmx2=no
         ;;
+  --disable-mmx2)
+	_mmx2=no
+        ;;
   --disable-mtrr)
   	_mtrr=no
 	;;
@@ -721,6 +724,11 @@
 fi
 
 
+# Checking for CFLAGS
+if test "$CFLAGS" = ""; then
+  CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math"
+fi
+
 echo
 echo "Creating $MCONF"
 cat > $MCONF << EOF
@@ -730,7 +738,7 @@
 AR=ar
 CC=$_cc
 # OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math
-OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -ffast-math
+OPTFLAGS=$CFLAGS
 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib
 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib
 TERMCAP_LIB=$_libtermcap

The file. I named it as "main/DOCS/CDROM":

-------------8<-------------------8<-----cut it here ----------------------8<-----------------------------8<-----------------------

Tune up CDROM
=============

INTRODUCTION:
=============
>From Linux documentation:

Some CDROM drives are capable of changing their head-speed. There
are several reasons for changing the speed of a CDROM drive. Badly
pressed CDROMs may benefit from less-than-maximum head rate. Modern
CDROM drives can obtain very high head rates (up to 24-times is
common).  It has been reported that these drives can make reading
errors at these high speeds, reducing the speed can prevent data loss
in these circumstances.  Finally, some of these drives can
make an annoyingly loud noise, which a lower speed may reduce.

HOWTO:
======
You can do it by executing command:
echo current_speed:4 >/proc/ide/hdd/settings

You can also some tuneup your CDROM by using hdparm:

hdparm -d1 /dev/hdd
to enable using DMA access

hdparm -a1 /dev/hdd
to enable readahead

Also I use following command:
echo file_readahead:2000000 >/proc/ide/hdd/settings
for 2MB prefetching reading from the file.
(It useful for scratching CDROMs)

FINAL WORDS:
============
Please refer to "/proc/ide/hdd/settings" for tuning your CDROM
more finely.

Nick Kurshev <nickols_k at mail.ru>

-------------8<-------------------8<-----cut it here ----------------------8<-----------------------------8<-----------------------

Best regards! Nick



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



More information about the MPlayer-users mailing list