Next Previous Contents

10. Getting everything ready to configure MythTV

10.1 Early Difficulties - downgrade the urw-fonts package

We need to downgrade the urw-fonts package from version 2.2-6 to FC2 version 2.1-7 to avoid having font size problems discussed in this bugreport. To do this we need to install the FC2 package, and set up a pin in our /etc/apt/preferences file to prevent an apt-get dist-upgrade from upgrading the file back to the faulty 2.2-6 version.

# rpm -Uvh --force ftp://rpmfind.net/linux/fedora/core/2/i386/os/Fedora/RPMS/urw-fonts-2.1-7.noarch.rpm
# nano -w /etc/apt/preferences

Insert the following lines into /etc/apt/preference :

Package: urw-fonts
Pin: version 2.1*
Pin-Priority: 1000

Now test that this works, by checking that an apt-get dist-upgrade does not upgrade urw-fonts.

# apt-get dist-upgrade

There should be no packages to upgrade (or if there are, then urw-fonts should not be one of them), so if it tries to upgrade urw-fonts select No and go back and check your /etc/apt/preferences file. When urw-fonts is fixed you will need to remove the lines from /etc/apt/preferences to upgrade to the new version. You will need to restart X to make the change work, so a ctrl-alt-backspace will do that for you.

10.2 Finding the channels

Now we use the linux TV dvb tools we built at to create a list of channels for MythTV. If you live in SE Victoria you can use my au-MtTassie file to scan for the channels. In the following command change '~/au-MtTassie' to whatever path and filename you used for your frequency file.

# /usr/src/dvico/linuxtv-dvb-apps-1.1.0/util/scan/scan -5 ~/au-MtTassie |cat ~/channels.conf - |grep -v :0:0:[0-9]*$|sort |uniq > ~/channels.conf

At the end of that you should have a ~/channels.conf file with all available channels. Each line is a channel, and the first column is the name of the channel, the second column is the channel frequency. Each network can have multiple channels on the same frequency, and the way to tell apart the different channels are the last three columns, in turn the Video PID, the Audio PID and the Service ID. We use the Frequency, Video PID and Audio PID to tune the channels in mythtv. Also required is the Bandwidth of each network (which in Australia is always 7 MHz, but can be found in the fourth column).

Here are the contents of my file at the moment:

channels.conf

ABC DiG Radio:627500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_NONE:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:0:2315:694
ABC HDTV:627500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_NONE:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:2312:0:688
ABC TV 2:627500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_NONE:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:2308:2309:690
ABC TV 3:627500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_NONE:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:2308:2309:691
ABC TV 4:627500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_NONE:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:2308:2309:692
ABC TV Victoria:627500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_NONE:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:2308:2309:689
Latrobe Valley:585500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_NONE:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:33:36:1
Latrobe Valley:585625000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:33:36:1
SBS DIGITAL 1:543500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:161:81:849
SBS DIGITAL 2:543500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:162:83:850
SBS EPG:543500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:163:85:851
SBS HD:543500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:102:103:848
SBS RADIO 1:543500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:0:201:862
SBS RADIO 2:543500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:0:202:863
SC10 Gippsland:606500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:257:258:2049
WIN HD:585500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_NONE:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:129:130:10
WIN HD:585625000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:129:130:10

10.3 Install and fix tv_grab_au

Unfotunately there is no service like zap2it in Australia, and xmltv does not come with a programme grabber for Australia. Development One, makers of a commercial PVR based on MythTV, provide access to their data via their website, and a tv_grab_au script is available from Rohbags. Download, uncompress and copy to the standard locations.

$ wget http://www.onlinetractorparts.com.au/rohbags/xmltvau/tv_grab_au-0.6.tar.gz
# mkdir /usr/share/xmltv/tv_grab_au
# tar zxvf /home/mythtv/tv_grab_au-0.6.tar.gz -C /usr/share/xmltv/tv_grab_au/
# mv /usr/share/xmltv/tv_grab_au/tv_grab_au /usr/bin/tv_grab_au
# mv /usr/share/xmltv/tv_grab_au/tv_grab_au.1.gz /usr/share/man/man1/

This makes man tv_grab_au available if required, and places the script in the right places to work.

Like usual in this installation someone somewhere has decided to change something that breaks some software we want to use. In this case it's a one line fix. Basically we need to find each instance of 'askQuestion' in tv_grab_au and replace it with 'ask_choice'. Do this with sed:

# sed -i 's/askQuestion/ask_choice/g' /usr/bin/tv_grab_au

10.4 Configure some directories

To make the actual setup process run smoothly, we need to make some more directories and change ownership to 'mythtv'.

# mkdir /video/buffer /video/recordings
# chown -R mythtv:mythtv /video


Next Previous Contents