Setting Up Live TV

What You Will Need

  1. A Raspberry Pi with Raspbmc already installed (see here for details)
  2. A Linux compatible USB TV Adaptor ( I used a PCTV Systems Nano Stick 73e DVB-T USB Stick)
  3. A terminal program such as PuTTy to get command line access to the Pi.
  4. An MPEG 2 codec licence - Purchase from http://www.raspberrypi.com/

Setup Instructions

  1. If you haven't already, enter the MPEG2 codec licence into XBMC
    1. Go to Programs>Raspbmc Settings
    2. Go to System Configuration
    3. Enter your licence key under 'Advanced System Settings'
  2. Plug the TV Stick into the Pi or an attached USB hub
  3. Log into the Pi via ssh (username: pi password:raspberry)
  4. type 'lsusb'
  5. on the output you should see a line identifying your TV stick, e.g. 'Bus 001 Device 010: ID 2304:0237 Pinnacle Systems, Inc. PCTV 73e [DiBcom DiB7000PC]' This shows the Pi has detected the stick
  6. type 'dmesg | grep dvb'
  7. You will probably see a line saying that a firmware file cannot be found, in my case it was looking for a file called 'dvb-usb-dib0700.fw'
  8. Google is your friend. Do a search for the filename, you should be able to find it available for download somewhere, I found mine at http://linuxtv.org/downloads/firmware/
  9. Once you have found a link to the firmware file, right click on it and select "Copy Shortcut)
  10. On your terminal session type "cd /lib/firmware' and press enter
  11. now type "sudo wget ' and then paste the shortcut (on PuTTy a simple right click will do the paste for you) and press enter.
  12. the firmware file should now download to the firmware directory.
  13. Reboot the Pi or simply unplug and plug back in the adaptor
  14. type 'dmesg | grep dvb' and press enter again. You should see output similar to this:
dvb-usb: found a 'Pinnacle PCTV 73e' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
dvb-usb: schedule remote query interval to 50 msecs.
dvb-usb: Pinnacle PCTV 73e successfully initialized and connected.
usbcore: registered new interface driver dvb_usb_dib0700
dvb_hdhomerun: module is from the staging directory, the quality is unknown, you have been warned.

Configuring RaspBMC

  1. Enable the TV Headend Server - Go to Pograms>RaspBMC Settings
  2. Under Servers - Check that TVHeadend is enabled
  3. On your PC, open a browser window and enter into the address bar http://<address of Pi>:9981 e.g. http://192.168.1.99:9981
  4. You should see the Tv Headend configuration page
  5. Go to the Configuration Tab, then Select DVB Inputs
    TV Headend Config
  6. In the TV Adaptors drop down, you should see your adaptor listed. Select it  and then make sure that 'Enabled' is checked
    Adaptor Configuration
  7. You now have two choices. You can either click 'Add DVB Network by location" and select your country and nearest transmitter but the information on the availables muxes is probably out of date (it was for me) so you can choose to add the Multiplexes manually by clicking the 'Multiplex' tab and then clicking "Add Multpilex manually'
    Multipex
  8. Information on UK multiplexes can be found at http://www.ukfree.tv/closedown.php. Find your nearest transmitter and select the tv option to see a list of multiplexes
    Multiplex Settings
  9. In our Manual box you will need to enter the frequency in KHz the information give is in MHz so multiply by 1000. In the example above we would be entering hte frequence as 674000
  10. Bandwidth is 8MHz
  11. Constellation is given in the info as QAM64
  12. Transmission mode is given in the info above as 8K
  13. Guard Interval for the UK is 1/32
  14. Hierarchy is 'None'
  15. FEC Hi is given int he info as 2/3
  16. FEC Lo for the UK is 'None'
  17. Click Add.
  18. Once you have added the first Mux, TVHeadend should automatically detect the rest of them so you only need to add the first Mux.
  19. TVHeadend will now scan for channels, this will take a few moments but it should find all the services in your area
    Services
  20. Now you need to click "Map DVB Services by area' to map the channels and start pulling down EPG info
  21. On the XBMC interface we now need to enable the Live TV Service. Go to System and select 'Settings'
  22. Go to the LIive TV entry and set it to 'Enabled'
  23. You will get a prompt that no PVR Client Add-on is enabled and then taken to a list of available addons
  24. Install the TVheadend Client addon, you shouldn't need to change any settingss.
  25. Congratulations. On the menu bar you should see 'Live TV' from where you can view Live Tv. it may take a few minutes for the Channels to add themselves in and the EPG data to become available
Note: there is a random bug in the current build of XBMC where if the video glitches the audio goes out of synch. Just stop the feed and restart it. The good people developing Raspbmc are aware of the issue and should roll out a fix soon.

LCD Display->
Index
<-Basic Setup