MythTV, xmltv and channels

From LinuxMCE
Revision as of 11:55, 16 July 2009 by Murcel (Talk | contribs)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

CONCEPT

To get MythTV set up fairly easily with xmltv, I use the following steps. It works with multiple grabbers and sources. The approach should work with LMCE 0704 (stable) as well as all beta versions for 0710.

  1. If LMCE already offers a good tv_grab_* for your situation, skip this step. If there is a grabber available that is not yet listed in mythtv-setup, download your favorite version(s). In my case (Holland), these are tv_grab_nl_upc and tv_grab_nl_py. Make them executable and copy them to /usr/bin. In mythtv-setup, these grabbers will now show up automagically.
  2. Go through mythtv-setup as usual (when in doubt, see generic Mythtv documentation).
  3. Make sure your system timezone and LMCE timezone are correct! For your system timezone, you could use the command tzselect at the command line, for the LMCE timezone, go to http://192.168.80.1/pluto-admin/ -> basic info -> installation.
  4. Run tv_grab_<the one you use> --configure. Pay attention, it will probably generate a config file in .xmltv, but you will need to copy it to .mythtv. The name will depend on what you used in mythtv-setup. I find it convenient to just do a test-run of mythfilldatabase. It will complain about a missing config file: that will be the name and location you need to use. It will look something like this: /home/linuxmce/.mythtv/UPC-analog.xmltv (I used the name UPC-analog in mythtv-setup).
  5. Assuming you finished mythtv-setup properly, you can now run mythfilldatabase --manual. You will have to fill in the channel numbers when asked, if you leave them blank, the channels are not added to the database! Just use the suggested names. Press enter at every other question.
  6. Once done, go to http://192.168.80.1/mythweb/settings/channels. You will see a list of all channels, as shown below. Do NOT edit xmltvid (3rd column). You can change the 4th to 6th column as you see fit. Column 4 determines the order in which the guide data is shown on screen. The important column is 7. In my case, this has many 6-digits numbers. This is the frequency at which the channel is coming in. This information is usually readily available from your cable provider.

Channels.jpg One last remark: The example image above is from a setup with two sources. Column 2 shows the source number. If your source is digital, you will have to use an ir-blaster (probably a usb-uirt) to change the channels on the cable box. Leave the frequency empty, but make sure column 4 contains the correct channel number.

--Domodude 14:27, 21 March 2008 (PDT)