View previous topic :: View next topic |
Author |
Message |
cf25 Apprentice
Joined: 20 Jun 2002 Posts: 158
|
Posted: Tue Jul 23, 2002 1:43 pm Post subject: dvd skipping |
|
|
i've finally got my dvds playing under xine and ogle. but now i have a couple of problems. initially, i had some pretty nasty video with it skipping way to much. in my attempt to fix that i did a
hdparm -d1 /dev/dvd
that seemed to clear up the majority of it. however, it is still very noticable. is there something else i can do? also, how do i make that stick? i have to type it in every time.
one more thing. when i use ogle, the video is a bit smoother so i would prefer to use it. the problem is, i have no sound with ogle. any ideas? |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Tue Jul 23, 2002 3:13 pm Post subject: |
|
|
Hmm... DVDs run under X, so moving to Desktop forum. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Mr. Ust n00b
Joined: 16 Jun 2002 Posts: 45
|
Posted: Tue Jul 23, 2002 3:15 pm Post subject: Getting hdparm parameters to stick |
|
|
I think the best place for this is inside /etc/conf.d/local.start
I have the following code in there:
Code: |
hdparm -q -d 1 -q -c 1 -q -k 1 /dev/hda
hdparm -q -d 1 -q -c 1 -q -k 1 /dev/hdd
hdparm -q -d 1 -q -c 1 -q -k 1 /dev/hdg
hdparm -q -d 1 -q -c 1 -q -k 1 /dev/hdh
|
Adjust it according to what drives you have connected.
It was only a while ago that I discovered none of my drives were using dma mode. The difference in performance is incredible. I'm surprised that these steps aren't part of the installation guide.
What are you currently using to play the dvds? MPlayer? VideoLAN client?
From the OGLE FAQ:
Quote: |
9. There is no audio.
Make sure you have chosen an ac3 audio stream, (mpeg and dts currently don't work). Start Ogle with GUI. Start playing the DVD. Click on the loudspeaker and select the any AC3 audio stream.
|
|
|
Back to top |
|
|
cf25 Apprentice
Joined: 20 Jun 2002 Posts: 158
|
Posted: Tue Jul 23, 2002 3:36 pm Post subject: |
|
|
thanks for the info. i'll give that a whirl when i get off work! |
|
Back to top |
|
|
trolley Apprentice
Joined: 12 Jun 2002 Posts: 292 Location: Canada
|
Posted: Tue Jul 23, 2002 4:32 pm Post subject: Re: Getting hdparm parameters to stick |
|
|
Mr. Ust wrote: | It was only a while ago that I discovered none of my drives were using dma mode. |
How did you find that out? I didn't realize that hdparm was needed to turn dma mode on. Does that mean that if I'm not using hdparm, then my drives aren't using dma mode? |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue Jul 23, 2002 4:44 pm Post subject: |
|
|
hdparm /dev/hdX
will give you the states of the various flags. |
|
Back to top |
|
|
cf25 Apprentice
Joined: 20 Jun 2002 Posts: 158
|
Posted: Tue Jul 23, 2002 4:50 pm Post subject: |
|
|
i've set everything up for dma, but the video is still choppy. i know its not the computer cuz when i was running suse it was clear as a bell. anything else? |
|
Back to top |
|
|
nbensa l33t
Joined: 10 Jul 2002 Posts: 799 Location: Buenos Aires, Argentina
|
Posted: Tue Jul 23, 2002 4:55 pm Post subject: |
|
|
Ok, what about ide-scsi?
I have my CDRW and DVD in /dev/hda /dev/hdb but those devices dissapear when using ide-scsi making hdparm useless.
How do I change settings for /dev/sg0 and /dev/sg1?
TIA,
Norberto |
|
Back to top |
|
|
smtanner Tux's lil' helper
Joined: 12 May 2002 Posts: 106 Location: Colorado
|
Posted: Tue Jul 23, 2002 7:58 pm Post subject: |
|
|
Quote: | How did you find that out? I didn't realize that hdparm was needed to turn dma mode on. Does that mean that if I'm not using hdparm, then my drives aren't using dma mode? |
Hdparm is not needed to turn dma on. If your have support for your chipset compiled into the kernel, DMA should be on by default. On my box, I have support for the via chipset compiled into the kernel and DMA is on by default without using hdparm. |
|
Back to top |
|
|
cf25 Apprentice
Joined: 20 Jun 2002 Posts: 158
|
Posted: Wed Jul 24, 2002 12:20 am Post subject: |
|
|
well dma mode gets rid of some of the skipping but it is still quite unwatchable. there has to be something else i can do. it has worked fine with (gulp) other distros! |
|
Back to top |
|
|
Mr. Ust n00b
Joined: 16 Jun 2002 Posts: 45
|
Posted: Wed Jul 24, 2002 12:49 am Post subject: |
|
|
I suggest looking at the ogle documentation and FAQ for better details. Try a different dvd player such as vlc. You can also try copying the dvd to your hard disk. If you put it in /mnt/c/video_ts for example, you can get ogle to play it from the hard drive using
Code: |
ogle -u cli /mnt/c/video_ts
|
These things may help you isolate the problem. If all that fails, answer some of the following questions:
What kind of processor do you have? Which kernel are you using? Are you using the pre-emptive and lowlatency patches? Are these patches on? (check /proc/sys/kernel/lowlatency for one of them)
What other tasks are you doing while watching dvds? Try loading up gkrellm to monitor CPU utilization, and gtop for memory.
I've been banging my head against the wall trying to get winex to work with Starcraft, and it may just be that we're both SOL. |
|
Back to top |
|
|
smtanner Tux's lil' helper
Joined: 12 May 2002 Posts: 106 Location: Colorado
|
Posted: Wed Jul 24, 2002 2:00 am Post subject: |
|
|
I don't know if this could have some effect so this is just a shot in the dark. Are you using Alsa or kernel modules for sound? Were you using the same sound modules with the "other distros"? What does it say in the xine setup audio tab for "audio driver to use"? Is that what you are using. What video card do you have and what video driver is xine using? Look in the xine setup video tab. Mine says "Xv" in the "video driver to use" section. What does yours say. |
|
Back to top |
|
|
smtanner Tux's lil' helper
Joined: 12 May 2002 Posts: 106 Location: Colorado
|
Posted: Wed Jul 24, 2002 2:05 am Post subject: |
|
|
It must be something with your configuration. I just tried playing a DVD and the playback was smooth with xine. Much smoother that when I was using Suse anyways. |
|
Back to top |
|
|
cf25 Apprentice
Joined: 20 Jun 2002 Posts: 158
|
Posted: Wed Jul 24, 2002 2:10 am Post subject: |
|
|
my video card is an ati rage mobility.
xine says audio driver is oss and my video driver is XShm.
the sound comes off ok. it is the video that sux. |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Wed Jul 24, 2002 2:22 am Post subject: |
|
|
There is some nastiness with Rage cards and XFree 4.2. What worked well under RH 7.2 (XF 4.1) is borked in 4.2. The xfree mailing lists have several items in this regard. Hopefully things are better with 4.3(?)
cf25 wrote: | my video card is an ati rage mobility.
xine says audio driver is oss and my video driver is XShm.
the sound comes off ok. it is the video that sux. |
|
|
Back to top |
|
|
cf25 Apprentice
Joined: 20 Jun 2002 Posts: 158
|
Posted: Wed Jul 24, 2002 2:25 am Post subject: |
|
|
does that mean i'm screwed or are there fixes? i'm not giving up just yet. everything else just works too well. |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Wed Jul 24, 2002 2:41 am Post subject: |
|
|
I cannot use xine or mplayer without bringing down my X server and/or kernel! Tried to revert to 4.1 but the ebuilds were not OK when I tried (too old I guess). I'm waiting for the next XFree. |
|
Back to top |
|
|
smtanner Tux's lil' helper
Joined: 12 May 2002 Posts: 106 Location: Colorado
|
Posted: Wed Jul 24, 2002 2:57 am Post subject: |
|
|
Not sure if this will help but just for kicks try starting xine with
xine -V Xv |
|
Back to top |
|
|
cf25 Apprentice
Joined: 20 Jun 2002 Posts: 158
|
Posted: Wed Jul 24, 2002 3:36 am Post subject: |
|
|
no such luck. here is what i got...
tvmode: cannot connect to nvtvd - no TV mode switching available
Display is not using Xinerama.
tvmode: not connected to nvtvd for switching
video_out_xv: Xv extension is present but I couldn't find a usable yuv12 port.
Looks like your graphics hardware driver doesn't support Xv?!
load_plugins: video output plugin /usr/lib/xine/plugins/xineplug_vo_out_xv.so: init_video_out_plugin failed.
main: video driver <Xv> failed |
|
Back to top |
|
|
smtanner Tux's lil' helper
Joined: 12 May 2002 Posts: 106 Location: Colorado
|
Posted: Wed Jul 24, 2002 5:28 am Post subject: |
|
|
Hmm. Looks like the driver you are using does not support Xv. Look at
gatos.sourceforge.net
for drivers which should allow you to get Xv working. Your really need to use Xv to get smooth playback. Look in particular at the ati.2 project link on that site. I don't know if this is in portage or not as I use an nvidia card. |
|
Back to top |
|
|
smtanner Tux's lil' helper
Joined: 12 May 2002 Posts: 106 Location: Colorado
|
Posted: Wed Jul 24, 2002 5:34 am Post subject: |
|
|
It is in portage (called ati-gatos) but it is masked for some reason. |
|
Back to top |
|
|
Zu` l33t
Joined: 26 May 2002 Posts: 716 Location: BE
|
Posted: Wed Jul 24, 2002 6:41 am Post subject: Re: dvd skipping |
|
|
cf25 wrote: | i've finally got my dvds playing under xine and ogle. but now i have a couple of problems. initially, i had some pretty nasty video with it skipping way to much. in my attempt to fix that i did a
hdparm -d1 /dev/dvd
that seemed to clear up the majority of it. |
Sorry not being able to help out, but that line just helped with my dvd problems! I thought hdparm was just for HDD's. Thanks.
Greets |
|
Back to top |
|
|
El_Presidente_Pufferfish Veteran
Joined: 11 Jul 2002 Posts: 1179 Location: Seattle
|
Posted: Wed Jul 24, 2002 2:26 pm Post subject: |
|
|
I got DVD working on my ATi Radeon without GATOS drivers. When i tried to use GATOS drivers it kept giving me errors about my kernel module for DRI being too old, and when i tried to update the kernel modules, it did nothing. |
|
Back to top |
|
|
Malakin Veteran
Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
Posted: Thu Jul 25, 2002 12:18 am Post subject: |
|
|
Quote: | I got DVD working on my ATi Radeon without GATOS drivers. |
Are you using xv or do you have enough cpu power that you don't need it? |
|
Back to top |
|
|
smtanner Tux's lil' helper
Joined: 12 May 2002 Posts: 106 Location: Colorado
|
Posted: Thu Jul 25, 2002 1:19 am Post subject: |
|
|
Quote: | I got DVD working on my ATi Radeon without GATOS drivers. When i tried to use GATOS drivers it kept giving me errors about my kernel module for DRI being too old, and when i tried to update the kernel modules, it did nothing. |
Of course the gatos drivers aren't necessary. There are lots of things that effect video playback (cpu speed, display depth, etc) and is is entirely possible to get average (not good) playback without it. Using Xv, however, allows your video card to do some of the work and greatly improves playback, especially on slower systems. If you can't get Xv to work, you could try reducing your display depth to 16 if is currently at 24 or reducing the resolution or both. |
|
Back to top |
|
|
|