<!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">
Ma Begaj wrote:
<blockquote
 cite="mid:a72d33330806260430m5d150ef0v109bd6db9b175ba7@mail.gmail.com"
 type="cite">
  <pre wrap="">2008/6/26 Nick Rout <a class="moz-txt-link-rfc2396E" href="mailto:nick.rout@gmail.com">&lt;nick.rout@gmail.com&gt;</a>:
  </pre>
  <blockquote type="cite">
    <pre wrap="">On Thu, Jun 26, 2008 at 11:02 PM, Ma Begaj <a class="moz-txt-link-rfc2396E" href="mailto:derliebegott@gmail.com">&lt;derliebegott@gmail.com&gt;</a> wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">2008/6/26 Nick Rout <a class="moz-txt-link-rfc2396E" href="mailto:nick.rout@gmail.com">&lt;nick.rout@gmail.com&gt;</a>:
      </pre>
      <blockquote type="cite">
        <pre wrap="">On Thu, Jun 26, 2008 at 9:23 PM, Ma Begaj <a class="moz-txt-link-rfc2396E" href="mailto:derliebegott@gmail.com">&lt;derliebegott@gmail.com&gt;</a> wrote:
        </pre>
        <blockquote type="cite">
          <pre wrap="">but it would be maybe even much better if you could put the $trailer
in DB for "filename" instead of $localTrailer, and let mplayer stream
all *.mov files instead of downloading all before someone even knows
whether s/he wants to watch it.

mplayer or a shell script with mplayer command could cache trailers
and save them for the further watching. but this is more complicated
than your script and I even do not know whether "filename" can contain
absolute paths. this would probably be a "misuse" of this field.
          </pre>
        </blockquote>
        <pre wrap="">You could have the scraping script write the network address of the
file to the database and a custom playing script to the database. The
custom playing script would stream the file and write it to the hard
drive at the same time, and then remove the custom viewing script from
the database (so that subsequent plays use the "default"  player.
        </pre>
      </blockquote>
      <pre wrap="">That could also be done if someone only uses "default" player. Nice idea.

But I do not use it for MythVideo because of some problems with subtitles and
because mplayer is much more configurable (position of subtitles,
using of core-avc-for-linux, less cpu...)
      </pre>
    </blockquote>
    <pre wrap="">If playcommand is set to NULL in the database then the system default
player is used, that depends on what you have set it to be, not
necessarily "Internal" - mine is set to mplayer.

what I am saying though is you could easily set up a logic for:

1. not downloading the video file unless someone wants to watch it;

2. after someone has watched (and downloaded) it once, it doesn't need
to be downloaded next time.

this can be done by manipulating the filename and playcommand fields
in the database.

    </pre>
  </blockquote>
  <pre wrap=""><!---->
Sorry, I thought you are talking about "Internal" when you said "default" :)
_______________________________________________
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>
Quite like the stream/cache idea - I'll look into that as I wasn't too
happy about downloading everything, especially as I haven't worked out
a delete mechanism yet..<br>
<br>
I'll have to put it on hold for a day or so - my BE has started failing
with out-of-memory errors regularly since yesterday and I need to sort
that out first.<br>
<br>
John<br>
<br>
</body>
</html>