Ok, well Im a two weeks old to mythtv, a few late nights and I ended up working it all out.
I will give my basic run down of what I did to get tv guide & channels set up in R5A15.
If someone wants to turn this into an info sheet, by all means go for it.
1. Get Knoppmyth loaded & your drivers for your individual card set up. (See other help sheets/forums for this).
2. Get the tv_grab_au script that connects to ninemsn from this site:
http://users.on.net/~manser/dvb/tv_grab_au
Drop that into /usr/bin (move the old one out, or overwrite) and give it the correct permissions:
chmod 755 tv_grab_au
3. Edit the tv_grab_au file to suite your needs. This is where it gets specific to your area. If you live in Canberra, Brisbane, Sydney, Melbourne, you just need to remove the comment for the correct are. If you live anywhere else, you will need to do what I did, which is:
Uncomment:
my location = "Canberra" and change the canberra to your town.
Leave the others with their comments (#)
Uncomment whichever source is for you: free = free to air, freesd = free to air standard definition digital, freehd = free to air high definition, foxtel = foxtel.
In my case it was:
my $source = "freesd"
Leave the my $XMLTVID_URL = "d1.com.au" uncommented.
Leave the other settings as is.
Scroll down to where you see:
my $region; my %channels;
if ("Canberra" eq $location) {
$region = "126";
and then you have a bunch of channel information bellow it.
note:
Ok, your region (the "126" part) is from ninemsn. Go to
http://tvguide.ninemsn.com.au and enter in your area in the drop down list and click go, to view program listings. Look in the url, you will see something like:
http://tvguide.ninemsn.com.au/guide/040 ... y=4/5/2005
See where it says /04052005_71.ASP? bla bla. The _71 is your region. So whatever number you have listed there, that is your region.
Back to the script. Modify the $region = "126" to whatever region you have in the url.
Ok now, the channel information part.
Look below to where you see a bunch of:
$channels{"ABC NSW"}="2";
$channels{"Prime Southern"}="PrimS";
Ok, now you will see two lots of them, one lot of channels under:
if ("free" eq $source) {
and the other lot of channels under
} elsif ("freesd" eq $source) {
Obviously, you need to work under whatever you set earlier in this guide as your $source (free = free tv, freesd = free digital standard definition)
Ok, quick explanation of this line:
$channels{"ABC NSW"}="2";
"ABC NSW" Is whatever the channel name listed is on the ninemsn web page your were looking at earlier to get your region. This needs to be exactly the same, as this is where it pulls the information from.
"2" is how mythtv is going to look for the information. For example, later, we will link ABC to:
freesd.wollongong.2.d1.com.au
freesd = the $source you set, wollongong = $location you set, 2 = whatever you set here on this channel line.
Modify each channel in order to line up with your area on the ninemsn web site, with a name you want to link it to in mythtv channel setup later on.
Once you have modified this channel to your liking, exit and save it.
DONT run any mythfilldatabase yet. We want the channels in first before we run this.
4. as root, run:
/etc/init.d/mythbackend stop
This will stop the backend, giving us the ability to scan for channels. (DVB requires this).
5. as user mythtv, run mythtv-setup
6. Setting up channels.
Ok, select capture cards, set up your capture cards. Provided you have loaded your drivers ok, the defaults should be all good.
Select Video Sources, New Video Source.
Type in a video source name (mine is WollongongTV), doesnt matter what it is.
Change listings grabber to Australia, (tv_grab_au)
Click Finish
Select input connections, select input, and change the video source to the video source you set in the previous step.
Starting channel is important, but we will come back and set this once we know a valid starting channel. (If you dont select a valid channel, then you will end up with a lovely black screen).
Select Channel Editor.
7. Scanning for channels. For majority of channels, I could auto scan them fine. For me, SBS & ABC required a little more attention. But more on that later.
Select Scan for channels.
Video Source is your video source.
Capture card is your capture card (dvb:0)
Scan Type: Full scan
Click Next.
Ok, only thing on this channel you should need is frequency.
Go to:
http://www.dba.org.au/index.asp?sectionID=22
And select your regions. Get your Middle frequencies.
Pick the first channel you want to scan for and put in the frequency in mythtv where it says Frequency. Note: 599.5Mhz on the site is 599500000 Hz in Myth TV.
Bandwith is 7Mhz for Australia.
Click Next
MythTv should find your channels.
Repeat for each frequency for each channel. If you have problems on any channels, keep reading, if not, skip the next part.
If problems occur (I had a prob with SBS & ABC), You will need to get a little bit more specific.
Firstly, on the channel editor page, go to Advanced.
Select New Transport.
Put in as many details as you can about a particular channel. Frequency, bandwith, QAM64 etc. I had a digital set top box to tell me these, or I also used the scan option in the package linux-dvb-apps. Search the forums about scanning and creating a channels.conf with all this information, as I am not covering that here.
Once that is done, go to scan for channels.
Video source is your source,
capture card is your capture card
Scan type this time is not full scan, instead select "Existing Transport Scan"
Transport is the new transport you created. (Should have Mhz (0) (0) (0))
Next,
This sorted my SBS & ABC problem, and hopefully it does for you too.
Once this is done, you should have a nice list of channels.
8. Linking program guide to your scanned channels.
Select the channel, for example Prime.
Ok note the channel number down, we will use this as our starting channel.
Go to the XMLTVID field.
Type in:
freesd.wollongong.PRIME.d1.com.au
freesd = the $source you set, wollongong = $location you set, PRIME = the description you set in tv_grab_au on your channel lines. (remember this line: $channels{"ABC NSW"}="2";
2, is the equivalent of PRIME.
Do this for each channel you need to link in to the program guide.
NOTE: You can only use a XMLTVID once. For example, you cant set freesd.wollongong.PRIME.d1.com.au to all three channel 7's, as it will only link into the first one. I learnt that the hard way.
Once you have done this, go back to the main menu.
9. Go into Input Connections again and move to the starting channel field. Put in the channel number I asked you to remember before, from your scanned channel. Without this being correct, watch tv will not start.
Note: You can only modify this field while the backend is not running.
10. Exit mythtv-setup.
As root, run /etc/init.d/mythbackend start
as mythtv, run mythfilldatabase
This will take a while, depending on your connection. Took about 5-10 mins on my 512k ADSL connection. This step is basically downloading the guide from ninemsn for the next 7 days, and importing it into the database.
11. Once this is complete, go into mythtv, and select watch tv. Fingers crossed you should have live tv running with a good program guide.
You can then go back to mythtv-setup later and make channels invisible, etc, as you decide on what you want.
Hope this helps fellow aussies.
As I said, if someone wants to put this in the wiki, or put it somewhere as a guide, go for it.
Thanks
Aaron
________
HERBALAIRE