LinHES Forums
http://forums.linhes.org/

Multiple DVD problem
http://forums.linhes.org/viewtopic.php?f=5&t=15032
Page 1 of 1

Author:  beerisgoodmate [ Tue Apr 24, 2007 11:25 pm ]
Post subject:  Multiple DVD problem

On a fresh Install of r5e50 I installed with a single DVD drive (rw), I since added another dvd drive (rom).

I can't play DVD's on the DVDRW (which is the better drive, playing of the DVD rom is not practical due to the age / condition of the drive), and inserting a DVD in this drive brings up the contents of the DVD (audio TS and video TS).

I suspect the problem is as follows:


Code:
root@mythtv:~# ls -la /dev/cdr*
lrwxrwxrwx 1 root root 3 Apr 25 14:23 /dev/cdrom -> hdd
lrwxrwxrwx 1 root root 3 Apr 25 14:23 /dev/cdrw -> hdc
root@mythtv:~# ls -la /dev/dvd*
lrwxrwxrwx 1 root root 3 Apr 25 14:23 /dev/dvd -> hdd
lrwxrwxrwx 1 root root 3 Apr 25 14:23 /dev/dvdrw -> hdc


Possibly I need to change the udev rules? Currently they are:
Code:
# LITE-ON_DVDRW_LH-18A1P (pci-0000:00:08.0-ide-1:0)
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:08.0-ide-1:0", SYMLINK+="cdrom",
 ENV{GENERATED}="1"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:08.0-ide-1:0", SYMLINK+="cdrw",
ENV{GENERATED}="1"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:08.0-ide-1:0", SYMLINK+="dvd", E
NV{GENERATED}="1"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:08.0-ide-1:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"


Any ideas?

Thanks![/code]

Author:  manicmike [ Wed Apr 25, 2007 12:06 am ]
Post subject:  Re: Multiple DVD problem

beerisgoodmate wrote:
On a fresh Install of r5e50 I installed with a single DVD drive (rw), I since added another dvd drive (rom).
<snip>
Any ideas?

Thanks![/code]


The single DVD drive gets detected and configured when you install. If you add another drive later on, you have to do a bit of correction.
Have you updated your /etc/fstab? It should list the correct mount point for both drives. If it doesn't, you will have to fix it.
From the above code, both drives are on your secondary IDE bus. The later ROM was set to slave, yes? What are the permissions on /dev/hdd? If it's 644 it's fine (KM defaults to root:cdrom 660 and mythtv is a member of the cdrom group by default). Your /etc/fstab should look something like

Code:
/dev/hdd /dvdrom auto defaults,ro,user,noexec,noauto 0 0


You can replace hdd with dvd, but make sure the mount point (/dvdrom) exists.

In mythfrontend -> Setup/Utilities -> media settings -> DVD settings -> General Settings you need to set this drive as the default drive for DVDs. Change /dev/dvd and /dev/vcd (OK so you don't ever play vcds) to your added ROM drive. While you're in this screen, you may wish to change the "On DVD Insertion:" setting. I found that "Do Nothing" works pretty well. It doesn't assume what you want to do next.

I'm not sure why you've done this (which drive is shagged? Why don't you get a new one?) but it should be easily fixed. I'm sure you know that more disks means more power used, leading to a hotter, noisier and less reliable machine, but I did all this when I was experimenting, too :-)

You MUST be Australian with that username. Why don't you update your profile?

Cheers

Mike

Author:  beerisgoodmate [ Wed Apr 25, 2007 1:05 am ]
Post subject: 

Hi Mike,

Thanks for the reply,

Quote:
Have you updated your /etc/fstab?


I hadn't done that, fixed now, should that matter? knoppmyth seems to mount it under /media anyway, and DVD movies should not be mounted at all IIRC.

Quote:
The later ROM was set to slave, yes? What are the permissions on /dev/hdd? If it's 644 it's fine (KM defaults to root:cdrom 660 and mythtv is a member of the cdrom group by default).


Code:
brw-rw---- 1 root cdrom 22,  0 Apr 25 14:23 /dev/hdc
brw-rw---- 1 root cdrom 22, 64 Apr 25 14:23 /dev/hdd


Which should be fine...


Quote:
In mythfrontend -> Setup/Utilities -> media settings -> DVD settings -> General Settings you need to set this drive as the default drive for DVDs. Change /dev/dvd and /dev/vcd (OK so you don't ever play vcds) to your added ROM drive.


It would be nice to be able to play off both DVD drives (though I guess this is not necessary). Mplayer is quite happy to play dvd's as /dev/dvd*, but it seems xine doesn't like that, after a little playing around, telling xine to play dvd://dev/dvdrw does the trick.

Quote:
While you're in this screen, you may wish to change the "On DVD Insertion:" setting. I found that "Do Nothing" works pretty well. It doesn't assume what you want to do next.


I did that, but I still get a the file browser thingy opening when a DVD is inserted, turning of 'monitor CD/DVD' fixes this, but also means there doesn't seem to be anyway to browse a data disk with this setting turned off. Any idea how to tweak this? I'm not too worried if a data disk is opened on insertion, as I probably want this. But

Quote:
I'm not sure why you've done this (which drive is shagged? Why don't you get a new one?) but it should be easily fixed. I'm sure you know that more disks means more power used, leading to a hotter, noisier and less reliable machine, but I did all this when I was experimenting, too Smile


I did it because the (dvdrom) drive was there, and I though it my come in handy for duplicating CD's and DVD's in one go. The drive is ok, just doesn't fit great in the HTPC case, which is a silverstone LC17. The button doesn't line up perfectly, and sometimes the drive cover (which is aluminium and sticks to the drive with double sided tape) is to heavy for the drive. Think one drive makes a difference? Hadn't though about the added heat and noise, there is no problem at the moment, but it is pretty chilly at the moment. I have a good case and PSU, and an AMD cnq cpu so I am not too worried.

Quote:
You MUST be Australian with that username. Why don't you update your profile?


Yeah, I'm a Newie local, the user name is reminisent of when I was an undergrad engineer...

Author:  manicmike [ Wed Apr 25, 2007 4:39 am ]
Post subject: 

beerisgoodmate wrote:
Hi Mike,

Thanks for the reply,

Quote:
Have you updated your /etc/fstab?


I hadn't done that, fixed now, should that matter? knoppmyth seems to mount it under /media anyway, and DVD movies should not be mounted at all IIRC.

Quote:
The later ROM was set to slave, yes? What are the permissions on /dev/hdd? If it's 644 it's fine (KM defaults to root:cdrom 660 and mythtv is a member of the cdrom group by default).


Code:
brw-rw---- 1 root cdrom 22,  0 Apr 25 14:23 /dev/hdc
brw-rw---- 1 root cdrom 22, 64 Apr 25 14:23 /dev/hdd


Which should be fine...


Quote:
In mythfrontend -> Setup/Utilities -> media settings -> DVD settings -> General Settings you need to set this drive as the default drive for DVDs. Change /dev/dvd and /dev/vcd (OK so you don't ever play vcds) to your added ROM drive.


It would be nice to be able to play off both DVD drives (though I guess this is not necessary). Mplayer is quite happy to play dvd's as /dev/dvd*, but it seems xine doesn't like that, after a little playing around, telling xine to play dvd://dev/dvdrw does the trick.

Quote:
While you're in this screen, you may wish to change the "On DVD Insertion:" setting. I found that "Do Nothing" works pretty well. It doesn't assume what you want to do next.


I did that, but I still get a the file browser thingy opening when a DVD is inserted, turning of 'monitor CD/DVD' fixes this, but also means there doesn't seem to be anyway to browse a data disk with this setting turned off. Any idea how to tweak this? I'm not too worried if a data disk is opened on insertion, as I probably want this. But

Quote:
I'm not sure why you've done this (which drive is shagged? Why don't you get a new one?) but it should be easily fixed. I'm sure you know that more disks means more power used, leading to a hotter, noisier and less reliable machine, but I did all this when I was experimenting, too Smile


I did it because the (dvdrom) drive was there, and I though it my come in handy for duplicating CD's and DVD's in one go. The drive is ok, just doesn't fit great in the HTPC case, which is a silverstone LC17. The button doesn't line up perfectly, and sometimes the drive cover (which is aluminium and sticks to the drive with double sided tape) is to heavy for the drive. Think one drive makes a difference? Hadn't though about the added heat and noise, there is no problem at the moment, but it is pretty chilly at the moment. I have a good case and PSU, and an AMD cnq cpu so I am not too worried.


Forgot about that other setting (the "monitor optical drives" one). If you don't really mind, then re-enable both settings. Your DVD will be automatically mounted and the browser will open the mount point. It's what was happening before. You can't easily have the system differentiate between data and movies: I say "easily" - of course you could do it. How good are you with C++? You could get the mythtv source and write a patch. Of course, if you wanted to, you could use your KM box as the development machine, too ;-)

I think you should always rip to disk for a DVD duplication. The reason is that if you are burning while reading and the DVD reader hits a small speck of dirt, it'll go into paranoid mode, re-read like crazy and you may get a buffer under-run on the other drive. DVDs are really very unreliable, and bugger up at the drop of a hat. I'd also be burning at 4x. Mine doesn't go slower than that or I'd be doing 1x.
I was being silly with the heat etc: It doesn't make that much difference.

The LC17 is a great choice. Do you know you can adjust the button positioning? There's a small screw adjuster on the back (access it from inside).
The double-sided tape does seem a bit rubbish, but I guess it's the best they could do and still make it easy to set up.

I concentrate on minimising noise to a stupid extent now, but your setup seems good. What PSU do you have?

Mike

Author:  beerisgoodmate [ Wed Apr 25, 2007 6:45 am ]
Post subject: 

[code]Forgot about that other setting (the "monitor optical drives" one). If you don't really mind, then re-enable both settings. Your DVD will be automatically mounted and the browser will open the mount point. It's what was happening before. You can't easily have the system differentiate between data and movies: I say "easily" - of course you could do it. How good are you with C++? You could get the mythtv source and write a patch. Of course, if you wanted to, you could use your KM box as the development machine, too Wink[/code[

hmmm, maybe if I had a bit more time.... ;-)

[code]I think you should always rip to disk for a DVD duplication.[/code]

That is a good point, though I was thinking for CD duplication only, And I have many movies which span 2 CDs, Would be nice to be able to que the CDs, though since the above sounds difficult this may be even more so!.

The difficulty in the secend drive wasn't apparent till I stuck it in, It is fine at the moment, but I suspect there would be problems with, umm users who arn't me, with two drives and only one plays DVDs ;-)

Quote:
The LC17 is a great choice. Do you know you can adjust the button positioning? There's a small screw adjuster on the back (access it from inside).
The double-sided tape does seem a bit rubbish, but I guess it's the best they could do and still make it easy to set up.


Thanks for the tip, I think I may have known, but couldn't be bothered for the spare CD drive. The LC17 is a good case, lots of room, lots of expansion, though very tall. My original choice was a coolermaster CM media 260, which I suspect is a better built case, is slighly deeper, but slimline and looks very nice. The CM 260 is sitting in a box above the cupboard as my hardware doesn't quite fit, in fact very little hardware fits correctly in this case, depending what you want.

Quote:
I concentrate on minimising noise to a stupid extent now, but your setup seems good. What PSU do you have?


Yes, noise is a killer for me too, The CD drive is loud, but only when a divx is spinning up, then the HD, but only on boot. The stock AMD fan is pretty quiet with cnq and qfan enabled. The PSU is a wintec I believe.... Cost about $55 from a puter fair, 120mm fan, metal looks goldish in colour. Couln't tell you much more without opening the case... which would involoe a lot of fiddling around...

The case fans are a little loud (by my standard ;-)) but not to loud, I have only one plugged in, and my asus board is supposed to control the speed but doesn't for some reason. I suspect the CM media would have been a quieter case, as was said in review, and seem better built, but I figure the LC17 will fit anything I throw at it, now and in the future.

Author:  nigelpearson [ Wed Apr 25, 2007 4:48 pm ]
Post subject: 

beerisgoodmate wrote:
It would be nice to be able to play off both DVD drives

I am coding this up in MythTV at the moment, but it won't be in KnoppMyth for a while. http://svn.mythtv.org/trac/ticket/3077

You may be able to change the Xine/mplayer command so that it auto-located the dvd drives, but I dunno how. Sorry.


Quote:
I still get a the file browser thingy opening when a DVD is inserted
DVD is being mounted with the wrong filesystem type. See here:
http://mysettopbox.tv/phpBB2/viewtopic. ... ight=fstab

Author:  beerisgoodmate [ Wed Apr 25, 2007 11:47 pm ]
Post subject: 

Quote:
I am coding this up in MythTV at the moment, but it won't be in KnoppMyth for a while. http://svn.mythtv.org/trac/ticket/3077


I am new to knoppmyth (and I guess debian), and used to gentoo, but could I not simple upgrade mythtv? Or will this break knoppmyth?

Quote:
You may be able to change the Xine/mplayer command so that it auto-located the dvd drives, but I dunno how. Sorry.


Well, /dev/dvd* will try /dev/dvd then /dev/dvdrw in mplayer, but xine (which has menu support) doesn't like that.

Quote:
DVD is being mounted with the wrong filesystem type. See here:
http://mysettopbox.tv/phpBB2/viewtopic. ... ight=fstab


Thanks :-) that did the trick.

Author:  nigelpearson [ Thu Apr 26, 2007 7:02 am ]
Post subject: 

beerisgoodmate wrote:
Quote:
I am coding this up in MythTV at the moment, but it won't be in KnoppMyth for a while. http://svn.mythtv.org/trac/ticket/3077


I am new to knoppmyth (and I guess debian), and used to gentoo, but could I not simple upgrade mythtv?
You could, but that won't help - the latest MythTV (SVN) doesn't contain a finished patch yet. I am still working on it (i.e. that track ticket isn't resolved or closed yet!)

Quote:
Well, /dev/dvd* will try /dev/dvd then /dev/dvdrw in mplayer, but xine (which has menu support) doesn't like that.
Indeed. Most AV tools only like one drive on the command line.

You could perhaps add a second menu item "Play DVD in 2nd drive", that does EXEC xine dvd://dev/hdd
Untested, but something like tht may work?

Author:  beerisgoodmate [ Thu Apr 26, 2007 8:18 am ]
Post subject: 

Quote:
You could, but that won't help - the latest MythTV (SVN) doesn't contain a finished patch yet. I am still working on it (i.e. that track ticket isn't resolved or closed yet!)


no worries, but (slightly off topic) does that mean I can upgrade the various components of my knoppmyth without breaking the installation? menus, shortcups etc? If so that is encouraging. On the same hardware knoppmyth is running slightly better (i.e. my remote works!) than the gentoo instalation i deleted, so it will be nice to know I can still be close to cutting edge softwre without losing the convinience of knoppmyth.

Quote:
You could perhaps add a second menu item "Play DVD in 2nd drive", that does EXEC xine dvd://dev/hdd
Untested, but something like tht may work?


I didn't even know you could change the menus! I'll have a google and a look, otherwise any hints on how to edit this?

thanks

Author:  manicmike [ Thu Apr 26, 2007 7:13 pm ]
Post subject: 

beerisgoodmate wrote:

I didn't even know you could change the menus! I'll have a google and a look, otherwise any hints on how to edit this?

thanks


Not hard at all. In fact, you can edit everything one way or another. This is the easy stuff, since it's just xml.

Look at /usr/share/mythtv for the myth xml code.

Menus are theme specific, so if you know which you're using, go in to themes/ and edit the menu for yours.

Cheers

Mike

Author:  nigelpearson [ Sun Apr 29, 2007 6:38 pm ]
Post subject: 

beerisgoodmate wrote:
(slightly off topic) does that mean I can upgrade the various components of my knoppmyth without breaking the installation?

Yes, if you are careful.

1) I make sure that I copy the menus before I start modifying them:
Code:
cp -pr /usr/share/mythtv/* /home/mythtv/.mythtv
In fact, the frontend will use these new copies, so if you modify these, they will also be saved when you run the Backup menu item, and available after KnoppMyth upgrades, et c.

2) I also backup the old binaries/libraries:
Code:
sudo mkdir /usr/lib/old-libmyth
sudo mv /usr/lib/libmyth* /usr/lib/old-libmyth
sudo mv /usr/lib/mythtv /usr/lib/old-mythtv
before I try a new install built from more recent code.



P.S. MythTV SVN now has multiple CD/DVD drive support for Music and DVDs.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/