LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-23-2009, 10:46 PM   #1
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Rep: Reputation: 37
DVD & MPG playback pauses for half a second every 20 seconds or so


Hello all,

I am trying to tweak the playback of DVD and MPG video files on my DELL Studio Notebook.

The key hardware specs are:

CPU: Pentium 2.4 Core 2 Duo
RAM: 3Gb
VIDEO: ATI Mobility Radeon HD3400 series (3460 I think)
SATA HDD (Western Digital)
SATA DVD (Optiarc aka Sony/NEC)

I have noticed that when playing a DVD from /dev/dvd or an MPG file from the local hard disk, every 20 seconds or so, there will be a slight pause of about half a second. Sometimes worse with DVD because the DVD drive seems to spin down mid playback and then find itself spinning up again, causing longer pauses.

Initially I tried hdparm -d1 -c1 /dev/dvd but that returns in an error: HDIO_SET_32BIT failed: Invalid argument

I did some reading and it maybe that my laptop SATA devices use libata which apparently does not support the calls made by hdparm.

Does anybody know of another fix or tweak for solving this problem?

Notably the problem also occurs when playing MPG files of the local hard disk aswell.

Thanks in advance,
Greenie

Last edited by greengrocer; 01-23-2009 at 10:47 PM.
 
Old 01-24-2009, 12:43 AM   #2
IMNOboist
Member
 
Registered: Nov 2003
Location: Northern Utah
Distribution: OpenBSD, Ubuntu, Linux Mint, Knoppix
Posts: 57

Rep: Reputation: 16
From my experience, ATI and Linux don't get along very well. I had a ton of trouble with my Radeon HD3200 until I finally gave up and put an nVidia card instead and now it works great.

That being said, since you're using a laptop, you don't really have that luxury. In my experience, the kind of problem you're experiencing is more a video card problem than anything else.

First advice, then further questions.
1. I would make sure that your ATI drivers are as up-to-date as possible and I would make sure you're using the proprietary driver and not the generic one that comes with X.
2. I would use a more robust program like VLC to watch your movies. VLC offers many different video and audio output modules that can give you more customization based around your setup.
3. If you insist on using a program other than VLC, I would poke around to find different output modules (like X11 rendering over OpenGL).
4. If you're using something like Compiz, try disabling it.

Questions if the above doesn't help:
1. What distro?
2. What media player?
3. Does it happen with mp3/ogg or just videos? Flash?

I must admit I don't know much about the SATA issue you mentioned, but if your OS can read it at all, it would seem to me that your hardware would be sufficient to run something as simple as a movie.

Good luck!
 
Old 01-24-2009, 12:57 AM   #3
vinnywrite
Member
 
Registered: Jan 2007
Location: lexington NC.
Distribution: Ultimalinux 8.4 & Slackware 12.0.0
Posts: 82

Rep: Reputation: 16
what coler depth are you using if it's 24bit or higher try lowering it to 16 the diference betwen 16 and 24 is negligable but performence is improved!!

open /etc/X11/xorg.config and look for the line

DefaultDepth

and see what it seas if 24 or more chang to 16 and see what happens!!
 
Old 01-26-2009, 06:21 AM   #4
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,487

Rep: Reputation: 88
I had much the same problem, only my stutters were in about 5 second increments.

Turned out that the kernel I was running did not have support for the ATI IXP southbridge I had on my system (i. e. I did not have DMA available). Having DMA up and running is vital to smooth DVD / video playback...

I suspect the HDIO error you get it because your kernel does not have support for your particular chipset compiled in...

I solved my problem by downloading a newer kernel which did have support available for ATI IXP based motherboard chipsets. I then compiled this new kernel with the relevant options selected for having ATI IXP southbridge support, and my stutters went away... because DMA was now working.

Last edited by rylan76; 01-26-2009 at 06:23 AM.
 
  


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
AVI to MPG for VCD playback dburnett77 Linux - Software 3 06-06-2007 02:51 PM
bad mpg video playback Lord Zoltar Linux - General 2 09-13-2004 11:18 PM
Rezound pauses during recording, and jumps during playback fatherg Linux - Software 2 04-04-2004 11:46 PM
Choppy DVD & movies playback TheShemeta Linux - Software 3 02-17-2004 04:42 PM
mpg playback on slackware 8.1 gnomeslayer Slackware 1 03-01-2003 06:48 AM


All times are GMT -5. The time now is 12:25 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