Every 6 months or so for the past number of years I have tried to install a dedicated PVR, and fail. I give up because I just can’t get all the Australian stuff working nicely, but finally I have succeeded!
The main problem is that the tv guide grabbers just don’t work nicely in Australia. Install mythtv in the States and you’ll be working in 5 minutes, but here it’s a whole lot of heartache and pain.
Sure, I can easily watch TV, but I can do that in 30 seconds under Linux with Me-TV or Kaffeine. I want to be able to see what’s coming up, schedule recordings and all that sweet stuff (OK, Me-TV can do that too, but it’s new, and I also like the idea of mythtv :))
For anyone else out there like me, here’s what I did!
Install mythbuntu, or get your mythtv software installed. This should work with any distro with mythtv, but I installed Mythbuntu (the Ubuntu based MythTV distribution).
I had to add my default user to mythtv group and then re-login
sudo gpasswd -a [user] mythtv
Create a place for recordings
sudo mkdir /home/store
sudo chown mythtv:mythtv /home/store
sudo chmod 775 /home/store
Create the database (use root password and the mythtv database password from the install process)
mysql -u root -p
create database mythconverg;
grant all on mythconverg.* to 'mythtv'@'localhost' identified by 'password';
Now, setup mythtv. In Mythbuntu, open the “Control Center” from Applications -> System.
Click the “MythTV Configuration” button on the left hand side, and on the right pane click “Launch MythTV Setup”.
Others can run the command mythsetup which should do the same thing (make sure you’re in the mythtv group!).
Now, inside the mythsetup program, answer any initial prompts like setting the language and database updates.
Now, configure MythTV as folllows! (Note, I am assuming you are using a DVB card that Linux has detected and which works.)
1. General, set TV format to PAL, “Channel freq table” to australia, and “timezone” to Auto, finish.
2. Capture cards, add a new capture card, set “Card type” to be DVB DTV capture card, finish.
3. Video source, add a new video source, set “Video source name” to anything (i.e. Channels), set “Listings grabber” to No grabber, leave “Channel frequency” to default, then finish.
4. Input connections, select your capture card, set a name if you want, and set “Video source” to the name you set in step 3 (i.e. Channels), hit next, finish.
5. Channel editor, hit “channel scanner” in the bottom left, all settings should be auto filled as above, hit next to start scan, finish.
6. Storage, open “Default” and add a new directory, type the path you created above, i.e. /home/store.
4. Input connections, load your card, set “Starting channel” to a channel you want, next, finish.
Exit mythtvsetup and make sure you run mythfilldatabase when prompted.
I repeat. Run mythfilldatabase!
TV should now be working, but to get guide information we turn to a script called shepherd.
Shepherd is a perl script, see the website for a full set of instructions.
Shepherd requires a whole heap of perl modules, so if you are using a Debian based system then you can easily install them with the following command:
Now we need to configure shepherd, so run:
perl shepherd --configure
It will upgrade any “grabbers” then ask you for your region code. So enter your region then press enter (I’m in Canberra, so I enter 126).
Answer the following questions when asked:
"Would you like Guided channel selection?" Type, yes.
"Do you have High-Definition (HDTV)?". Type yes if you do.
"Do you have PayTV?" I said no.
You will be then asked to match each of your “MythTV channel’s” to the correct “Guide data sources” channel.
You will have to do this for each MythTV channel that you want a guide for (i.e. map “Channel 10″ with “Capital”, Prime with “Prime”, ABC1 with “ABC”, etc.).
Once finished it will allow you to double check the channel mappings. If correct type yes.
When asked if you want to “Transition from grabber?”, enter 0 (that’s a ZERO).
When asked whether to “Create configuration file and update MythTV?” type yes.
Shepherd can also attempt to download the channel icons. If you want them, then answer yes when it asks “Shepherd can (optionally) install channel icons.”.
If you choose to download icons, if found, you will be asked to choose from a number of options. Take a punt
When asked: “Grab data now?” type no (as in NO).
You should now be back at the terminal. We now need to get shepherd to grab the guide information from the Internet.
Run the following
Note: As this is the first time this has been run, it will take a while, around 45 mins!
Now we need to load the guide information into the MythTV database:
mythfilldatabase --file 1 ~/.shepherd/output.xmltv
Congratulations MythTV should now have full guide information. The only thing left to do is to cron shepherd so it runs regularly.
44 * * * * ~/.shepherd/shepherd --daily --quiet && mythfilldatabase --update --file 1 ~/.shepherd/output.xmltv --quiet
NOTE: You are not reading the cron incorrectly, above it is scheduled to run every hour. You can change this if you want (it’s just the recommended default). The question is whether your MythTV box is going to be on all the time, or only at certain times. If it’s always on, you could change it to once a day or something, but if not then it’s best to tell it to check pretty regularly to make sure it’s updated within an hour of it being on. Of course you can run it manually
That’s it! Now open the MythTV frontend and enjoy your TV – with guide.