Watch TV on Raspberry Pi with OpenELEC media-build

I’m using an Elgato EyeTV DTT to watch TV on my Macbook Pro. I wanted to use this USB tuner on my Rasperry Pi with Raspbian, but VLC doesn’t support hardware-accelerated video yet. So I found this post on Tiago Pires’ blog, which describes how to build OpenElec from scratch including media-build. Unfortunately, some things are missing in this post, and some others are unnecessary. A lot of things in this post comes from his article, so thank you ;)

Media-build is just a script that will get the most up-to-date dvb drivers and include them in OpenElec. I don’t think it’s required if your DVB tuner is supported for a longtime by Linux, but let’s include it anyway.

The easy way

As I’m really kind, I built OpenELEC.tv, media-build, and tvheadend for you. Just download these files and go to the “Create SD-card” step.

The hard way – let’s build this

1
// Coming soon

Create the SD-card

If you’re not coming from the build section, just download OpenElec from the top of this post, and put it in a folder. Then, open a terminal and go to this folder.

Insert your SD card, and extract the archive:

1
$ tar zxvf ...

Then, it depends of what you platform is.

Linux

I’m assuming that /dev/sdb is your SDCard device:

1
2
$ sudo ./create_sdcard /dev/sdb
$ sudo umount /dev/sdb1 && umount /dev/sdb2

OSX

I made a pending Pull Request on Github to handle OSX SDCard installation. As it’s not yet merged to the official OpenELEC repo, you’ll have to go here and save it to ./create_sdcard.

Then, assuming that your SDCard is /dev/disk3:

1
$ sudo ./create_sdcard /dev/disk3

Tvheadend

Boot your RPi, you should get a beautiful XBMC interface. From your regular computer you should see an openelec shared network folder. Extract the tvheadend archive somewhere on your computer, and move the resulting folder to openelec/downloads/.

On XBMC, go to System -> Settings -> Add-ons -> Install from zip file. Then, select thz tvheadend zip file from Home/downloads/service.multimedia.hts-tvheadend/. You should get an installation confirmation message. Reboot your RPi.

When your RPi is fully started up, navigate to the following link from your computer’s browser:

1
http://RPI_ADDRESS:9981/extjs.html

Then, navigate to Configuration -> TV Adapters and select your adapter in the list. You can now configure your tuner… and watch TV !

Loïs Di Qual: I'm an iOS developer based in Bordeaux, France. This is my blog.

  • xbmc

    Thanks

  • alabamas

    Hi,thank you for your work.Could you please tell me whith what opptions you configure tvheadend service addon.Yours is the only one i can really watch pay-tv with.
    Thanks

  • Angel

    hallo , this is agood post , but in my case mac user i am not able to create sd card, can you please help me , how to make it work, I read about it and i think its posible only with an img file , but not with what i have now , devel-20120902210653-r11850.tar.bz2 .

    Thank you

  • stuaxo

    This is cool, any idea if there are any updated media builds around for openelec or raspbian ?

  • Jose

    thanks !!!