We will now look at how to set up a PVR. This will include configuring the backend as well as getting it running in XBMC.
The purpose of this title is to focus on the Raspberry Pi, and as there is a great variety of PVR software available, it would be implausible to cover the many options. If you are planning on using an external backend, it is recommended that you thoroughly search for information on the Internet. There are even books for popular and comprehensive PVR packages, such as MythTV. TVHeadend was chosen for Raspbmc because it is lightweight and easy to manage.
Raspbmc's XBMC build will support the following backends at the time of writing:
It should be noted that not all TV tuners will work on your device. Due to the fact that the list changes frequently, it is not possible to list here the devices that work on the Raspberry Pi. However, the most popular tuners used with Raspbmc are AF90015 based. HDHomerun tuners by SilliconDust are supported as well (note that these tuners do not connect to your Pi directly, but are accessed through the network). With the right kernel modules, TVHeadend can support DVB-T (digital terrestrial), DVB-S (satellite), and DVB-C (cable) based tuners.
For a list of supported tuners, see Appendix C, Supported Peripherals.
By default, the TVHeadend service is disabled in Raspbmc. We'll need to enable it as follows:
http://192.168.1.5:9981
.You should substitute the preceding IP address, 192.168.1.5
, with the actual IP address of the Raspberry Pi. We covered checking the Raspberry Pi's IP address in Chapter 2, Using Raspbmc.
You will be greeted with an interface much akin to the following screenshot:
As shown in the preceding screenshot, TV tuners should automatically be detected and selectable in the drop-down menu (highlighted here). On the right, a box entitled Adapter Configuration can be used for adjusting the tuner's parameters.
Once we have defined the region we are in, TVHeadend will automatically begin scanning for new services on the correct frequencies. These services can be mapped to channels by selecting the Map DVB services to channels button as shown earlier. We are now ready to connect to the backend in XBMC.
Regardless of whether we have used Raspbmc's built-in backend or an external one, the process for connecting to it in XBMC is very much the same.
We need to do the following:
The following screenshot shows us a sample electronic program guide:
Simply select a channel and press Play! The functionality that PVR offers is controlled in a similar manner to XBMC, so this won't be covered in this chapter. If you have got this far, you've done the hard part already.
3.135.198.7