LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-14-2004, 08:22 AM   #1
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Rep: Reputation: 31
Jerky video playback


I am using a dual boot system win WinXP home and SuSE 9 pro.

When I play DVD videos under Linux, using either Mplayer or Ogle, the video always seems a bit jerky, and sometime slightly out of sync with the sound. I have no such problem under Windows. Also some websits with Flash Player animations seem jerky.

Is this a problem I can solve, or is it that Linux is not as good for multimedia playback a Windows?
 
Old 02-14-2004, 08:26 AM   #2
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
Maybe it has to do with ur RAM, 'caue I think Linux needs more RAM than windoze. I think I saw a discussion on this here.
 
Old 02-14-2004, 04:04 PM   #3
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Original Poster
Rep: Reputation: 31
I've got 192 MB of RAM, whick I would have thought would be enough for most purposes, considering that many Linux distributions claim to be able to run on much older systems.
 
Old 02-14-2004, 04:27 PM   #4
Chris H
Member
 
Registered: Aug 2003
Location: Farnborough, UK
Distribution: Zenwalk
Posts: 288

Rep: Reputation: 30
As root type

hdparm -d1 /dev/hd*

where hd* whatever your dvd drive is set up as.
 
Old 02-14-2004, 11:08 PM   #5
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Did you install mplayer from source? It run incredibly well when compiled from source and supports everything. Also, which version are you using?

As an aside I had a similar problem once. All was well until my power supply fried. It seemed to affect linux more than windows. I didn't get anything as bad as you are but it was jerky and the sound would periodically cut out. I never solved it since I didn't know about hdparm then and now I use a different box where I have the same (if not better) video playback under linux.

One other thing is what audio drivers are you using?
 
Old 02-15-2004, 12:48 AM   #6
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
192 MB RAM should be enough. Follow Chris H's advice. Let's see what turns up.
 
Old 02-15-2004, 01:26 AM   #7
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
jerky video is usually ide problems, however it can also happen when cpu/mem is overused, or if you are using say XShm when XV is available, etc, try -vo help and switch choices see if any go faster
 
Old 02-19-2004, 05:07 PM   #8
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Original Poster
Rep: Reputation: 31
I tries hdparm as Chris H suggested, and I got the message "/dev/sr0 not supported by hdparm
". I'm no Linux expert, so I don't really know what this means.

I can't remenber which version of Mplayer I used, but I've since removed it from my PC, and only use Ogle for DVDs. I do remember that it was installed using three rpm files simultaneously.

The Flash player problem doesn't seem so bad now, so maybe that was unrelated.
 
Old 02-19-2004, 07:24 PM   #9
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Is your drive pure SCSI or justr SCSI-emulated? If emulated then you have to point hdparm to the IDE name of your drive (ie hda, hdb, hdc, etc).
 
Old 02-22-2004, 03:22 PM   #10
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Original Poster
Rep: Reputation: 31
Sorry I don't know, adz. As I don't really know hat much about computers, can you tell me how to find out, please?
 
Old 02-22-2004, 05:27 PM   #11
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
you could just do:

/sbin/hdparm -I /dev/hdb
/sbin/hdparm -I /dev/hdc
...
...
...

until you find the output that matches your dvd manufacturer. not very elegant but pretty easy.
 
Old 02-22-2004, 07:38 PM   #12
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Well pure SCSI means it has a different kind of cable (slightly wider). If it's emulated then it's a regular IDE drive just being made to look like a SCSI through software. If you type /bin/lsmod and see a line saying "ide-scsi" then there's a good chance it's emulated. Basically, do what megaspaz said.
 
Old 02-23-2004, 12:02 PM   #13
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Original Poster
Rep: Reputation: 31
Thanks, it turns out that my CD/DVD drive is in fact /dev/hdc. When I do /sbin/hdparm -I /dev/hdc, I get:

/dev/hdc:

ATAPI CD-ROM, with removable media
Model Number: COMBI RW16x10/DVD
Serial Number: 5VO2235DR00837
Firmware Revision: N1.1
Standards:
Likely used CD-ROM ATAPI-1
Configuration:
DRQ response: 50us.
Packet size: 12 bytes
Capabilities:
LBA, IORDY(cannot be disabled)
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 *udma4
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
HW reset results:
CBLID- above Vih
Device num = 0



Does anything in that show what might be making DVD palyback jerky?
 
Old 02-23-2004, 07:34 PM   #14
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Try an hdparm -tT /dev/hdc. This does a (not very very indicative of real world situations) test. It can be helpful, though. Then look at the options -a, -b, -c, -d and -m. See if changing any of these parameters either incereases your test score or your DVD playback quality. Look especially at "-d".
 
Old 02-23-2004, 07:46 PM   #15
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
basically do as root:
/sbin/hdparm -v /dev/hdc

look at the output line starting with using_dma = X

where X is either 0 or 1. if it's 0, use this command:

/sbin/hdparm -d1 /dev/hdc

hopefully dma will be set in the output and not set then unset due to an error of some kind. if dma won't enable, post back and we'll handle that situation.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Video Playback-speeded up audio & video howone SUSE / openSUSE 1 10-20-2005 01:24 AM
A solution for vpd keys error and jerky video fraz Linux - Hardware 5 09-27-2005 07:20 PM
GnomeMeeting Jerky Video - Can You Help? mac57 Mandriva 1 02-08-2005 02:52 PM
GnomeMeeting Jerky Video - Can You Help? mac57 Linux - Software 1 02-08-2005 12:26 PM
video playback evil_lafta Linux - Software 2 12-02-2002 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:00 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
Open Source Consulting | Domain Registration