[mythtv-users] How to convert NUV to FLV?

Phill Edwards philledwards at gmail.com
Sat Jun 3 03:05:47 UTC 2006


> Anyways, using the HowTo, I managed to create the flv file just fine,
> but getting the FLVPlayer to read it wasn't working.  The player
> loaded in the browser, but it would not load the file.

I had to change recorded.php as I had a similar problem. I think it
stems from me not defining video_url correctly but being a terrib;e
hacker I hard-coded in the path as dollows in the streamer.php file:

At the magical "line 254" instead of:

                echo '<a
href="'.video_url().'/'.basename($show->filename)."\" name=\"$row\">"
                    .'<img id="'.$show->filename."\"
src=\"".root.cache_dir.'/'.basename($show->filename).'.png" '.$attr.'
border="0">'

put:


  if(!file_exists('data/recordings/'.basename($show->filename).'.flv')){
    echo '<a href="'.video_url().'/'.basename($show->filename)."\"
name=\"$row\">";
  } else {
    echo '<a href="/mythweb/data/flashplayer.php?file=/mythweb/data/recordings/'.basename($show->filename).".flv\"
name=\"$row\" target=\"_new\">";
  }
  echo '<img id="'.$show->filename."\"
src=\"".root.cache_dir.'/'.basename($show->filename).'.png" '.$attr.'
border="0">'

That did it for me.

Regards,
Phill


More information about the mythtv-users mailing list