[mythtv] DVD iso image autoloader
Steven
mythmail at richardstraat.homedns.org
Tue Sep 21 04:17:08 EDT 2004
Richard wrote:
> Hello.
>
> I have a large collection of DVD's and I'd like to create a jukebox.
> Hard Drive space isn't a concern.
>
> What I want to do is create a DVD image onto the hard disk
> and have MythTV autoload that image either directly or via a loop back
> and have the DVD function as if it where in any sort of DVD player.
>
> Is this currently possible?
> if not, what would be necessary to make something like this feesable?
>
> Thanks,
> Rich.
>
>
Maybe something for the userlist but :
I've set up my myth system to do that.
I have a script in the optical menu that will make a full iso backup of
a dvd and place it in my mythvideo folder.
I've also made a isoplayback script that loop mounts the iso file and
plays it back in xine.
What you will need to do :
- patch your /usr/share/mythtv/optical_menu.xml with the attached
optical_menu.xml.patch
- get and compile the dvdbackup program from
http://dvd.chevelless230.com/dvdbackup.html and put in /usr/bin
- place the attached playiso and mythdvdbackup scripts in /usr/bin and
make them executable. Read more instructions/comments inside the scripts.
- add the .iso extention to mythvideo with player command
"/usr/bin/playiso %s"
et voila. You have your DVD jukebox with nice covers from imdb in myhvideo.
Steven
ps. I've read somewhere that newer versions of xine-ui (or lib) can play
iso files without mounting them first (like mplayer does but without
support for menu's wich is why you are making a full backup in the first
place...) but I haven't tried that yet. That would make the above even
easier :-)
-------------- next part --------------
--- optical_menu.xml 2004-09-11 16:31:12.000000000 +0200
+++ optical_menu.xml 2004-08-20 14:30:53.000000000 +0200
@@ -26,7 +26,7 @@
<text lang="ES">Ver DVD</text>
<text lang="CA">Veure DVD</text>
<text lang="FR">Lecture DVD</text>
- <text lang="NL">VCD Afspelen</text>
+ <text lang="NL">DVD Afspelen</text>
<text lang="JA">DVD再生</text>
<action>JUMP Play VCD</action>
<depends>mythdvd</depends>
@@ -50,15 +50,6 @@
</button>
<button>
- <type>DVD_RIP</type>
- <text>Full DVD Copy</text>
- <text lang="NL">DVD volledig copieren</text>
- <action>EXEC /usr/bin/mythdvd2iso</action>
- <depends>mythdvd</depends>
- </button>
-
-
- <button>
<type>MUSIC_RIP</type>
<text>Import CD</text>
<text lang="IT">Importa un CD</text>
-------------- next part --------------
#!/bin/bash
# iso file is parameter so use "playiso %s " as mythtv play command
mountdir="/mnt/isodvd/"
#make sure this exists
sudo mount -o loop -t udf $1 $mountdir
# make sure you have a line like "mythtv ALL=NOPASSWD:/sbin/mount,/sbin/umount"
# in your /etc/sudoers file if you run mythtv with the mythtv user
echo $mountdir
ls $mountdir
xine -pfhq --no-splash dvd://$mountdir
sudo umount $mountdir
-------------- next part --------------
#! /bin/sh
#script to backup full dvd's including menu's
#needs the dvdbackup tool from http://dvd.chevelless230.com/dvdbackup.html
# set these to match your system settings
dvddevice="/dev/dvd"
# temp storage while creating iso image (could use tmp if that is on a big partition)
dvdstorage="/mnt/store/dvdrip"
rm -rf /mnt/store/dvdrip/*
mythvideodir="/mnt/store/video/dvdbackup"
##################################
#make a complete copy of the dvd
dvdbackup -i $dvddevice -o $dvdstorage -M
naam=`ls $dvdstorage`
#get the DVD name from the foldername created by dvdbackup
echo $dvdstorage"/"$naam
echo $mythvideodir"/"$naam
mkisofs -dvd-video -udf -V "Backup DVD" $dvdstorage"/"$naam > $mythvideodir"/"$naam".iso"
rm -rf /mnt/store/dvdrip/*
More information about the mythtv-dev
mailing list