[mythtv-users] 0.25 not autodiscoving mount point for bluray discs
Mike Perkins
mikep at randomtraveller.org.uk
Sat May 12 15:04:51 UTC 2012
On 12/05/12 15:37, kenkyee at yahoo.com wrote:
> So I finally got around to fiddling w/ 0.25 to see if I could get it to work
> w/ bluray discs (works fine w/ DVD after I set it to use the /media/dvd mount
> point). The main problem is Ubuntu (12.04 but I think it's universal to the
> latest Linux kernels) mounts blurays into /media/<volumelabel>
> where<volumelabel> is the label of the disc. E.g., a BBC Earch disc shows
> up in /media/LIFE_D3 (another disc would show up in /media/LIFE_D2, etc.).
>
> I set up the AACS keys and KEYDB.cfg and library already, and tested w/
> mythavtest and VLC successfully. If I change the mount point in MythTV
> (under media_settings/player_settings) for blurays to use the correct path
> (/media/LIFE_D3 instead of the /media/cdrom it defaulted to), it also plays
> fine. I can't figure out how to get this to do it automatically for me and
> looking at the code for the unified optical playback menu from the git commit
> for it
> (https://github.com/MythTV/mythtv/commit/7ebbc59dafa3b2b822dff215698876b0df9b6242),
> it doesn't look like it autodiscovers the mount point.
>
> So, I wrote up a simple script that does a cat /proc/mounts, greps for the
> /dev/sr0 line and grabs the 2nd column (which is where it lists
> /media/LIFE_D3) and fires up mythavtest w/ the appropriate argument...I
> tested this script out on the command line. Then I put it in the alternative
> player checkbox in the mythtv media_settings/player_settings and it doesn't
> seem to use it :-P
>
> Has anyone gotten this to work? It doesn't look like mythtv finds the right
> mount point, so if I could get this external script to fire off, I'd be
> happy...
>
This sounds like just the thing udev rules are made for. since you know your
hardware is on /dev/sr0, you ought to be able to write a rule to make a known
symlink whenever a disk is mounted. Something like the way we do them for tuners
which move about at boot time.
--
Mike Perkins
More information about the mythtv-users
mailing list