[mythtv-users] mythweb thumbnail/streaming issue

brad dreisbach bradd at ameri.ca
Thu Feb 14 20:25:15 UTC 2008


On Feb 6, 2008, at 7:33 PM, David Muench wrote:

> On Jan 28, 2008, at 2:53 PM, brad dreisbach wrote:
>
>> So in mythweb when i go to the "Recorded Programs" tab, all of my
>> recorded programs from
>> both backends show up properly with thumbnails.  My issue is when I
>> click on one of the programs
>> recorded on the slave backend to bring up the "Program Detail" page.
>> When I do this I get
>> no thumbnail and a 0 byte file is created in the mythweb cache
>> directory.  looking at the page
>> source i see this:
>
> Might be related to this ticket:
>
> http://svn.mythtv.org/trac/ticket/4453

I dont think its 4453.  I'm starting to think that the
mythweb host needs the storagegroup directory from the
slave backend nfs mounted so it can access the files
localally.  I have created a work around by running
mythweb on the slave backend as well as on the master
backend and using the following patch:


Index: mythweb/includes/utils.php
===================================================================
--- mythweb/includes/utils.php	(revision 16014)
+++ mythweb/includes/utils.php	(working copy)
@@ -332,8 +332,8 @@
      // Which protocol should we use for downloads?

          $url = (($_SESSION['stream']['force_http'] || ! 
isset($_SERVER['HTTPS']))
-                 ? 'http://' . http_host .':'._or($_SESSION['stream'] 
['force_http_port'], '80')
-                 : 'https://'. http_host .':'._or($_SESSION['stream'] 
['force_http_port'], '443')
+                 ? 'http://' . $show- 
 >hostname .':'._or($_SESSION['stream']['force_http_port'], '80')
+                 : 'https://'. $show- 
 >hostname .':'._or($_SESSION['stream']['force_http_port'], '443')
                 )
                 .root."pl/stream/$show->chanid/$show->recstartts";
      // Handle specific file extension modes
Index: mythweb/modules/tv/includes/objects/Program.php
===================================================================
--- mythweb/modules/tv/includes/objects/Program.php	(revision 16014)
+++ mythweb/modules/tv/includes/objects/Program.php	(working copy)
@@ -573,7 +573,7 @@
          // Make the request and store the result
              $pngfile = fopen($pngpath, 'wb');
              fwrite($pngfile,
-                   @file_get_contents("http://$host:$port/Myth/ 
GetPreviewImage"
+                   @file_get_contents("http://$this->hostname:$port/ 
Myth/GetPreviewImage"
                                      ."?ChanId=$this->chanid"
                                      .'&StartTime 
='.unix2mythtime($this->recstartts)
                                      ."&Height=$height"

I can now download the mpg directly, stream via asx, or stream via flash
from either backend without using nfs.  the 0 byte thumbnail issue
is also resolved.



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



More information about the mythtv-users mailing list