LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-02-2005, 07:21 AM   #1
marks_linux
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Rep: Reputation: 0
choppy DVD playback


I'm having problems with DVD playback. Visuals momentarily pause and sound becomes out of sync when using totem. I setup DVD playback as per the Ubuntu 5.04 getting started guide (running ubuntu 5.04 as my distro).

Running 32bit 2.6.10-5-k7
kernel on AMD64 3200+ ATI radeon graphics with fglrx up and running (around 2000fps in glxgears). Playback from harddrive is good so looks like DVD drive.

Heres the current info I think? is important:
/dev/hda:
Timing buffered disk reads: 6 MB in 3.06 seconds = 1.96 MB/sec
markw@markhome:~/dist$ sudo hdparm -T /dev/hda

/dev/hda:
Timing cached reads: 2500 MB in 2.00 seconds = 1248.32 MB/sec
markw@markhome:~/dist$ sudo hdparm -i /dev/hda

/dev/hda:

Model=_NEC DVD_RW ND-2500A, FwRev=1.06, SerialNo=
Config={ Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=yes, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=no

* signifies the current active mode

Anone any ideas?

Cheers
M
 
Old 05-02-2005, 08:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well the first port of call is ensuring DMA is enabled... hdparm -d1 /dev/hda etc... if /dev/hda really is your DVD drive (your description is pretty confusing)
 
Old 05-02-2005, 08:54 AM   #3
marks_linux
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for the reply.
Ive tried hdparm -d1 /dev/hda but get the following error (both as normal user and as root)
/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)

Sorry if the post was confusing (it wasn't meant to be) I was trying to give as much info as possible.

I'm trying to show the system info on my DVD drive (hdparm -i etc) and my current read stats (the other two lines).

The relevent line from /etc/fstab is:

/dev/hda /media/cdrom0 udf,iso9660 ro,user,noauto 0 0

If that helps!

M
 
Old 05-02-2005, 03:24 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ensure that you are logging in as root on a non-X console, or using "su -" instead of just "su" to avoid any nasty permission hangovers. other than that i've only seen issues like that when a drive is using ide-scsi emulation to run, i.e. it's a cd burner. that said there wouldn't be a reference to /dev/hda normally if it was. is this a cd burner with ide-scsi on it? if so and you're on a 2.6 kernel, then you don't need it at all and you can remove it's use from your bootloader config.
 
Old 05-03-2005, 01:18 AM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
The program totem is based on mplayer's code is not great at keeping audio and video sync. Try Xine or Video Lan Client. Xine and Video Lan Client has excellent sync even on a slow computer. However it seems that the kernel does not have support for DMA or a certain component that is needed for DMA to work. You will have to configure your kernel and re-compile it.
 
Old 05-03-2005, 01:26 AM   #6
marks_linux
LQ Newbie
 
Registered: Jul 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for the reply.

Did a lot of googling yesterday and it seems that (as you say) I need to add the support to my kernel and re-compile. Will post back when sorted.
 
Old 05-03-2005, 07:51 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
totem is based on Xine. not MPlayer
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Choppy dvd playback after upgrade to current Frank_Drebin Slackware 2 05-05-2004 05:34 PM
Choppy DVD & movies playback TheShemeta Linux - Software 3 02-17-2004 03:42 PM
DVD Playback is choppy Twiggy794 Linux - Hardware 12 02-17-2004 03:37 PM
choppy xine dvd playback pootie Linux - Newbie 19 12-04-2003 08:59 AM
mplayer produces choppy dvd playback luchobucho Linux - Software 1 02-05-2003 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration