Author |
Message |
Demosthenes
|
Posted: Sun May 25, 2008 5:18 pm |
|
Joined: Sun Jun 18, 2006 10:54 pm
Posts: 22
|
Okay, I've got a myth box that has both a CD drive and a DVD drive. If I put a DVD in the DVD drive, nothing happens. The DVD menu doesn't come up, going into Optical Disks and selecting Play DVD doesn't work; the screen goes black for a second or two before returning to the menu.
I thought it might be that the computer was getting confused as to which drive was the USB drive a while back, but it doesn't boot right when I remove the CD drive.
Any thoughts?
|
|
Top |
|
 |
cecil
|
Posted: Sun May 25, 2008 5:24 pm |
|
 |
Site Admin |
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location:
Whittier, Ca
|
Due to legal reason, KnoppMyth doesn't support the playback of encrypted DVDs out the box. Is the DVD encrypted? If so, you much install the library that unencrypts it. Much thanks to Hollywood and the law makers that don't write laws but just sign.
|
|
Top |
|
 |
Demosthenes
|
Posted: Sun May 25, 2008 6:39 pm |
|
Joined: Sun Jun 18, 2006 10:54 pm
Posts: 22
|
It's unencrypted.
For the encrypted ones, is there anything you can link me to in regard to the libraries I need?
|
|
Top |
|
 |
manicmike
|
Posted: Sun May 25, 2008 7:09 pm |
|
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location:
Melbourne, Australia
|
Demosthenes wrote: It's unencrypted.
For the encrypted ones, is there anything you can link me to in regard to the libraries I need?
KM uses the symbolic link /dev/dvd to play them, so do an "ls -l /dev/dvd" to see what device it is pointing to. You'll probably find it is incorrect.
To fix it temporarily (to test), you need to know the real device name of your DVD drive, then, as root, remove the existing symlink (rm /dev/dvd) and replace it with the correct one (e.g. ln -s /dev/scd0 /dev/dvd), replacing scd0 with whatever the correct device is.
If your DVD now works, you can make the change permanent by modifying the information in the file /etc/udev/rules.d/z25_persistent-cd.rules (as root). I would reboot the system afterwards to make sure this works, rather than trying to figure it out again in a year.
With the encrypted ones, you shouldn't ask us as exchanging some knowledge is as illegal and dangerous in today's world as it was in the 1600s: Google is your friend.
Regards
Mike Williams
_________________ ********************* LinHES 7.4 Australian Dragon *********************
|
|
Top |
|
 |
Demosthenes
|
Posted: Mon May 26, 2008 2:23 pm |
|
Joined: Sun Jun 18, 2006 10:54 pm
Posts: 22
|
Okay, it's linked to the correct device, decryption isn't a problem any more, and I found an article on the KM wiki about using xine ( http://www.knoppmythwiki.org/index.php? ... neDVDHowTo ). xine is now set up, and it is throwing errors such as: "Can't open /dev/dvd for reading", no matter whether I am using the first or second xine command to play them (from the article)
Thanks for the help so far. Any further suggestions?
|
|
Top |
|
 |
tjc
|
Posted: Mon May 26, 2008 2:39 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
Ownership and permissions.
- Follow the link chain to the actual device and make sure it's group ownership is "cdrom" and that there are rw permissions for the group
Code: root@black2:~/setup# ls -al /dev/dvd lrwxrwxrwx 1 root root 3 May 25 22:20 /dev/dvd -> hdc root@black2:~/setup# ls -al /dev/dvd /dev/hdc lrwxrwxrwx 1 root root 3 May 25 22:20 /dev/dvd -> hdc brw-rw---- 1 root cdrom 22, 0 May 25 22:20 /dev/hdc - Make sure that mythtv is a member of the cdrom group. Code: root@black2:~/setup# grep cdrom /etc/group cdrom:x:24:mythtv
Searching here for "cdrom" should also turn up a more detailed troubleshooting walk through.
|
|
Top |
|
 |
Demosthenes
|
Posted: Tue May 27, 2008 5:01 pm |
|
Joined: Sun Jun 18, 2006 10:54 pm
Posts: 22
|
Searched for cdrom in the Hardware section and found nothing more of much use. Will conduct a wider search of the forums later.
In the meantime, mythtv is a member of group cdrom and the /dev/dvd link and the /dev/hdc device are now both members of the group. I am still receiving the following error, among others:
Code: libdvdread: Can't open /dev/dvd for reading
Some of the other errors relate to a certain library, but I don't think those are quite as relevant.
Well, thanks for the help so far.
On a side note, when the music portion of MythTV is told that the CD-ROM device is /dev/dvd, the CDs placed in the device can be read and played as normal. I guess that would indicate a problem with xine or the libraries, rather than the links, etc. More searching of the forums later.
|
|
Top |
|
 |
tjc
|
Posted: Tue May 27, 2008 6:54 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
Demosthenes wrote: the /dev/hdc device
OK, you DID understand not to blindly use /dev/hdc right? You need to look at the perms/owners of the device that the symlink pointed to and that the logfiles report being associated with the right hardware. That was what that whole business of first listing /dev/dvd to find the links destination was about...
Also, if you've got two optical drives it's entirely possible for that link to be pointing to the wrong one. What does " hdparm -I /dev/hdc" show?
Finally, if you don't report the output from diagnostic commands we can't tell if you interpreted them wrong or right.
|
|
Top |
|
 |
Demosthenes
|
Posted: Tue May 27, 2008 11:10 pm |
|
Joined: Sun Jun 18, 2006 10:54 pm
Posts: 22
|
I did understand not to blindly use /dev/hdc, /dev/hdc happens to be the correct device. Giving output verbatim is very difficult, as the display is a television and the letters aren't quite clear.
Your output in the previous post was, aside from dates, and hostname, the output I got. Verbatim.
/dev/hdc indicates the secondary master, which is the physical location of the DVD drive.
Next time I have physical access to the box, I will type up any diagnostic data you'd like.
Sorry for making you think you're wasting time on a noob, and thank you for your continued help.
|
|
Top |
|
 |
tjc
|
Posted: Wed May 28, 2008 10:35 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
Demosthenes wrote: Sorry for making you think you're wasting time on a noob, and thank you for your continued help.
Just trying to be clear, since we were getting minimal feedback.
BTW - ssh is (or should be) your friend for stuff like this. From another Linux box:
Code: ssh your_user@your-ip-addr
From an MS-Windows box use "putty" or the like. From a MacOS box use the "Terminal" utility under "Macintosh HD/Applications/Utilities". Once you login and su - to become root, you can cut & paste text to and from that window, just like any other app.
|
|
Top |
|
 |
Demosthenes
|
Posted: Wed May 28, 2008 11:34 pm |
|
Joined: Sun Jun 18, 2006 10:54 pm
Posts: 22
|
Okay, I'll look into putty. I've got msys installed on the Windows box there already, so I'll see if I can get some ssh going with that or with putty, however. That'll certainly make it easier to deal with. Unfortunately, I won't actually have physical access to the box again until Saturday, most likely.
Thanks for the tip, though. I didn't realize ssh was so easy to get working from a Windows box. 
|
|
Top |
|
 |
Demosthenes
|
Posted: Sat May 31, 2008 12:04 am |
|
Joined: Sun Jun 18, 2006 10:54 pm
Posts: 22
|
Okay, I got some ssh goodness going (for some reason, I can't ssh into the mythtv user).
Code: root@mythtv:/# hdparm -I /dev/hdc
/dev/hdc:
ATAPI CD-ROM, with removable media Model Number: TOSHIBA DVD-ROM SD-M1212 Serial Number: 3900202132 Firmware Revision: 1R08 Standards: Used: ATAPI for CD-ROMs, SFF-8020i, r2.5 Supported: CD-ROM ATAPI-2 Configuration: DRQ response: 50us. Packet size: 12 bytes Capabilities: LBA, IORDY(can be disabled) Buffer size: 256.0kB DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 *udma2 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Code: root@mythtv:/# ls -al /dev/dvd lrwxrwxrwx 1 root root 3 May 27 15:47 /dev/dvd -> hdc root@mythtv:/# ls -al /dev/dvd /dev/hdc lrwxrwxrwx 1 root root 3 May 27 15:47 /dev/dvd -> hdc brw-rw---- 1 root cdrom 22, 0 May 27 15:47 /dev/hdc
Code: root@mythtv:/# grep cdrom /etc/group cdrom:x:24:mythtv,chbeach
Unfortunately, ssh doesn't let me start the myth front end from it (can't connect to X server - it's so whiny!  ), so this next bit is typed up. What I get when trying to play a dvd with the myth command-line for playing dvds as xine -pfhq dvd://: Code: This is xine (X11 gui) - a free video player v0.99.5cvs. (c) 2000-2006 The xine Team. libdvdread: Using <a library> version 1.2.9 for DVD access libdvdread: Attempting to use device /dev/hda1 mounted on / for CSS authentication libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed libdvdread: Can't open file VIDEO_TS.IFO. libdvdread: Using <a library> version 1.2.9 for DVD access libdvdread: Could not open /dev/dvd with <a library>. libdvdread: Can't open /dev/dvd for reading I cut out the name of the specific library there, if you need it, I'll PM it to you, but I think it should be fairly irrelevant, unless I installed it wrong (which I don't think I did). And this is with command-line xine -pfhq --no-splash --auto-scan dvd: Code: This is xine (X11 gui) - a free video player v0.99.5cvs. (c) 2000-2006 The xine Team. libdvdread: Using <a library> version 1.2.9 for DVD access libdvdread: Could not open /dev/dvd with <a library>. libdvdread: Can't open /dev/dvd for reading libdvdread: Using <a library> version 1.2.9 for DVD access libdvdread: Could not open /dev/dvd with <a library>. libdvdread: Can't open /dev/dvd for reading
So, that ought to give you a fairly good idea of where I'm at. Also, I just realized that I've been arbitrarily using the -pfhq without actually understanding what that does, which could possibly be contributing to my problems. I'll look into that.
Thanks for all your help so far.
Last edited by Demosthenes on Mon Jun 02, 2008 10:59 pm, edited 1 time in total.
|
|
Top |
|
 |
slowtolearn
|
Posted: Sat May 31, 2008 8:22 am |
|
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location:
Farmington, MI USA
|
Where did you install the library? When I compile it from source the default is to install in /usr/local/lib, whereas libdvdread is expecting it in /usr/lib. If this is the case on your system a simple move or copy should take care of it...
|
|
Top |
|
 |
bigbro
|
Posted: Sat May 31, 2008 10:06 am |
|
Joined: Sat Dec 24, 2005 11:33 am
Posts: 400
Location:
Kitsap Peninsula, Wa., United States
|
I seem to remember that mythtv as a user account was blocked from SSH by default.
A security fix that came along in R5F27.
|
|
Top |
|
 |
Demosthenes
|
Posted: Sat May 31, 2008 7:04 pm |
|
Joined: Sun Jun 18, 2006 10:54 pm
Posts: 22
|
I can confirm that it was not installed to /usr/local/lib, whereas some files which have a name in common with the library in question were in /usr/lib. So I'm fairly certain that it was, in fact, installed to /usr/lib.
Thank you for the tip.
|
|
Top |
|
 |