My review of XBMC on Amazon’s Fire TV can be summed up easily, I’ve moved from my custom built HTPC to using a Fire TV for my day to day TV watching.

Commonly asked question I see about the Fire TV

  • It’s easy to install.
  • You don’t need to root the Fire TV
  • I have it plugged into a 5.1 surround system via HDMI. I didn’t have to go to any trouble to make it work.
  • I have about 3TB of media on an SMB share. My library is shared via MySQL. I had no problems getting this to work with the Fire TV. Navigating the library is just as snappy as my old HTPC.
  • The Fire TV will play a 1080p 5.1 surround sound movie without issue.
  • The Fire TV will play a 1080p MPEG-2 stream from a HDHomerun device without issue.
  • The Fire TV will play an USTVNow stream without issue.
  • The default remote map isn’t good. There are much better keymaps out there.
  • I could not get it to work correctly with a FLIRC and a Harmony remote. (See Cons below)
  • You can side load emulators. Anything up the PS1/N64 generation works. Though you’ll want to root it so you can use storage devices other than the built-in. This is much, much easier than getting emulators to work on other XBMC hardware/operating systems.
  • XBOX 360 and PS3 controllers work.
  • It’s by far the easiest way to get Netflix, Amazon Prime, and XBMC all on the same box.

Pros for the Fire TV

  • It makes no noise
  • It doesn’t produce any heat
  • It’s small. I have it hidden behind a photo 5×6 frame on my entertainment center.
  • It’s cheap! The Fire TV is $100. I spent about $375 on my HTPC less than a year ago. I thought it was cheap at the time.
  • You don’t have to jack with it much to get XBMC going. No custom hardware to put together, no OS install, ect, ect.

Cons for the Fire TV


The Amazon Fire TV is the best hardware to run XBMC on.

I’ve changed the USTVnow script from my previous post. I needed it to work without XBMC running or even installed.

The script below will login into USTVnow, grab the stream info for each channel you have access to and then write out .strm files to a directory of your choosing. To use it just change email, password, and stream_dir to your own credentials.

I have the script set to run via CRON every thirty minutes. Then I have the scripts stream_dir setup as a source in XBMC so I can play the stream files.

The script is pure Python and should run on anything that will run Python. No need to have XBMC working.


7/14/15: I’ve updated the script to work with USTVNOW’s website changes.

    ustvnow XBMC Plugin
    Copyright (C) 2011 t0mm0

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <>.

20131227 - Modified by Dean Vaughan - to work from command line and output stream files to a directory
20140610 - Modified by Dean Vaughan - to work without XBMC running or installed

email = 'youemail'
password = 'yourpassword'
stream_dir = 'Streams'

stream_type = 'rtmp'
quality = '1'

import cookielib
import os
import re
import urllib, urllib2
import sys

class Ustvnow:
    __BASE_URL = ''
    def __init__(self, user, password):
        self.user = user
        self.password = password

    def get_channels(self, quality=1, stream_type='rtmp'):
        html = self._get_html('iphone_ajax', {'tab': 'iphone_playingnow',
                                              'token': self.token})
        channels = []
        for channel in re.finditer('class="panel".+?title="(.+?)".+?src="' +
                                   '(.+?)".+?class="nowplaying_item">(.+?)' +
                                   '<\/td>.+?class="nowplaying_itemdesc".+?' +
                                   html, re.DOTALL):
            name, icon, title, plot, url = channel.groups()

            #tmp work around till ustvnow stablizes changes
            name = name.replace('\n','').replace('\t','').replace('\r','').replace('<fieldset> ','').replace('<div class=','').replace('>','').replace('"','').replace(' ','')
            if not name:
                name = ((icon.rsplit('/',1)[1]).replace('.png','')).upper()
                name = name.replace('WLYH','CW').replace('WHTM','ABC').replace('WPMT','FOX').replace('WPSU','PBS').replace('WHP','CBS').replace('WGAL','NBC').replace('WHVLLD','MY9')

                if not url.startswith('http'):
                    now = {'title': title, 'plot': plot.strip()}
                    url = '%s%s%d' % (stream_type, url[4:-1], quality + 1)

                   # if self.premium == False:
                   #     if name not in ['CW','ABC','FOX','PBS','CBS','NBS','MY9']:
                   #         raise

                    print name
                    channels.append({'name': name, 'url': url,
                                   'icon': icon, 'now': now})
        return channels

    def _build_url(self, path, queries={}):
        if queries:
            query = build_query(queries)
            return '%s/%s?%s' % (self.__BASE_URL, path, query)
            return '%s/%s' % (self.__BASE_URL, path)

    def _fetch(self, url, form_data=False):
        if form_data:
            req = urllib2.Request(url, form_data)
            req = url
            response = urllib2.urlopen(url)
            return response
        except urllib2.URLError, e:
            return False

    def _get_html(self, path, queries={}):
        html = False
        url = self._build_url(path, queries)

        response = self._fetch(url)
        if response:
            html =
            html = False

        return html

    def _login(self):
        self.token = None
        self.cj = cookielib.CookieJar()
        opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cj))

        url = self._build_url('iphone_login', {'username': self.user,
                                               'password': self.password})
        response = self._fetch(url)
        #response =

        for cookie in self.cj:
            if == 'token':
                self.token = cookie.value

def build_query(queries):
    return '&amp;'.join([k+'='+urllib.quote(str(v)) for (k,v) in queries.items()])

ustv = Ustvnow(email, password)
channels = ustv.get_channels(int(quality), stream_type)

    old_streams = os.listdir(stream_dir)
    for old_stream in old_streams:
        if 'USTV-' in old_stream:
          os.remove(stream_dir + '/' + old_stream)

for c in channels:
    title = c['now']['title']
    title = re.sub('[^\w\-_\. ]', '', title)
    title = title.replace(' amp ', ' and ')
    f = open(stream_dir + '/USTV-' + c['name'] + ': ' + title + '.strm', 'w')

I was asked to give a run down of the XBMC computer I am currently using. It was assembled from parts and is running openELEC.

HTPC XBMC Computer

The case looks good.

My XBMC PC is capable of:

  • Playing 1080i video with no stutter or buffering. (Both local files and files from a Windows file server)
  • Playing 1080i streams of local cable TV channels.
  • Recoding those streams DVR style.
  • Playing 720p streams of premium cable TV channels via USTVNOW. (The 720p limit is from USTVNOW, not the computer)
  • Using my surround sound system for 5.1 sound.
  • Playing older video games from Super Nintendo, NES, Game Boy, Genesis, ect.
  • Throwing some colors on the wall with a Light Pack.

Parts List:

Total Cost: $638.26

Not cheap. You get what you pay for.

Some notes on the hardware:

My previous HTPC was an ASROCK Ion 330. It was prone to overheating. A lot of this was due to the small case size. The CPU fan lay under a spinning hard drive with a 1/4 inch gap. The fan blew hot air onto a hard drive producing its own heat. This was then blown out of the case by a 25mm fan. Because of the cramped quarters I didn’t have any other options for larger fans or moving parts. While the PC never got hot enough to shutdown it did get hot enough to make me worry about.

The case on this XBMC PC is roomy. The fan from the CPU isn’t constricted. It has a 65mm case fan with room for a second. I’m using an SSD drive as they produce little to no heat. The SSD has the added benefit of being silent. The PC as a whole is quiet enough that you cannot hear it without putting your ear near the case. Even under a load it doesn’t get hot enough to spin the fans up. Idle temperature is around 40C, loaded is around 55C.

The CPU has an integrated GPU. It comes with a heat sink and fan in the box. The CPU is overkill for playing videos. I went big with the CPU because someday I plan on emulating N64 and Playstation games. Possibly even Game Cube.

The HDHomeRun is for watching cable TV. If that’s not applicable to you, then no need to buy one.

The lighting arrangement can be had in a DIY kit for $50.


Putting it all together gets you this:

My camera is unable to capture the lighting effect. Here is a video from the vendor showing how it looks.
ADAlight demo from adafruit industries on Vimeo.



Getting the Free Cable addon to work under OpenELEC takes a little bit of command line work. You’ll need to install some Python modules and create some directories on your OpenELEC computer.

Here’s what you need to do to get Free Cable working:

Install the Blue Cop Repository

From that repository, install Free Cable.

Open the configuration for Free Cable and then save it as is.

SSH to your OpenELEC computer. Run the following on the command line:

cd beautifulsoup4-4.3.2/
python install --prefix=/storage/usr
cp -R /storage/usr/lib/python2.7/site-packages/bs4/ /storage/usr/lib/python2.7/site-packages/beautifulsoup

tar zxvf demjson-1.6.tar.gz
cd demjson-1.6
python install --prefix=/storage/usr

mkdir /storage/.xbmc/addons/
mkdir /storage/.xbmc/addons/

touch /storage/.config/
chmod 755 /storage/.config/

Once that’s done edit /storage/.config/ and add

export PYTHONPATH=$PYTHONPATH:/storage/usr/lib/python2.7/site-packages/

If you already have ‘#!/bin/sh’ in the file, don’t add is again.

Reboot. Free Cable should now work.

I was having trouble keeping hdhomerun_recorder always running under openELEC. Sometimes it wouldn’t start at boot, or sometimes it would randomly stop running, causing my shows not to be recorded. Below is a short Python script I came up with. It runs under CRON every five minutes. If hdhomerun_recorder isn’t running, it starts it. I have not had a problem since.

import os

find = 'hdhomerun_recorder'
start = '/storage/etc/hdhomerun_recorder/ &'

f = os.popen('ps ax | grep -v grep | grep "' + find + '"')
out =
if not find in out:
  print 'Running: ' + start

What you see here is the act of a desperate man who got sick of trying to make XBMC’s PVR support work. I tried for several days to get tvheadend to work with my HDHomeRun. In the end I gave up and went my way. What you see may be a mess to setup but it works very well for me.

When all setup XBMC will have a directory full or playlist files representing your channels/streams. The playlist files will be named after the channel they represent along with the current and next show that is going to play.

Here is a video to show what I mean:

Quick note on my setup; I have an HDHomeRun receiving QAM channels from Cox cable. These channels come in as by product of the Internet service I receive. Via Cox and the HDHomeRun I receive local network stations. I also have an USTVNOW account for basic cable channels. Why do I use USTVNOW instead of getting basic cable from Cox? USTVNOW is about $10 a month cheaper and receives more channels.

Installation is a crazy mess. I didn’t expect to release this but I figured at the least the USTVNOW streams will be useful to someone.

I did all of this under openElec. XBMCbuntu works. Other Linux based installs should work. Windows will probably work if you install Python and something similar to CRON.


For USTV: Just make sure you have the USTVNOW plugin working. XBMC HUB Article About It

For HD Home Run: Make sure its connected to your network and can view some channels. Have hdhomerun_config working. (Part of libhdhomerun: Download It


  • Download this repo. (Direct link to zip)
  • Unzip it and copy everything into /storage/dean. If you’re the picky sort this is where you begin to change pathnames. For narcissistic reasons I’m going to assume you’ve put everything in /storage/dean.
  • Make a directory: /storage/Streams. This is where all your stream files will go. Add that directory as video source in XBMC.


  • We’re going to add a script to the USTVNOW addon to download a list of channels and turn them into stream files (.strm). We’re going to place this in CRON so it updates itself.
  • Edit /storage/dean/ and change the email and password variables to your USTVNOW credentials.
  • Move /storage/dean/ to the directory your USTVNOW addon resides in. For me its /storage/.xbmc/addons/ustvnow/
  • Make sure it works by running /storage/dean/ After that you should see a bunch of stream files in /storage/Streams. Each file should represent one of your USTVNOW channels.
  • Add a cron job so that /storage/dean/ is ran every thirty minutes. Example in /storage/dean/crontab.

Go to your stream video source in XBMC. You should be able to play each file in there.

HDHomeRun Streams

  • We’re going to build stream (.strm) files for each channel your HDHomeRun receives.
  • On a Windows box open up HDHomeRun Setup and look at the tab that shows all of your channels, Digital Cable for me.
  • Write down the channel numbers and what channel they represent. (FOX, ABC, ect)

  • Two options now. Build the stream files by hand or use HDHomeRun Stream Builder to do it for you.
  • If you’re doing it by hand and pretending we’re working on the file for CBS in Fort Smith, AR:
  • Create a file named KFSMDT.strm
  • Open the file up and add this: hdhomerun://103D1F0E-0/tuner0?channel=auto:92&program=1
  • Notice a few things you’ll need to change.
  • 103D1F0E-0 is the ID of my tuner. You’ll need to change it to your tuner’s ID.
  • tuner0 is the first tuner on my HDHomeRun. The second tuner is tuner1. I watch TV on tuner0. I record TV on tuner1.
  • channel=auto:92&program=1 represents CH92 – 1 from HDHomeRun Setup. Change the 92 and the 1 as appropriate for your channels.
  • Save the file and put it in /storage/dean/Streams-default
  • Repeat this for every channel your HDHomeRun receives.
  • HDHomeRun Stream Builder will automate all of this for you, but it is a PITA to setup. (As if all the above hasn’t been)
  • If you don’t care about having the currently playing show in the file name, copy the all the .strm file you made into /storage/Streams and call it done. Just like the USTVNOW streams they should play as if they were any other video file.

Getting the currently playing show to be in the HDHomeRun stream’s file name

  • Theory behind this is that we’re going to use mc2xml to download TV scheduling information, parse it, and rename our stream files using the info.
  • Get mc2xml working for your zip code. There is a copy in /storage/dean/mc2xml-local
  • For me the command line is ./mc2xml -c us -g 72714 -d 72 -f (72714 is my zip code)
  • Have cron run /storage/dean/ once a day. Example in /storage/dean/crontab
  • Have cron run /storage/dean/ every thirty minutes. Example in /storage/dean/crontab
  • Now your stream files in /storage/Streams should be all renamed with the current show playing.

After owning a Ouya for a week I’ve returned it to Amazon for a refund. The Ouya had problems that I couldn’t get over. I could have waited and hoped some future update would have fixed those problems, but after dealing with Ouya support and reading their forums I wasn’t confident it would happen.

The Bad


I wrote a whole post about my frustrations with overscan. The fact that it had the problem was frustrating enough, the response I received about the problem put me over the edge. This problem and the response is the majority reason I returned my Ouya.


The lack of support is appalling. There are issues, such as the overscan problem,  that make the Ouya unusable for people. The response you receive, if any, is that they’re working on it. In the case of the overscan problem, it’s been about three months and three firmware updates with no fix. I did get a response about my problem with overscan, but I felt the Ouya representative was annoyed I was even bringing it up. It’s a problem with your TV after all.

The touch pad

The touch pad on the controller is an awesome concept. Their implementation is bad and almost unusable. It’s hard to reach and when you do get a finger on it the cursor flies around on the screen almost at random. Also, you have to really give it a good thump for it to detect a click.


I personally didn’t care much for the games. My selection was very limited though because of the overscan problem.

The Interface

The interface was overly simplistic and somehow sluggish. I didn’t like that my side loaded apps were in a different spot than my Ouya Store apps. The store having some options to sort would be nice.


The Ouya’s wifi is just plain bad. Side by side with an ASROCK 330 using a no name USB wifi dongle the Ouya had worse reception,  higher ping, and a slower speed. I had to use a wired connection for XBMC to properly play videos on the Ouya.

The Good

I don’t want to come off as an Ouya hating fan boy. The Ouya has some great ideas and some great qualities.

XBMC and Plex ran like champs. They self corrected for my overscan problem. They both played all of my videos without any long buffering or stutters. (once on a wired network)

The emulators are awesome. I tried everything from the Atari 2600 to the PSX, all worked fantastically and corrected for the overscan.

Where it went wrong for me

I have an old XBOX running XBMC I use for emulators, then I have an ASROCK 330 for XBMC. My hope with the Ouya was to combine those into one machine. As an emulator and XBMC box Ouya did well. The overscan and the other problems (especially the overscan) just bugged the hell out of me. I didn’t want to use something I felt was broken.

I think the Ouya as a concept will ultimately be successful. Either the Ouya 2 will correct all of the problems, or a competitor will appear that does. If nothing else, the Kickstarter shows the market for a set top entertainment device that is open and hackable, I just don’t think the current Ouya is it.

This is a setup I used for a number years before moving to a Sickbeard, Couch Potato, and sabNZBD. In this post I will show you how to use uTorrent to download videos and separate them out by type (TV Shows, Movies) via labels. XBMC will look in the folder uTorrent places the videos in for content to play.

Make Some Directories

You’re going to need some places to store your downloads. Makes these directories on your computer:

C:\Media\TV Shows

Setting up uTorrent

The goal with uTorrent is to apply labels to the torrents you are downloading so uTorrent will sort the files into directories for you.

The first thing you want to do is set up your labels. In uTorrent go to Options->Preferences->Advanced->UI Extras. Under Persistent Labels type in TV Shows|Movies. The screen shot below is an example.


Setting up uTorrent labels

Next you want to setup uTorrent to place your downloads in an easy to find directory, and to sort those downloads into directories with the same name as your labels. With the uTorrent preferences window still open from the last step, click on Directories. Then check mark ‘Move completed downloads to:’ and also check mark ‘Append the torrent’s label’. In the text box below type in C:\Media. The screen shot below is an example.

Setting the download location

Setting the download location

Now when you queue up a TV show or movie in uTorrent, you’ll want to apply a label to it. You do this by right clicking the downloading torrent and selecting the label from the menu.

Setting a label in uTorrent

Now you’re all set with uTorrent. Whatever you download and apply a label to will be sorted into directories for you.

Setting up XBMC

In XBMC we’re going to add

Go to Videos->Files->Add Videos.  Click on Browse and find C:\Media and then click on OK twice. You’ll get to a screen about setting content, just click on OK again.

Click on Add Videos again, then Browse and find C:\Media\Movies. Click OK twice. This time on the Set Content screen, change ‘This Directory Contains’ to Movies and pock mark ‘Movies are in separate folders that match the movie title’. When done click OK and let it refresh.


Now we’re going to repeat for TV shows. Click on Add Videos again, then Browse and find C:\Media\TV Shows. Click OK twice. This time on the Set Content screen, change ‘This Directory Contains’ to TV Shows. When done click OK and let it refresh.

That’s it, a dead simple setup with uTorrent feeding XBMC. The easiest way to view all of your media is to go to Videos->Files->Media in XBMC and browse from there.


Torrents are not safe. Your IP address is visible to all. Eventually you will be caught and copyright infringement notices will be sent to your ISP. Using an Usenet Provider will not only protect you but allow you to download faster. I recommend NewsgroupDirect.

Short Answer: It’s really good.

I’ve been trying out XBMC on Ouya for the last few days. Overall I’m happy with it.

I’m using the Ouya on my den TV, a Vizio WV42LHDTVa, via HDMI. The Ouya is on a gigabit wired connection. XBMC is configured for a shared library via a MySQL server. The videos and thumbnails are stored on a SMB share on the same wired network.

The video quality is good. When using wifi it would take a good while to start videos and occasionally I would get a stutter during playback. Fortunately I already had a wired connection behind my TV and moving to that wired connection solved the problem. The odd thing about this is that the XBMC box that the Ouya is replacing had a USB wifi card that didn’t have those problems.

Sound is good for me, but considering I’m just using the built in speakers in my TV I’m not saying much.

The UI is snappy. Only complaint is that I wish I had a remote instead of a controller. I would bet that we see some strong USB remote support in the future.

What don’t I like? Not much really. I mentioned the remote support. Some of my thumbnail art is not displaying, though I would bet this is because the library is from XBMC 12 and the Ouya is running version 13. I wish the Ouya had a better interface for launching XBMC. Being able to put it in an easy to get to favorites or even the play menu would be nice.


I have a shared MySQL database library for the various XBMC installs I have. One of the reasons I purchased an Ouya was as a cheap replacement to an older XBMC box I had. Things got interesting when I tried to edit my advancedsettings.xml file on the Ouya. How to do it? There isn’t a text editor or SSH access. I had to copy the file from the Ouya to another PC, edit it with what I needed, and then copy it back.

Keep in mind that what I’m going to describe below will install XBMC version 13 on the Ouya. If the other installs around your house are not using version 13 this may mess up your database. I had version 12 installs and my DB was fine, good luck!

  1. Backup your XBMC database.
  2. Install XBMC for Ouya. This is a dead simple tutorial that worked for me.
  3. If you don’t have one already, create a shared folder on your PC. This is where we will put the advancedsettings.xml for editing.
  4. On the Ouya, launch XBMC. Go to Settings->Appearance->File Lists and pock mark ‘Show hidden files and directories’.
  5. Go back to the main XBMC menu, go to Settings and then File Manager
  6. Add two sources, one should be the shared folder on your PC, the other should the userdata XBMC folder on the Ouya.
  7. The XBMC folder on the Ouya is /sdcard/Android/data/org.xbmc.xbmc/files/.xbmc/userdata
  8. In the shared folder on your PC, make an advancedsettings.xml file. I just copied one from another XBMC install.
  9. Back on the Ouya, copy the advancedsettings.xml file into the userdata folder. Do this by highlighting the file, then pressing the Ouya button on the controller, then select copy from the menu that pops up.
  10. Exit and then restart the Ouya. You’re done.
Getting to the built in file manager

Getting to the built in file manager

Showing all files

Showing all files

Copying Files

Copying Files