Jump to content

skipping DVDs in Xine


tyme
 Share

Recommended Posts

i finally got Xine playin' DVD's, but they skip...well...jerk. Basically, it seems like there are short spurts of pausing constantly, very short, but nearly constant.

 

Anyone know a way to fix this problem?

 

Hardware: AMD XP 1600+, 768MB DDR 2100 ram, Geforce 4 Ti4200 video card, ML 9

 

Ogle doesn't work for sh*t, everytime I try to open a DVD it just dies. Any suggestions? Maybe I did something wrong trying to get Xine to play DVD's, I'm not sure....?

Link to comment
Share on other sites

as for the ogle problem a fix for this is http://www.trylinuxsd.com/dvd/pages/page6.html. As for xine its probably not using XV as it's input plugin or you video card may be too slow. I have a 16 mb rage 128 and used to have this problem with my 533 MHz K6-2. Since you're specs are vastly better than mine you should definitely be able to get smooth playback.

I usually fixed my prob by going into xine's directory and changing a couple letters.

1. Open up the file ~/.xine/config

2. Search for the line that has either Xv or Xshm in it. should look like this

# video driver to use

# string, default: auto

video.driver:Xv

if it looks like this

# video driver to use

# string, default: auto

video.driver:XShm

change it to this

# video driver to use

# string, default: auto

video.driver:Xv

For some reason it changed back to the XShm plugin every once in a while. Sometimes it was when I played a file with KXine and it crashed (damn porno) or recently it just did and haven't been able to hunt down why (use mplayer mostly now cause it can play quicktime) but whenever it happened i'd restart the computer (not init 1 then init 3) which solved the problem. so maybe that's you're problem. Hope it is.

Link to comment
Share on other sites

i think I have a different problem w/ogle. it seems to be trying to open the alsa audio driver, but i have an audigy, which I believe uses OSS, not alsa.

 

Xine is using Xv, according to the config file in my home directory.

Link to comment
Share on other sites

Turn on your DMA for your dvdrom and all your optical drives.

 

While your at it, check to see if DMA is enabled for all your harddrives.

 

See man hdparm for more info.

 

If you have never done this before you can read up on it here first.

 

BTW hdparm wasent installed by default during the 'recommended' install of V9.0 But it is on cd 1 so it's easy enough to install it.

Link to comment
Share on other sites

Warning:

installing hdparm will make the system turn off dma on cdburners etc.

Found that in some of the bootscripts; I commented it out, so now it works fine, but was worried when my load during burning went from <4% to >45%...

 

Think it was in /etc/rc.d/sysinit or so (doing this from memory, ask me again if you need to know exactly...).

 

If no hdparm is installed, dma should work out of the box.

Unless your motherboard chipset is not recognised.

 

Check to see if dma is turned on:

(as root: )

cat /var/log/dmesg | grep dma

(or just read that file: less /var/log/dmesg )

 

What kind of board do you have (it's the one crucial piece of hardware, and you didn't mention it :) )?

I had a similar problem a year ago, bought the newest kind of mobo (a7v333) but mdk8.2's kernel didn't have chipset support for the via kt333.

Solution: compile the patched kernel. The tips and tricks section should have all the info you may need.

Link to comment
Share on other sites

my mobo is an ECS K7S5A, althought doing cat /var/log/dmesg | grep dma didn't return anything, i just looked in the file manually and found:

ide0: BM-DMA at 0xff00-0xff07, BIOS settings: hda:DMA, hdb:DMA

ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdc:DMA, hdd:DMA

I would assume that means DMA is enabled.

Link to comment
Share on other sites

Yes, it seems your dma settings are fine, also, your motherboard has been around, so no problem there.

 

Just for reference, here's my dmesg (relevant part; note that I have no slave device on the first channel):

VP_IDE: VIA vt8233a (rev 00) IDE UDMA133 controller on pci00:11.1

   ide0: BM-DMA at 0xb000-0xb007, BIOS settings: hda:DMA, hdb:pio

   ide1: BM-DMA at 0xb008-0xb00f, BIOS settings: hdc:DMA, hdd:DMA

hda: MAXTOR 6L060J3, ATA DISK drive

hdc: PCRW1208, ATAPI CD/DVD-ROM drive

hdd: Pioneer DVD-ROM ATAPIModel DVD-105S 013, ATAPI CD/DVD-ROM drive

ide0 at 0x1f0-0x1f7,0x3f6 on irq 14

ide1 at 0x170-0x177,0x376 on irq 15

hda: 117266688 sectors (60041 MB) w/1819KiB Cache, CHS=7299/255/63, UDMA(133)

 

That last line tells that in my case, the fastest mode of dma of my mobo is being used.

 

Just be aware that if you install hdparm, the dma on your removable storage may well be switched off; in /etc/rc.sysinit I have the following (as said, I commented it out, so normally it actually does the bad thing if you have hdparm installed)

# Turn off DMA on CD-ROMs. It more often than not causes problems.

#if [ -x /sbin/hdparm -a -e /proc/ide ]; then

#  for N in `grep -v ide-disk /proc/ide/*/*/driver 2>/dev/null | awk -F / '{ pri

nt $5 }'`; do

#   hdparm -q -d0 /dev/$N >/dev/null 2>&1

#  done

#fi

 

It will show up in dmesg if dma is turned off, somewhere toward the end. You'll have to check that.

Link to comment
Share on other sites

i haven't gotten back to it just yet. i'll work w/it and see if i can find an answer.

 

i think i might have found an answer to MY problem. it seems that my cdroms and so forth are only running at DMA 33. now to figure out how to fix this :)

Link to comment
Share on other sites

t seems that my cdroms and so forth are only running at DMA 33. now to figure out how to fix this
Don't worry about that as CD/DVD drives do not work at anything more than MDMA2 (16.6 MB/s). Buts that more than enough for DVD playback.

If u have hdpram installed, go to the file /etc/rc.sysinit and comment out (put a # at the beginning of each line) this part:

    997 # Turn off DMA on CD-ROMs. It more often than not causes problems.

   998 #if [ -x /sbin/hdparm -a -e /proc/ide ]; then

   999 #  for N in `grep -v ide-disk /proc/ide/*/*/driver 2>/dev/null | awk -F         / '{ print $5 }'`; do

  1000 #   hdparm -q -d0 /dev/$N >/dev/null 2>&1

  1001 #  done

  1002 #fi

 

Then the command hdparm -d1 /dev/hdc will enable DMA (if DMA is disabled) on the DVD drive, assuming /dev/hdc is the DVD drive. Also, do an upgrade to the latest kernel for mandrake-9.0 ( ftp://ftp.math.utah.edu/pub/linux/Mandrak...pdates/9.0/RPMS )

 

If u do not have (or don't want) hdparm then simply run cat /proc/ide/hdc/settings to know if /dev/hdc is using DMA and what DMA mode it is using.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...