Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old November 23rd, 2002, 12:29 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
Playing DVD's smoothly

I am using Ogle GUI version 0.8.5 to play DVD's,but the movie doesnt play smoothe (i.e. it freezes for half a second then continues to play and freezes again,the whole time).I already switched to Window Maker because it uses less resources than Gnome or KDE,but it still doesn't run smoothly.Does anyknow know how I can make it run smooth?Can I stop alot of the other applications running in the background (just having X and ogle running)?Or is there another DVD player,which is better?
Under Windows I can play dvds normal,so my hardware/dvd disc is okay.

Reply With Quote
  #2  
Old November 23rd, 2002, 03:49 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
first you should check if your dvd-rom drive is dma enabled.
use "hdparm" for this (for checking and enabling!)

i am using mplayer for freeBSD - no problems playing dvd. i also tested xine for linux, no problems either...

sometimes you need special X extensions or drivers to make dvds run smoothly. most times not.

how many MHZ do you have?
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old November 23rd, 2002, 04:20 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
I have a 1 Ghz amd,and dma is turned off,because hdparm /dev/dvd outputs this:
Quote:
/dev/dvd:
HDIO_GET_MULTCOUNT failed: Invalid argument
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 1 (on)
readahead = 8 (on)
HDIO_GETGEO failed: Invalid argument


I have tried hdparm -d1 /dev/dvd,but I get this error:
Quote:
/dev/dvd:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)


If you mean Xvideo (xv),then I have that extension.
Btw,I have also tried mplayer,but I have the same problem,so it must be the dma.

Reply With Quote
  #4  
Old November 23rd, 2002, 04:23 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
You need to get the right driver installed to activate DMA.
what chipset is your mainboard using? (IDE)
VIA or SIS? (i guess since most intel chipsets are supported out-of-the-box....)

Reply With Quote
  #5  
Old November 23rd, 2002, 05:05 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
I would say via,because cat /proc/ide/via returns this:
Quote:
----------VIA BusMastering IDE Configuration----------------
Driver Version: 3.35
South Bridge: VIA vt82c686a
Revision: ISA 0x22 IDE 0x10
Highest DMA rate: UDMA66
BM-DMA base: 0xc000
PCI clock: 33.3MHz
Master Read Cycle IRDY: 0ws
Master Write Cycle IRDY: 0ws
BM IDE Status Register Read Retry: yes
Max DRDY Pulse Width: No limit
-----------------------Primary IDE-------Secondary IDE------
Read DMA FIFO flush: yes yes
End Sector FIFO flush: no no
Prefetch Buffer: no no
Post Write Buffer: no no
Enabled: yes yes
Simplex only: no no
Cable Type: 80w 40w
-------------------drive0----drive1----drive2----drive3-----
Transfer Mode: UDMA PIO UDMA DMA
Address Setup: 30ns 120ns 30ns 60ns
Cmd Active: 90ns 90ns 90ns 90ns
Cmd Recovery: 30ns 30ns 30ns 30ns
Data Active: 90ns 330ns 90ns 90ns
Data Recovery: 30ns 270ns 30ns 60ns
Cycle Time: 30ns 600ns 60ns 150ns
Transfer Rate: 66.6MB/s 3.3MB/s 33.3MB/s 13.3MB/s

cat /proc/ide/SIS doesnt work.

Reply With Quote
  #6  
Old November 23rd, 2002, 05:08 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
uh oh, "82c686a"...

this is a broken chipset (hardware failures!), maybe there is no way to activate DMA.... (not sure!)

did you check transfer speed? ("dd if=/dev/hdc1 of=/dev/null bs=1024 count=1024000" for a 100MB check)

Reply With Quote
  #7  
Old November 23rd, 2002, 05:19 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
Do you mean "dd if=/dev/dvd of=/dev/null bs=1024 count=1024000" (because /dev/dvd is my dvd thingy?
It returned:
Quote:
dd: reading `/dev/dvd': Invoer-/uitvoerfout
180496+0 records in
180496+0 records uit

Reply With Quote
  #8  
Old November 24th, 2002, 04:08 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
are you working as root? (because of the localized error messages...)

please remove your locale settings (probably in your /etc/profiles or /root/.profile), or translate this: "Invoer-/uitvoerfout" for us into english...

and for the /dev/dvd, it should not matter. /dev/dvd should be a softlink to /dev/hd??

you get an error message accessing the dvd drive? don´t use a video-dvd! they are read-protected! use a dvd that has no protection, best a data dvd, for testing.

your throughput should be constantly far above 10MBit/sec=1,2MB/sec. (use "date ; dd... ; date")

also, i had a "0" too many in the blocks count. this check would load 1GB, not 100MB as expected, please remove one. (then it could also work with your dvd-rom since it just read 180mb without problems)

any new results?

Reply With Quote
  #9  
Old November 24th, 2002, 09:02 AM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
Yes,I am doing it as root.Sorry for the dutch messages,it means "input/output error".
"In" means "in" and "uit" means "out".

It does matter?Because with your command I get this:
Quote:
dd: reading `/dev/hdc1': Invoer-/uitvoerfout
0+0 records in
0+0 records uit


I only have video-dvd's

"dd if=/dev/dvd of=/dev/null bs=1024 count=102400" outputs this:
Quote:
102400+0 records in
102400+0 records uit

Reply With Quote
  #10  
Old November 24th, 2002, 09:28 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Quote:
"dd if=/dev/dvd of=/dev/null bs=1024 count=102400" outputs this:


yeah m8, you were supposed to measure the time this command takes

Reply With Quote
  #11  
Old November 24th, 2002, 10:32 AM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
It varies,the first time it was 33 and the second time 29.So its,around 30.

Last edited by Tuxie : November 24th, 2002 at 10:49 AM.

Reply With Quote
  #12  
Old November 25th, 2002, 04:55 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
[note]
... i am not getting any notification messages anymore from vBulletin hope i miss no post..
[/note]

30seconds would make about 3.5MB/second
this is more than enough. but we can´t tell from this if this datarate is constant. try this: copy the dvd to your hard drive. open the "vts_01_0.ifo" in your dvd player and see if it works then.
if yes, it IS the DMA mode, if not, you probably have CODEC problems.

Reply With Quote
  #13  
Old November 25th, 2002, 06:02 AM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
What do you mean with copy the dvd to your disk?Its 7 GB big.

Reply With Quote
  #14  
Old November 25th, 2002, 01:03 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
so?
i meant it like i said it...
this is (imho) the only reliable way to now find out if it is a graphics problem or a dvd-rom problem.

Reply With Quote
  #15  
Old November 25th, 2002, 03:18 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
Okay,I assume that I can just copy it with Nautilus?Or do I need some special commands?

Reply With Quote