<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
This is exactly what I'm currently doing with my DVD collection. It's
pretty simple to do in Myth, and as is usually the case with Linux,
there's always more than one way. The mounted loopback device is one
way, but as you said, it's not exactly the best having hundreds of iso
mounted and opened all the time. Here's how I did it:<br>
<br>
Create a new file type (you can call it whatever you want, like iso or
dvd) under MythVideo setup. I made mine iso since that's the extension
on the DVD iso anyway. After creating the iso, I keep it in the
directory I specified in MythVideo setup. When you go into Video
Manager, it will add the iso and let you get all the info from IMDB and
all that good stuff. Once it's added, edit the metadata and for the
command, enter 'playiso %s'. The playiso file is kept in
/usr/local/bin and will mount the iso, use xine to play it, and then
unmount it when xine quits. This way you are only mounting the iso
when you need it, and it unmounts as well so it's automatic. I know
how important WAF is, and so far my wife approves of this method.<br>
<br>
So, here's the playiso file:<br>
<br>
--------------- /usr/local/bin/playsio ----------------------<br>
<br>
#!/bin/bash<br>
<br>
mountdir="/mnt/dvd/"<br>
<br>
sudo mount -t auto -o loop,ro $1 $mountdir<br>
echo $mountdir<br>
ls $mountdir<br>
xine -p:fqh -r 4:3 --no-logo --no-splash dvd:///$mountdir<br>
sudo umount $mountdir<br>
<br>
------------------------------------------<br>
<br>
The %s command line variable is what Myth uses to send the filename to
the external script, then the $1 variable in the script will pick that
up and mount the iso in $mountdir, which can be anywhere you want. I
use /mnt/dvd. Also, you need to add whatever user myth is running as
to the /etc/sudoers file. My Myth user is called pvr.... here's that
file:<br>
<br>
--------- /etc/sudoers ----------<br>
<br>
pvr ALL=NOPASSWD: ALL<br>
<br>
-------------------------------------<br>
<br>
It's not as secure as it probably should be by designating ALL to that
user, but I'm not really concerned with that since I'm behind a
firewall.<br>
<br>
Anyway, hopefully this will help. Let me know if you have questions,
and I'm curious to see what opinions others who know better have to say
about this method. I hacked it together over a day or so by different
postings I found around the Internet, but it seems to work really
well. There's only one point of manual input when the iso is
originally added to Video Manager, but other than that it's pretty
automatic. I also saw a posting on the Myth list that added a button
to the MythDVD menu to image a DVD using a Linux program. I don't
remember the details of that now, but you can find it by searching the
archives. I'm currently using Windows and DVD Shrink to create the iso.<br>
<br>
-Michael<br>
<br>
<br>
<br>
Andrew Palm wrote:
<blockquote cite="mid00e901c4c1f6$6eee8ee0$2103c8ad@aae.com.au"
type="cite">
<pre wrap="">Darn, that wasn't what they wanted to hear...
I haven't got my myth setup fully working yet, still playing and hacking it
so I couldn't test it for them.
They have a large number (~100's of ISO'S!!! Crazy I know) so doing a local
loopback isn't a nice way of doing it, and doesn't have the WAF (wife
acceptance factor) as well, by using only the remote and a TV.
I'm sure it could be built in (I'm not saying to do it, just staying it
could be done when a dev person needs this feature) so it reads the info
from the ISO name and then mounts it and plays it via the gui. Saves having
100s of ISOs open and mounted.
Hmmm thinking about it, it could be done, but it would mean leaving all the
ISOs mounted and 'open' which isn't a nice way of doing it and adding new
ones in would mean manually entering them into the system, creating the
loopback and dir system etc.
Thanks
Andrew
</pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:mark@onnow.net">mark@onnow.net</a> [<a class="moz-txt-link-freetext" href="mailto:mark@onnow.net">mailto:mark@onnow.net</a>]
Sent: Thursday, 4 November 2004 9:29 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:apalm@aae.com.au">apalm@aae.com.au</a>; Discussion about mythtv
Subject: Re: [mythtv-users] MythTV and ISOs?
If you mount the ISO to loopback they will just be a local
file so yes.
Mark
Quoting Andrew Palm <a class="moz-txt-link-rfc2396E" href="mailto:apalm@aae.com.au"><apalm@aae.com.au></a>:
</pre>
<blockquote type="cite">
<pre wrap="">Hi there
A friend is looking at mythtv for a video server and has a
</pre>
</blockquote>
<pre wrap="">lot of DVD ISO's
</pre>
<blockquote type="cite">
<pre wrap="">on there network. Can mythtv support playback of these from
</pre>
</blockquote>
<pre wrap="">the ISO file?
</pre>
<blockquote type="cite">
<pre wrap="">Andrew
_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a>
</pre>
</blockquote>
<pre wrap="">
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Michael Segulja
LMD Computing Solutions, Inc.
(281) 376-8181 | Office.
(281) 300-8285 | Mobile
(281) 576-7230 | Fax
<a class="moz-txt-link-freetext" href="http://www.lmdcs.com">http://www.lmdcs.com</a>
|
| To mess up a Linux box, you need to work at it;
| to mess up your Windows box, you just need to work on it.
|         - Scott Granneman, Security Focus
|</pre>
</body>
</html>