Difference between revisions of "ROKU HD Frontend"

From MythTV Official Wiki
Jump to: navigation, search
(Created page with 'Category:HOWTO I have figured out how to use the ROKU HD box as a Myth Frontend player. The ROKU box supports a language called BrightScript. It allows you to write custom…')
 
Line 10: Line 10:
  
 
1) A server running apache and php that has the ability to communicate with your mysql server used for the mythbackend.<br>
 
1) A server running apache and php that has the ability to communicate with your mysql server used for the mythbackend.<br>
2) My [http://my.pogoplug.com/share/bVQYdOLPfmunphV0qKpcQQ/roku.zip roku.zip] BrightScript package<br>
+
2) My [http://my.pogoplug.com/share/9sR3JbCBahVp8tMekTY3Tg roku.zip] BrightScript package<br>
3) My [http://my.pogoplug.com/share/bVQYdOLPfmunphV0qKpcQQ/roku.php roku.php] server side script<br>
+
3) My [http://my.pogoplug.com/share/n1d-VzisNjCiX9kP-b_Ceg roku.php] server side script<br>
 
4) Enable development mode on your ROKU box<br>
 
4) Enable development mode on your ROKU box<br>
 
5) Transcode your recordings to H.264 format<br>
 
5) Transcode your recordings to H.264 format<br>
Line 24: Line 24:
 
This script should be placed a public directory on your apache server.  The script needs access to the location of your mythtv recordings.  There are several variables at the beginning of the script that need to be edited for your setup.
 
This script should be placed a public directory on your apache server.  The script needs access to the location of your mythtv recordings.  There are several variables at the beginning of the script that need to be edited for your setup.
  
[http://my.pogoplug.com/share/bVQYdOLPfmunphV0qKpcQQ/roku.php roku.php]<br>
+
[http://my.pogoplug.com/share/n1d-VzisNjCiX9kP-b_Ceg roku.php]<br>
 
<br>
 
<br>
 
The script uses ffmpeg to generate the appropriate file images for the ROKU box.
 
The script uses ffmpeg to generate the appropriate file images for the ROKU box.
Line 46: Line 46:
 
The main ROKU menu will now have a MythTV icon.  Click on that.  It will list your shows.  It may take a few seconds to build the initial list, as the php server side script needs to generate the appropriate image files.  If an image file already exists, then it is not recreated.  Likewise, as you drill down into your episodes, image files are created on the fly.<br>
 
The main ROKU menu will now have a MythTV icon.  Click on that.  It will list your shows.  It may take a few seconds to build the initial list, as the php server side script needs to generate the appropriate image files.  If an image file already exists, then it is not recreated.  Likewise, as you drill down into your episodes, image files are created on the fly.<br>
  
[http://my.pogoplug.com/share/bVQYdOLPfmunphV0qKpcQQ/roku.zip roku.zip]
+
[http://my.pogoplug.com/share/9sR3JbCBahVp8tMekTY3Tg roku.zip]
  
 
Good Luck!
 
Good Luck!

Revision as of 22:30, 29 August 2010


I have figured out how to use the ROKU HD box as a Myth Frontend player.

The ROKU box supports a language called BrightScript. It allows you to write custom applications that can run on the ROKU box, just like Netflix, etc.

I wrote a BrightScript application that can get XML data from the MythTV database via a php script. The php script I wrote auto creates show and episode images along with the approriate meta-data to display in the UI.

What you need

1) A server running apache and php that has the ability to communicate with your mysql server used for the mythbackend.
2) My roku.zip BrightScript package
3) My roku.php server side script
4) Enable development mode on your ROKU box
5) Transcode your recordings to H.264 format
6) ffmpeg to create show and episode images

Development Mode

With the ROKU remote enter Home 3 times, Up 2 times, Right, Left, Right, Left, Right to enable it on your ROKU box.

Server Side PHP Script

This script should be placed a public directory on your apache server. The script needs access to the location of your mythtv recordings. There are several variables at the beginning of the script that need to be edited for your setup.

roku.php

The script uses ffmpeg to generate the appropriate file images for the ROKU box.

Transcode to H.264

I don't know why, but unfortunately, the ROKU Box only supports H.264 formatted videos. I found a script that does the conversion using mencoder

http://eternalvoid.net/tutorials/mythtv-autotranscode/mythtv-transcode-h264.sh
All of your transcoded files should have an mp4 extension.

BrightScript Application

BrightScript applications are distributed as zip files. You will need to edit the config.brs file in the zip file and change the URL for the roku.php file that you installed on your server. Do not delete or add anything else to the zip file.

Next point your web browser at your ROKU box's IP address. You will get a screen that allows you to upload the zip file.

You can telnet to your ROKU box on port 8085 and watch the debug console if you want.

The main ROKU menu will now have a MythTV icon. Click on that. It will list your shows. It may take a few seconds to build the initial list, as the php server side script needs to generate the appropriate image files. If an image file already exists, then it is not recreated. Likewise, as you drill down into your episodes, image files are created on the fly.

roku.zip

Good Luck!