Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dvd skipping
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
cf25
Apprentice
Apprentice


Joined: 20 Jun 2002
Posts: 158

PostPosted: Tue Jul 23, 2002 1:43 pm    Post subject: dvd skipping Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 23, 2002 3:13 pm    Post subject: Reply with quote

Hmm... DVDs run under X, so moving to Desktop forum.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Mr. Ust
n00b
n00b


Joined: 16 Jun 2002
Posts: 45

PostPosted: Tue Jul 23, 2002 3:15 pm    Post subject: Getting hdparm parameters to stick Reply with quote

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
View user's profile Send private message
cf25
Apprentice
Apprentice


Joined: 20 Jun 2002
Posts: 158

PostPosted: Tue Jul 23, 2002 3:36 pm    Post subject: Reply with quote

thanks for the info. i'll give that a whirl when i get off work!
Back to top
View user's profile Send private message
trolley
Apprentice
Apprentice


Joined: 12 Jun 2002
Posts: 292
Location: Canada

PostPosted: Tue Jul 23, 2002 4:32 pm    Post subject: Re: Getting hdparm parameters to stick Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jul 23, 2002 4:44 pm    Post subject: Reply with quote

hdparm /dev/hdX

will give you the states of the various flags.
Back to top
View user's profile Send private message
cf25
Apprentice
Apprentice


Joined: 20 Jun 2002
Posts: 158

PostPosted: Tue Jul 23, 2002 4:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Tue Jul 23, 2002 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
smtanner
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2002
Posts: 106
Location: Colorado

PostPosted: Tue Jul 23, 2002 7:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
cf25
Apprentice
Apprentice


Joined: 20 Jun 2002
Posts: 158

PostPosted: Wed Jul 24, 2002 12:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Mr. Ust
n00b
n00b


Joined: 16 Jun 2002
Posts: 45

PostPosted: Wed Jul 24, 2002 12:49 am    Post subject: Reply with quote

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
View user's profile Send private message
smtanner
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2002
Posts: 106
Location: Colorado

PostPosted: Wed Jul 24, 2002 2:00 am    Post subject: Reply with quote

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
View user's profile Send private message
smtanner
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2002
Posts: 106
Location: Colorado

PostPosted: Wed Jul 24, 2002 2:05 am    Post subject: Reply with quote

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
View user's profile Send private message
cf25
Apprentice
Apprentice


Joined: 20 Jun 2002
Posts: 158

PostPosted: Wed Jul 24, 2002 2:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Wed Jul 24, 2002 2:22 am    Post subject: Reply with quote

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
View user's profile Send private message
cf25
Apprentice
Apprentice


Joined: 20 Jun 2002
Posts: 158

PostPosted: Wed Jul 24, 2002 2:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Wed Jul 24, 2002 2:41 am    Post subject: Reply with quote

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
View user's profile Send private message
smtanner
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2002
Posts: 106
Location: Colorado

PostPosted: Wed Jul 24, 2002 2:57 am    Post subject: Reply with quote

Not sure if this will help but just for kicks try starting xine with

xine -V Xv
Back to top
View user's profile Send private message
cf25
Apprentice
Apprentice


Joined: 20 Jun 2002
Posts: 158

PostPosted: Wed Jul 24, 2002 3:36 am    Post subject: Reply with quote

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
View user's profile Send private message
smtanner
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2002
Posts: 106
Location: Colorado

PostPosted: Wed Jul 24, 2002 5:28 am    Post subject: Reply with quote

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
View user's profile Send private message
smtanner
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2002
Posts: 106
Location: Colorado

PostPosted: Wed Jul 24, 2002 5:34 am    Post subject: Reply with quote

It is in portage (called ati-gatos) but it is masked for some reason.
Back to top
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Wed Jul 24, 2002 6:41 am    Post subject: Re: dvd skipping Reply with quote

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
View user's profile Send private message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Wed Jul 24, 2002 2:26 pm    Post subject: Reply with 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.
Back to top
View user's profile Send private message
Malakin
Veteran
Veteran


Joined: 14 Apr 2002
Posts: 1692
Location: Victoria BC Canada

PostPosted: Thu Jul 25, 2002 12:18 am    Post subject: Reply with quote

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
View user's profile Send private message
smtanner
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2002
Posts: 106
Location: Colorado

PostPosted: Thu Jul 25, 2002 1:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum