[mythtv-users] MythVideo Try to play .iso, plays DVD instead

Ian Forde ianforde at gmail.com
Sat Jan 1 02:06:10 UTC 2011


On Fri, 2010-12-31 at 14:25 -0800, Robert McNamara wrote:
> On Fri, Dec 31, 2010 at 2:19 PM, Erik Mellquist
> <erik.mellquist at gmail.com> wrote:
> > I've been running Mythbuntu for a few months now and have never been able to
> > get .iso's to play using the Internal player.  I just noticed today that
> > when I try to play any .iso file, myth attempts to play a DVD.  Has anybody
> > else seen this behavior?
> 
> It doesn't attempt to play a DVD, you're misunderstanding the log
> message.  You're trying to play an encrypted ISO in a Storage Group,
> or you're trying to play any ISO on a storage group on a version of
> MythTV less than .24.
> 
> Options are upgrade to .24 (in which case ISOs in Storage Groups will
> work for you assuming your ISOs are unencrypted) or upgrade to .24 AND
> decrypt your ISOs.

After having searched in vain in the list archives for a method to
decrypt DVDs, I found some simple web pages describing how to do so.  I
then wrapped a script around it and have pasted it below.  It's rough,
cheap, and dirty.  And it runs as root.  All you need to do is set the
MAINDIR, MOUNTPOINT, and WORKDIR variables so something you like, then
copy your isos into MAINDIR/isos.  Then you should be able to run the
script.  Note that as I've set them, I'm using different drives for the
isos versus the vobcopy work.  This gets me a performance boost.  Also,
I'm not working with my NAS copies because you'll want to *test* the new
isos before replacing your existing ones... ;)

Standard warranty applies.  (As in, there is no warranty.  It's GPL,
free to use, etc.  If your cat explodes or your couch spontaneously
combusts due to this script, you keep the pieces and the blame... blah
blah...)

	-I

#!/bin/bash

# This script will perform bulk unencryption of DVDs on Linux.  Set the
variables and you can run it.
# Note, however, that the output ISO files are placed in the
relative ../newisos directory from the source
# ISO files.  So you're better off copying the ISOs from your NAS to a
local machine for processing...
# At least in this version of the script, that is...

# Let's define some variables...

# This is where the iso files are!
MAINDIR=/root/NOBACK/proj/decrypt_iso
ISODIR=${MAINDIR}/isos
mkdir -p ${ISODIR} ${MAINDIR}/newisos

MOUNTPOINT=/root/NOBACK/proj/decrypt_iso/mountpoint
mkdir -p ${MOUNTPOINT}

WORKDIR=/var/spool/mythtv3/foo/work
mkdir -p ${WORKDIR}

# Now we just loop through each iso... ;)
cd ${MAINDIR}

for i in ${ISODIR}/*.iso
do
        mount -t iso9660 -o ro,loop "${i}" ${MOUNTPOINT}
        vobcopy -m -i ${MOUNTPOINT} -o ${WORKDIR}
        umount ${MOUNTPOINT}
        VOBDIR=$(ls ${WORKDIR})
        cd "${WORKDIR}/${VOBDIR}"
        NEWISONAME=$(echo "${i}" | sed 's:/isos/:/newisos/:g')
        mkisofs -v -dvd-video -o "${NEWISONAME}" .
        cd ${MAINDIR}
        rm -rf ${VOBDIR}
done




More information about the mythtv-users mailing list