<!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">
Nick Rout wrote:
<blockquote
 cite="mid:52bd4a780807041248g266456a3ge5a0e4102cdf7398@mail.gmail.com"
 type="cite">
  <pre wrap="">On Sat, Jul 5, 2008 at 4:06 AM, John Payne <a class="moz-txt-link-rfc2396E" href="mailto:mythtv@payne.ch">&lt;mythtv@payne.ch&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">John Payne wrote:



Now we see the fundamental problem inherent in the system....
I assumed that if I create a nice record in the videometadata table then it
will appear in the Video library. Unfortunately Mythvideo seems to scan the
video folders then gets the metadata from the table. As a result I can't
select the new trailers as thee are no files....

All that work for nowt. Thinks: perhaps I could create a dummy file with
touch?

:-(

John

    </pre>
  </blockquote>
  <pre wrap=""><!---->
Yes you can use a dummy file. At one stage I had a dummy file with a
custom play command to get NASATv streamed.
_______________________________________________
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>
Probably the last reply on this thread. I've attached the latest
version (I assume the attachment stays).<br>
<br>
If it's run in batch mode with streaming option, ie -b -s it creates a
dummy video file containing the URL of the trailer - this ensures that
the entry is shown in Mythvideo. It also sets the palcommand to call
this script with options -p -i &lt;intid&gt;, where &lt;intid&gt; is
the primary key of the videometadata record.<br>
When the user selects the trailer in Mythvideo the script gets the URL
from the file, streams it with mplayer, then downloads the trailer (I
couldn't stream and download with 1 command). Finally it clears the
playcommand so future selection will run with the Internal player (or
the player defined for mov files).<br>
<br>
BUT: at the moment I'm running the batch without the -s option ie
download each trailer during the nightly cron trigger. The
stream/download is nice space wise, but not very user-friendly at the
moment as you have to wait for the download to complete after watching
the trailer before you can move to another selection. I need t kick off
the download in the background, which implies a more complex monitoring
in case it fails. Ideally it should be a real plugin rather than a
mis-use of Mythvideo<br>
<br>
So if any one wants to give it a go let me know how you get on. The
video &amp; poster directories are still hard-coded. It was interesting
to implement<br>
<br>
John<br>
</body>
</html>