LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-13-2006, 03:16 PM   #1
dotancohen
Member
 
Registered: Dec 2004
Location: Haifa
Distribution: Fedora Core 4, Kubuntu
Posts: 235

Rep: Reputation: 32
Playing video in Kubuntu


I recently installed Kubuntu 5.10. When I play a DVD in Kaffeine the movie stutters- it is playing frame by frame. I see that the drive's LED and the computer's LED flash together, and when the movie starts stuttering, they flash more slowly. This happens in every DVD that I try after about ten seconds of playback. I can move to a different part of the film, and after a few seconds of normal playback the stuttering starts again. The same hardware worked perfectly in Windows XP Home so I don't think that the drive is bad.

Also, when playing an avi file from the local hard drive, the quality is horrible- most of the screen is squares that change slowly. The audio is fine, however. This is an avi that played perfectly in Windows XP Home. Is is located on a mounted FAT32 partition.

Thanks in advance for any troubleshooting advice that you can provide.
 
Old 02-13-2006, 04:52 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,563

Rep: Reputation: 85
Sounds like the DMA is turned off on your hard drive. Install the program hdparm then use sudo hdparm /dev/hd? replacing the ? with the drive letter that contains the partition you should see output similar to below.

Code:
hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 16383/255/63, sectors = 234441648, start = 0
The important one is the using_dma = 1 (on) if it is not there then sudo hdparm -d1 /dev/hd? again replacing the ? then try your media files now. If this works then edit the file /etc/hdparm.conf and put a section like this in it to make sure the DMA is set each time on boot.

Code:
/dev/hd? {
       dma = on
}
Of course replacing the ?.
 
Old 02-14-2006, 07:22 AM   #3
foolsh
Member
 
Registered: Apr 2005
Location: IL
Distribution: kubuntu
Posts: 56

Rep: Reputation: 15
http://easylinux.info/wiki/Ubuntu
 
Old 02-15-2006, 01:16 PM   #4
dotancohen
Member
 
Registered: Dec 2004
Location: Haifa
Distribution: Fedora Core 4, Kubuntu
Posts: 235

Original Poster
Rep: Reputation: 32
Thanks, hdparm looked like this:
Code:
root@ety:~# hdparm /dev/hdd

/dev/hdd:
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 HDIO_GETGEO failed: Invalid argument
root@ety:~#
I'll play with the DMA settings and see how that goes. Thank you.
 
Old 02-16-2006, 01:41 AM   #5
dotancohen
Member
 
Registered: Dec 2004
Location: Haifa
Distribution: Fedora Core 4, Kubuntu
Posts: 235

Original Poster
Rep: Reputation: 32
That made a major improvment, but the movie still does not play 100% smooth. It 'jerks' about once a second, making the watching experience unenjoyable. Is there anything else that I can do?

Thank you.
 
Old 02-16-2006, 09:16 AM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,563

Rep: Reputation: 85
Quote:
Originally Posted by dotancohen
That made a major improvment, but the movie still does not play 100% smooth. It 'jerks' about once a second, making the watching experience unenjoyable. Is there anything else that I can do?

Thank you.
You do not mention what you have for a video card but have you installed the drivers for it?
 
Old 02-17-2006, 02:40 PM   #7
dotancohen
Member
 
Registered: Dec 2004
Location: Haifa
Distribution: Fedora Core 4, Kubuntu
Posts: 235

Original Poster
Rep: Reputation: 32
No, I was unaware that this was nessacary...

The video card is a Nvida 32 Meg AGP unit. From where could I download the correct drivers? How can I find what is the correct model, excactly?
 
Old 02-17-2006, 03:38 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,563

Rep: Reputation: 85
Quote:
Originally Posted by dotancohen
No, I was unaware that this was nessacary...

The video card is a Nvida 32 Meg AGP unit. From where could I download the correct drivers? How can I find what is the correct model, excactly?
Several ways to tell really at boot the model/make along with the amount of ram is usually shown or in the /var/log/Xorg.0.log file it should show the model it detects also lspci will show you. The drivers you can get from Ubuntu already packaged you should go to their wiki page and follow the instructions your most likely going to need the legacy driver.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
playing rm video files rakesh_em Slackware 3 10-05-2004 02:50 PM
Video playing in background Maverick1182 Linux - Software 4 08-30-2004 07:04 AM
Playing Video in Mozilla wvdf96a Linux - Software 7 08-14-2004 12:00 PM
*EASY* video playing? Espique Linux - Software 4 05-17-2004 04:29 AM
mplayer not playing video pankajmathur Linux - Software 1 05-12-2003 01:56 PM


All times are GMT -5. The time now is 12:27 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration