LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-17-2005, 01:30 PM   #1
dispare
LQ Newbie
 
Registered: Sep 2003
Location: just left of middle
Distribution: Ubuntu, Gentoo PPC, Slackware
Posts: 18

Rep: Reputation: 0
DVD playback slackware 10.0


Greetings all!

I just recently installed Slackware 10. Everything works thus far except playing dvd's. I can mount cd's in my dvd+rx (LITEON 16X DVD+RW). In fact its the drive i used to install slack with.

I don't have a data dvd to try or I would report on that but here is some info to get us going

first my fstab
Code:
dev/hda1        swap             swap        defaults         0   0
/dev/hda2        /                ext3        defaults         1   1
/dev/hda3        /home            ext3        defaults         1   2
/dev/sda1        /mnt/flash       auto        noauto,users,rw  0   0
/dev/hdd         /mnt/dvd         iso9660,udf noauto,users,ro  0   0
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
then here is the result of mplayer attempting to read a dvd (as root and as user):
Code:
Playing dvd://1.
libdvdread: Could not open device with libdvdcss.
libdvdread: Can't open /dev/dvd for reading
Couldn't open DVD device: /dev/dvd
the results of "file /dev/dvd"
Code:
/dev/dvd: symbolic link to `/dev/hdd'
lsmod shows udf.... modprobe udf gives no relief....

This is rather fustrating as every post I have come accross tells how easy this is to fix - libdvdcss, libdvdread, libdvdnav, and a52c are all installed as are mplayer, and its codec pack "all"

libdvdcss installed to /usr/lib and /usr/local/lib no relief -

Maybe someone can help me out?

Thanx.
 
Old 03-17-2005, 02:32 PM   #2
WilliamS
Member
 
Registered: Nov 2003
Location: 46N 76W
Distribution: Slackware 13.0/KDE-3.5.10
Posts: 308

Rep: Reputation: 30
This works for me:
ln -sf /dev/cdrom /dev/dvd
 
Old 03-17-2005, 03:50 PM   #3
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
nm
 
Old 03-17-2005, 03:59 PM   #4
dispare
LQ Newbie
 
Registered: Sep 2003
Location: just left of middle
Distribution: Ubuntu, Gentoo PPC, Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
nope that actually made it worse... it doesn't even try to seek at this point....
/dev/cdrom actually points to /dev/hdc and /dev/hdd
 
Old 03-17-2005, 04:21 PM   #5
WilliamS
Member
 
Registered: Nov 2003
Location: 46N 76W
Distribution: Slackware 13.0/KDE-3.5.10
Posts: 308

Rep: Reputation: 30
code:

Playing dvd://1.
libdvdread: Could not open device with libdvdcss.
libdvdread: Can't open /dev/dvd for reading
Couldn't open DVD device: /dev/dvd

the results of "file /dev/dvd"

code:

/dev/dvd: symbolic link to `/dev/hdd'

You need a link to (/dev/cdrom in my 10.0).
This was why I had the same problem.

Um. Now that I think of it, you're doing this as user, so best to give user permissions to both /dev/dvd and /dev/cdrom.
I used chmod 777 , but IIRC it might be best chmod 660 /dev/xxx.
 
Old 03-17-2005, 05:20 PM   #6
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
You need to install libdvdcss. For legal reasons, it can't be distributed with the distro. These would be the same legal reasons that mean that Windows 2k+ comes with a perfectly capable DVD player (windows media player), but doesn't come with a DVD codec.

Without libdvdcss, you can still play DVD's, but not region coded DVD's. To give you an example of how common those are, I have a collection of more than 550 DVD's. Of that collection, exactly two are region-free. One of them is a concert of Zigeunerlieder, the other is a concert of Die Zauberflote, and both are released under a label that no longer exists.


You'll find libdvdcss here:
http://www.linuxpackages.net/pkg_details.php?id=5608

Also, you may find that DVD playback is choppy. Run xine-check in a console before playing DVD's, to make sure that everything is hunky-dory. You should get a response like this:

Code:
killerbob@whiterabbit:~$ xine-check
Please be patient, this script may take a while to run...
[ good ] you're using Linux, doing specific tests
[ good ] looks like you have a /proc filesystem mounted.
[ good ] You seem to have a reasonable kernel version (2.6.10)
[ good ] intel compatible processor, checking MTRR support
[ good ] you have MTRR support and there are some ranges set.
[ good ] found the player at /usr/bin/xine
[ good ] /usr/bin/xine is in your PATH
[ good ] found /usr/bin/xine-config in your PATH
[ good ] plugin directory /usr/lib/xine/plugins/1.0.0 exists.
[ good ] found unknown plugin: xineplug_flac.so
[ good ] found input plugins
[ good ] found demux plugins
[ good ] found decoder plugins
[ good ] found video_out plugins
[ good ] found audio_out plugins
[ good ] skin directory /usr/share/xine/skins exists.
[ good ] found logo in /usr/share/xine/skins
[ good ] I even found some skins.
[ good ] /dev/cdrom points to /dev/hdc
[ good ] /dev/dvd points to /dev/hda
[ good ] DMA is enabled for your DVD drive
[ good ] found xvinfo: X-Video Extension version 2.2
[ good ] your Xv extension supports YV12 overlays (improves MPEG performance)
[ good ] your Xv extension supports YUY2 overlays
[ good ] Xv ports:  YUY2 UYVY YV12 I420
killerbob@whiterabbit:~$
 
Old 03-17-2005, 08:24 PM   #7
rovitotv
Member
 
Registered: Jan 2003
Location: Dayton, Ohio
Distribution: Slackware 10.2
Posts: 116

Rep: Reputation: 15
If you have scsi emulation turned for your DVD burner, which might be possible for a 2.4 kernel, your drive might be pointed to /dev/sr0. To find out type "dmesg | more" at a command prompt and look
for what device your dvd is attached to.

"Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0"

If this is the case change the symlink for dvd
ln -s /dev/cdrom /dev/sr0

That should do the trick. Good luck.
 
Old 03-17-2005, 08:58 PM   #8
dispare
LQ Newbie
 
Registered: Sep 2003
Location: just left of middle
Distribution: Ubuntu, Gentoo PPC, Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
Well first let me say thanx for the quick responses.... but none of that helps.
I have all the correct libararies installed as I said in my original post. I get the exact same response from xine-check (except kernel version)

next /dev/cdrom is not my dvd drive it is my cdrom (I have both) /dev/hdc => /dev/cdrom I simlinked just in case - no go.

I have also run mplayer like this "mplayer -dvd-device /dev/hdd dvd://1" which results as if I didn't specify the device - dvd+rw seeking but no play....

The permissions thing has been ruled out by executing as root but just for the sake of argument I changed the permisions... no relief.

sorry to be a pain... I thought I had been clear in my initial post... is there anything I am missing?

I am not using ide-scsi emulation - is that a problem? I am using the default kernel (on dial up so kernel updating is a pain)

Should I just yank the cdrom? I don't think that would even fix it as the DVD drive seeks.... is this a udf problem?

Last edited by dispare; 03-17-2005 at 09:16 PM.
 
Old 03-17-2005, 09:50 PM   #9
dispare
LQ Newbie
 
Registered: Sep 2003
Location: just left of middle
Distribution: Ubuntu, Gentoo PPC, Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
this might help....
This particular DVD+RW did work with my ubuntu install (starting a LUG so getting real familiar with several distros) but I wanted to run slack on my machine and this is the ONLY thing giing me a problem...
 
Old 03-17-2005, 10:06 PM   #10
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
If you're getting the same response from xine-check, try playing the DVD with xine. It *should* work fine....

We've already established that it's a software problem, by demonstrating with a different distro that the hardware works fine. Now the question to ask is whether it's an mplayer problem, or a slackware problem. Assuming you've got libdvdcss installed, you should have no problem playing dvd's with xine. If libdvdcss isn't installed, xine-check will still return that everything's ok, but it won't play coded dvd's.


in other words, try xine. it should work fine. assuming you've got libdvdcss installed.
 
Old 03-17-2005, 10:10 PM   #11
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,085

Rep: Reputation: 45
if you boot with LILO, add this to the end your lilo.conf file:

append="hdc=ide-scsi"

if you boot with GRUB, add this to the end of your /boot/grub/menu.lst file:

hdc=scsi

once you've added that, reboot your machine, and give it another try. the 2.4.X kernel doesn't recognize scsi...and my LITE-ON wouldn't work until i added that...
 
Old 03-17-2005, 10:11 PM   #12
dispare
LQ Newbie
 
Registered: Sep 2003
Location: just left of middle
Distribution: Ubuntu, Gentoo PPC, Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
no go playing with xine - or ogle or mplayer
I have installed libdvdcss via installpkg - and compiled by hand - could it be that libdvdcss 1.2.8 is broken?
 
Old 03-18-2005, 08:46 AM   #13
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
Hmm... I'm nearing the end of what I know.

To begin with, libdvdcss, the one I linked at least, is *not* broken. I'm using it on my own desktop computer, and I downloaded it two days ago. I've since played through the Incredibles DVD without any problems, and I know that the disc is Region 1 encoded.

Only a few things come to mind at this point...

1. Are you mounting the DVD before playing it? I'm not certain about mplayer, but I do know that Xine requires that the DVD is *NOT* mounted to play. This is because it talks to /dev/dvd directly, and if /dev/dvd is mounted, the kernel won't let xine talk to the device. (same sort of thing as if you were to mke2fs /dev/fd0 when the disk is mounted)

2. I know I keep coming back to xine, and that's because it's what I use. If you start xine from a console, it gives debug code to stdout. (xine should be in the path) That debug code can be incredibly useful when you're trying to troubleshoot it. What does that error code say?

3. Are you able to mount the DVD? If you, as root, typed "mount /dev/dvd /mnt/hd", are you able to see the IFO and VOB files?
 
Old 03-18-2005, 04:11 PM   #14
dispare
LQ Newbie
 
Registered: Sep 2003
Location: just left of middle
Distribution: Ubuntu, Gentoo PPC, Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
Okay attempted mounting and this is what I got:
Code:
root@psilon:/home/dispare# mount -t udf /dev/hdd /mnt/dvd
mount: block device /dev/hdd is write-protected, mounting read-only
mount: No medium found
when I run xine /dev/hdd I get these errors:
Code:
xine:input plugin cannot find input plugin for MRL [/dev/hdd]
xine:input plugin cannot open MRL [/dev/hdd]
at this point I am stumped.... the last kernel that was able to play dvd's on this machine with this LITEON DVD+RW was 2.6.8 perhaps the driver in this kernel is flaky... its the only thing I can imagine... What do you all think?
 
Old 03-18-2005, 09:10 PM   #15
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
I think that's probably a good idea... Though try the mount without using -t udf. Just "mount /dev/dvd /mnt/dvd". Let mount autodetect the disc format.

In any event, if it's saying "no medium found" and there's a disc in the drive, it means your kernel probably doesn't have support for the drive. An updated kernel (2.6.11) with the right options chosen could very well fix your problems.

The Liteon DVD+RW should work fine with straight ATAPI drivers, which are enabled by default. It might not be able to *write* with the generic drivers, but it should at least be able to *read*. Make sure that your kernel supports the IDE chipset, so that you can enable DMA. Be sure to read through the kernel options thoroughly, though, because I could be mistaken about the use of ATAPI.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD Playback fanda Ubuntu 7 06-15-2005 06:07 PM
DVD Playback error: Unable to find map file (Slackware w/ KDE) shaun85 Linux - Newbie 1 10-15-2004 11:16 PM
Automount DVD and playback when DVD installed khurtwilliams Linux - Software 2 05-28-2004 01:28 PM
DVD playback madhatteruk Linux - Newbie 10 02-08-2004 01:38 PM
Slackware 9.1 DVD playback problems Whiskers Linux - Software 5 02-01-2004 01:20 AM


All times are GMT -5. The time now is 03:15 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration