[mythtv-users] MythTV and ISOs?

Andrew Palm apalm at aae.com.au
Wed Nov 3 23:25:46 UTC 2004


Hi Michael,

Well sounds like you have done a good job of getting this up and working. It
seems like this would be a good way of doing it and better than having the
ISOs open.

Like I said, my myth machine is a work in progress at the moment, but once
its up I will give it a go (can demo to a friend then) and see how it works.

It sounds like most of the leg work is done and having this merged into the
current code would be a great help to a lot of people, I was surprised that
it wasn't already a feature request that has been filled in the past. Its a
feature I could see myself using in the future as well.

Glad someone else knows how important WAF is ;)

Andrew


  -----Original Message-----
  From: Michael Segulja [mailto:msegulja at lmdcs.com]
  Sent: Thursday, 4 November 2004 10:08 AM
  To: apalm at aae.com.au; Discussion about mythtv
  Subject: Re: [mythtv-users] MythTV and ISOs?


  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:

  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.

  So, here's the playiso file:

  --------------- /usr/local/bin/playsio ----------------------

  #!/bin/bash

  mountdir="/mnt/dvd/"

  sudo mount -t auto -o loop,ro $1 $mountdir
  echo $mountdir
  ls $mountdir
  xine -p:fqh -r 4:3 --no-logo --no-splash dvd:///$mountdir
  sudo umount $mountdir

  ------------------------------------------

  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:

  --------- /etc/sudoers ----------

  pvr   ALL=NOPASSWD: ALL

  -------------------------------------

  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.

  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.

  -Michael



  Andrew Palm wrote:
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



  -----Original Message-----
From: mark at onnow.net [mailto:mark at onnow.net]
Sent: Thursday, 4 November 2004 9:29 AM
To: apalm at aae.com.au; 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 <apalm at aae.com.au>:

    Hi there

A friend is looking at mythtv for a video server and has a
      lot of DVD ISO's
    on there network. Can mythtv support playback of these from
      the ISO file?
    Andrew

_______________________________________________
mythtv-users mailing list
mythtv-users at mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


_______________________________________________
mythtv-users mailing list
mythtv-users at mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



--


Michael Segulja
LMD Computing Solutions, Inc.
(281) 376-8181 | Office.
(281) 300-8285 | Mobile
(281) 576-7230 | Fax
http://www.lmdcs.com

|
| 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
|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20041104/e85ec0bd/attachment.html


More information about the mythtv-users mailing list