PDA

View Full Version : How do I play a dvd?



turbine
07-27-2004, 02:12 PM
I got 3.3 hdd installed and would like to play dvd's. Xine won't do it. Can't even mount them. Must be missing a simple step. Any ideas what it is?

baldyeti
07-27-2004, 02:29 PM
Search for posts mentioning libdvdcss2 - its available somwhere as a debian package but not from the official repositories.

turbine
07-27-2004, 03:58 PM
Thanks, baldyeti. I did that, installed same and then here's the messages that I got from xine:


knoppix@nickshp:~$ /usr/bin/xine
This is xine (X11 gui) - a free video player v0.9.22.
(c) 2000-2003 The xine Team.
Built with xine library 1.0.0 (1-rc0a)
Found xine library version: 1.0.0 (1-rc2).
XServer Vendor: The XFree86 Project, Inc. Release: 40300000,
Protocol Version: 11, Revision: 0,
Available Screen(s): 1, using 0
Depth: 16.
XShmQueryVersion: 1.1.
-[ xiTK version 0.10.5 ]-
-[ xiTK will use XShm ]-
-[ WM type: (EWMH) KWIN {KWin} ]-
Display is not using Xinerama.
deinterlace: Greedy disabled: required CPU accelleration features unavailable.
deinterlace: Greedy2Frame disabled: required CPU accelleration features unavailable.
deinterlace: Vertical disabled: required CPU accelleration features unavailable.
main: probing <aadxr3> video output plugin
main: probing <dxr3> video output plugin
dxr3_scr: Failed to open control device /dev/em8300-0 (No such file or directory)
main: probing <xv> video output plugin
main: probing <SyncFB> video output plugin
video_out_syncfb: aborting. (unable to open syncfb device "/dev/syncfb")
main: probing <xshm> video output plugin
xine_interface: unknown param 10
xine_interface: unknown param 10
xine_interface: unknown param 10
xine_interface: unknown param 10
knoppix@nickshp:~$ /usr/bin/xine
This is xine (X11 gui) - a free video player v0.9.22.
(c) 2000-2003 The xine Team.
Built with xine library 1.0.0 (1-rc0a)
Found xine library version: 1.0.0 (1-rc2).
XServer Vendor: The XFree86 Project, Inc. Release: 40300000,
Protocol Version: 11, Revision: 0,
Available Screen(s): 1, using 0
Depth: 16.
XShmQueryVersion: 1.1.
-[ xiTK version 0.10.5 ]-
-[ xiTK will use XShm ]-
-[ WM type: (EWMH) KWIN {KWin} ]-
Display is not using Xinerama.
deinterlace: Greedy disabled: required CPU accelleration features unavailable.
deinterlace: Greedy2Frame disabled: required CPU accelleration features unavailable.
deinterlace: Vertical disabled: required CPU accelleration features unavailable.
main: probing <aadxr3> video output plugin
main: probing <dxr3> video output plugin
dxr3_scr: Failed to open control device /dev/em8300-0 (No such file or directory)
main: probing <xv> video output plugin
main: probing <SyncFB> video output plugin
video_out_syncfb: aborting. (unable to open syncfb device "/dev/syncfb")
main: probing <xshm> video output plugin
xine_interface: unknown param 10
xine_interface: unknown param 10
xine_interface: unknown param 10
xine_interface: unknown param 10
video_out_xshm: tried to set unsupported property 2
libdvdnav: Using dvdnav version 1-rc2 from http://xine.sf.net
libdvdread: Using libdvdcss version 1.2.8 for DVD access
libdvdread: Could not open /dev/dvd with libdvdcss.
libdvdread: Can't open /dev/dvd for reading
libdvdnav: vm: faild to open/read the DVD
knoppix@nickshp:~$

Any ideas?

Cuddles
07-27-2004, 05:21 PM
YIKES!

I've run Xine, and I never saw those messages :!:

So, here goes, Ms. Trouble-Shooter...

First Question: Did your system ever run another OS (operating System), and if so, was it Windows, and if so, did your system ever play DVD's in that Operating System???

Second Question: What video card do you have? ( manufacturer, model, memory, and does it have "acceleration" - either 3D or video support? )

Third Question: (final one) -=- Does the video card show up in Info Center ( KMenu ---> System ---> Info Center ) under the video card, or is it using a "generic" video card configuration?

From the output of Xine, it appears that it can't find acceleration for playing a DVD, on your video card - i.e. it may not be able to handle the "needed" Frames Per Second that is required for proper displaying of the video. It also appears that it is having a heck of a time even finding the video it needs for this output... Another thought is, do you have DMA enabled on your DVD device????

Start up a ROOT Konsole - either click on the little monitor with a shell in front of it, the icon runs along the bottom of your screen (desktop) - and do the following:


cuddles@Morpheus:~$ su
root@Morpheus:/home/cuddles# hdparm -d /dev/hdc

/dev/hdc:
using_dma = 0 (off)
root@Morpheus:/home/cuddles#

You need to determine what your DVD device is as a /dev/hdX designation... You can do a dmesg at the root prompt screen above, look near the top, here is what mine would look like:


root@Morpheus:/home/cuddles# dmesg
Linux version 2.6.6 (root@Knoppix) (gcc version 2.95.4 20011002 (Debian prerelease)) #2 SMP Fri May 14 20:38:30 CEST 2004
...
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 100000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:07.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci0000:00:07.1
ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:DMA
hda: HDS722540VLAT20, ATA DISK drive
hdb: SONY DVD-ROM DDU1611, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: SAMSUNG SP0802N, ATA DISK drive
hdd: OPTORITECD-RW CW5201, ATAPI CD/DVD-ROM drive
...

Note that my DVD is on hdb which is /dev/hdb...

my hdparm command would look like this:


root@Morpheus:/home/cuddles# hdparm -d /dev/hdb

/dev/hdb:
using_dma = 0 (off)
root@Morpheus:/home/cuddles#

If your DVD device is NOT using DMA, you enable it by doing the following:


root@Morpheus:/home/cuddles# hdparm -d1 /dev/hdb

and disable it by doing the following:


root@Morpheus:/home/cuddles# hdparm -d0 /dev/hdb

Note that that is a ZERO after the -d not a letter O - its a "binary" thing, ZERO equals off, ONE equals on...

When your done using root, just type exit to exit login of root, and another exit will close your Konsole window (screen)

Hope this helps,
Ms. Cuddles

mzilikazi
07-27-2004, 05:31 PM
Try changing your default depth to 24 in /etc/X11/XF86Config-4

baldyeti
07-27-2004, 06:40 PM
libdvdread: Could not open /dev/dvd with libdvdcss.
libdvdread: Can't open /dev/dvd for reading
What's the output of "ls -al /dev/dvd" ?
Also, are you booting a 2.4 or 2.6 kernel?

turbine
07-27-2004, 07:49 PM
Wow, this is great help. Cuddles, you have the most questions so I'll get to yours last.

Baldyeti, here is the ls output:

knoppix@nickshp:~$ ls -al /dev/dvd
lrwxrwxrwx 1 root root 10 Jun 10 10:13 /dev/dvd -> /dev/cdrom
knoppix@nickshp:~$

I'm running the 2.4 kernel

baldyeti
07-27-2004, 07:58 PM
lrwxrwxrwx 1 root root 10 Jun 10 10:13 /dev/dvd -> /dev/cdrom
Ah we need to follow the chain then, with either "ls -al /dev/cdrom" or "ls -alL /dev/dvd"

turbine
07-27-2004, 08:20 PM
Now, Cuddles I'll answer your questions in separate posts so that I can get some responses to you while I'm looking up others.

Yes I also run win98 and I do play dvd's successfully.

Now xine runs fine on my machine in that I can play mpegs, avi's, wmv's, etc.

The info center doesn't show a video card so it must be using generic.

I'm not up on video cards since I never fooled with the beasts but my documentation seems to say:
"ATI 3D RAGE PRO".

/dev/hdc:
using_dma = 0 (off)
root@nickshp:/home/knoppix#

turbine
07-27-2004, 08:29 PM
Cuddles:

my dmesg command output contains this dvd info:

hdc: HITACHI DVD-ROM GD-2500, ATAPI CD/DVD-ROM drive
hdd: Hewlett-Packard CD-Writer Plus 8100, ATAPI CD/DVD-ROM drive

turbine
07-27-2004, 08:33 PM
OK, baldyeti, I ran both of those commands and here is what I got:

knoppix@nickshp:~$ ls -al /dev/cdrom
lrwxrwxrwx 1 root root 9 Jun 10 10:31 /dev/cdrom -> /dev/scd0

knoppix@nickshp:~$ ls -alL /dev/dvd
brw-rw---- 1 root cdrom 11, 0 May 31 2001 /dev/dvd
knoppix@nickshp:~$

baldyeti
07-27-2004, 09:14 PM
try "sudo chmod 666 /dev/scd0"

"ls -al /dev/scd0" should now display brw-rw-rw-

if it still does not work, make sure scsi emulation is enabled in your /etc/lilo.conf

turbine
07-27-2004, 09:22 PM
Here's a laffer:

knoppix@nickshp:~$ sudo chmod 666 /dev/scd0
knoppix is not in the sudoers file. This incident will be reported.
knoppix@nickshp:~$

I was able to issue the command after doing a su

now I get
root@nickshp:/home/knoppix# ls -al /dev/scd0
brw-rw-rw- 1 root cdrom 11, 0 May 31 2001 /dev/scd0

turbine
07-27-2004, 09:24 PM
Don't know about scsi emulation, though. I'm not using lilo at all.

baldyeti
07-27-2004, 09:24 PM
I was able to issue the command after doing a su/dev/scd0
Erh ... glad to read that, but can you now play a dvd ;-?

turbine
07-27-2004, 09:42 PM
Did all of that. Still doesn't work. The operation was a success but the patient died.

baldyeti
07-27-2004, 09:49 PM
Don't know about scsi emulation, though. I'm not using lilo at all.Are you sure ? Maybe its menu just does not show if you're not multi-booting? Anyway, either in /etc/lilo.conf or /boot/grub/menu.lst, your kernel bootup parameters should mention
"hdc=ide-scsi"

I may also be completely off, and perhaps it's your video card/driver that's missing features necessary to play DVD's, as xine seems to complain about that as well.

turbine
07-27-2004, 09:55 PM
When I boot knoppix I boot from a floppy diskette. Shouldn't be a problem with my video card since I play dvd's perfectly fine over on win98. Meanwhile I'll check those files.

baldyeti
07-27-2004, 10:04 PM
Don't bother they're ignored if you're booting from floppy. Sorry I am running out of suggestions.

turbine
07-27-2004, 10:26 PM
The problem is solved but the mystery remains.

Cuddles and baldyeti thank you so much for your help. I'll tell you what the solution was/is but I cannot tell you why.

There exists 2 different boot diskettes. Number 1 is the one that you get when you hdd install knoppix and it asks you to create a startup disk.

Number 2 is the one that you get when you run the mkboot command.

I've been booting with number 2.

When I tried booting with number 1, xine plays those dvd's with no problem.

Go figure.

Cuddles
07-28-2004, 03:59 PM
Cuddles:

my dmesg command output contains this dvd info:

hdc: HITACHI DVD-ROM GD-2500, ATAPI CD/DVD-ROM drive
hdd: Hewlett-Packard CD-Writer Plus 8100, ATAPI CD/DVD-ROM drive

Ok,

So your DVD is on /dev/hdc -=- I think the DMA will only solve a "choppy" display of DVD's when you are playing them... I think BaldYeti is on the right course for your Xine resolve...

First thing, if you have hard drive installed Knoppix, then an entry in your /etc/init.d/bootmisc.sh file can be made for the DMA issue...

In a root Konsole, start up your favorite editor, my preferance is KWrite... Here is what you can do for the DMA...

root@Morpheus:/home/cuddles# kwrite /etc/init.d/bootmisc.sh

( inside KWrite, go all the way down to the very bottom of the file, and add the following line:

hdparm -d1 /dev/hdc

Then save the file, and exit out of KWrite...

Back in the root Konsole window, since the change you made in the above file will only take effect the next time you boot, then enter the following line on the root prompt, so that you don't need to reboot to get it activated:

root@Morpheus:/home/cuddles# hdparm -d1 /dev/hdc

You can then verify that DMA is enabled on the device, by the following command:

root@Morpheus:/home/cuddles# hdparm -d /dev/hdc

Getting back to your resolve with BaldYeti, this is the link I have for my DVD:


root@Morpheus:/home/cuddles# ls -la /dev/dvd
lrwxrwxrwx 1 root root 3 Jul 2 08:57 /dev/dvd -> sr0
root@Morpheus:/home/cuddles#


If you look in your output from dmesg, you will note that any CD-ROM / DVD is transfered to the SCSI emulation, and then is given another device name - mine get translated to /dev/sr#'s - my guess is, your DVD is being translated to /dev/sr0, and your writter is getting /dev/sr1

I have the exact device setup - a DVD on hdb, which is sr0 -=- and a re-writter on hdd, which is sr1...

As BaldYeti suggested, you need to follow your "link" trail...

In your case:

Gee -=- disregard, it appears you got the boot floppy issue resolved -=- I would be sure to label your boot floppy #2 as "Emergency" or something, and label your boot floppy #1 as your "usable" one... Very interesting... I think your #2 floppy is a "stripped down" boot, whereas, your #1 floppy is actually the instalation floppy you should be booting from regularly - my guess...

Oh well, I guess having to work, cost me a fix of someone issues, durn,
Ms. Cuddles