LinHES Forums
http://forum.linhes.org/

Setting up free to air in Australia (tv_grab_au) [SOLVED]
http://forum.linhes.org/viewtopic.php?f=15&t=12057
Page 1 of 2

Author:  andysl [ Sun Oct 08, 2006 2:55 am ]
Post subject:  Setting up free to air in Australia (tv_grab_au) [SOLVED]

Hey guys,
I bought my first tuner card today - Leadtek WinFast DTV1000T. The install was pretty much hassle free, have managed to get channels ABC, ABC2, 9, and 10.

I'm just wondering if someone could post a list of the digital frequencies (or a link to them) of the channels, Melbourne area. I'm going to do a total re-install of KM (RD51), and would like to add channels manually to stop getting duplicates (and also find SBS, 7 and 31 if available).

Also, how are people getting their program guide to work? I havent managed to get tv_grab_au to work, and after searching the forum i couldnt find a clear cut answer of a way to get the guide workin in Aus.

Ta
Andy

Author:  mythingpersons [ Sun Oct 08, 2006 5:36 am ]
Post subject: 

Frequency details for Melbourne may be found at:

http://www.dba.org.au/index.asp?sectionID=22

Channel 31 remains analogue at this stage.

For the guide data, one way is to take the "simple XMLTV grabber script" link from the http://www.tvguide.org.au site. Ok here it is: http://www.cse.unsw.edu.au/~willu/xmltv ... u_reg.html



This contains "MythTV Instructions" that worked for me, and the one time I had a problem Will Uther was very prompt and helpful.

You have to create a profile here with the channels & city you are interested in,

Running the script creates the default config file that you have to modify to include your channel ids.

An extract of my config file is:
Code:
<config>

  <login provider="tvguide" user="UserName" password="VerySecret" />

    <channel display="ABC Digital" tvguide="ABC-Vic" local="ABC-Vic.tvguide.org.au" />
    <channel display="ABC2" tvguide="ABC2" local="ABC2.tvguide.org.au" />
    <channel display="Nine" tvguide="Nine-Mel" local="Nine-Mel.tvguide.org.au" />
    <channel display="SBS" tvguide="SBS-Vic" local="SBS-Vic.tvguide.org.au" />
    <channel display="Seven" tvguide="Seven-Mel" local="Seven-Mel.tvguide.org.au" />
    <channel display="Ten" tvguide="Ten-Vic" local="Ten-Vic.tvguide.org.au" />

</config>


What you have in the "local=..." part then has to go in the channel details in the myth setup. I can't get to my box at the moment for the exact place but if these details aren't there the association between the guide data and channels is not set and the guide is empty.

Author:  andysl [ Sun Oct 08, 2006 5:10 pm ]
Post subject: 

great!
Thanks so much for the reply, i'll try it as soon as i get home :D

Author:  andysl [ Mon Oct 09, 2006 4:00 am ]
Post subject: 

Quote:
MythTV Instructions

Thanks to John Saunders for the original version of these:

1. Complete the website registration and setup, described above.
2. Make sure you have python and env installed. If your copy of env is installed somewhere other than /usr/bin/env then edit the first line of the script to point to the correct location. You can check the location of env using the which env command.
3. Install tv_grab_au_reg in /usr/local/bin
4. Make sure it is executable: chmod +x tv_grab_au_reg
5. Symlink /usr/local/bin/tv_grab_au to tv_grab_au_reg with ln -s /usr/local/bin/tv_grab_au_reg /usr/local/bin/tv_grab_au (and check that you don't have another tv_grab_au installed somewhere: which -a tv_grab_au).
6. Run mythtv-setup and configure an input source to use tv_grab_au.
7. When you save the input source setting, mythtv-setup will run tv_grab_au --configure --config-file ~mythtv/.mythtv/<InputSourceName>.xmltv and create a default config file for you. (Note: Some grabbers require you ALT-TAB here and enter some configuration info, however tv_grab_au_reg doesn't - you have to edit the config file later)
8. Set the "TimeOffset" option in mythtv-setup. The "Auto" setting is usually the right setting (the "None" setting will make MythTV interpret the timezones as local - Unless you are actually in the UTC timezone, this is not what you want).
9. Finish mythtv-setup and exit.
10. Edit ~mythtv/.mythtv/<InputSourceName>.xmltv to include the channels you want, username(s) and password(s).
11. Start mythbackend.
12. Run mythfilldatabase and wait as it takes some time. Note, if you're using MythTV 0.18.X or earlier you'll want to use the --force-explicit-timezone option for tv_grab_au_reg. You can do this by passing --graboptions --force-explicit-timezone to mythfilldatabase.
13. Follow the MythTV instructions for your version of MythTV so that mythfilldatabase is run at regular intervals.


Ok, so excuse my lack of knowledge, but I am lost with pretty much all of those steps. How do i do step 2,3......
If someone could help me get started i'd greatly appreciate it.

Author:  soundoff [ Mon Oct 09, 2006 11:12 pm ]
Post subject: 

I never had to do step 2 it was already there.

step 3:

logged in as root:

cd /usr/local/bin

wget http://www.cse.unsw.edu.au/~willu/xmltv/tv_grab_au_reg

chmod +x tv_grab_au_reg

good luck!

another tip for the unwary - when you want to manually run a mythfilldatabase you have to be logged in as mythtv. took me a while to work that one out

Author:  andysl [ Tue Oct 10, 2006 5:16 am ]
Post subject: 

Ok so i got through those setps ok, but now i've encountered a new prob.

Last time i did the auto scan for channels, it did not find them all. I have tried this a few times but i cannot find SBS, and 7 and 9 come and go.
So this time i did a fresh install of RD51, set up tv_grab_au as above, then went to manually add the channels before running mythfilldatabase. However this did not work, for any channels!
When adding a channel, on the second page should i add the channel # or frequency? Also, what do i enter into transport editor?

My channel list is exactly the same as yours mythingpersons.
Thanks

Author:  Girkers [ Tue Oct 10, 2006 5:39 am ]
Post subject: 

With DVB cards you can do a manual scan, add as much information as you can into the dialog before starting the scan. You can get the info for Melbourne from:
[code]nano /usr/local/share/dvb/dvb-t/au-Melbourne[/code]

I use this technique in Brisbane to pick up SBS as the signal is a little weak to pick it up in the autoscan.

Author:  soundoff [ Tue Oct 10, 2006 6:41 pm ]
Post subject: 

I cant remember where i entered them, but i had to enter the channel frequencies manually.

I get 7 9 10 SBS ABC ABC2 in brisbane bo problems. I jsut wish Bris31 transmitted in digital!

I will try and find where i entered the frequencies.

Author:  Girkers [ Tue Oct 10, 2006 8:41 pm ]
Post subject: 

soundoff,

When you want to put the details in manually from memory you tell it to scan a new transport and then you are able to put in the details as I had listed previously.

I only needed to do this for SBS in Brisbane as the auto scan picked up the rest.

Author:  mbd [ Fri Nov 10, 2006 3:45 am ]
Post subject: 

In case it helps others, I found this guide really helpful in getting my setup for digital FTA channels working (I'm also in Melbourne)

http://hanna.homedns.org/projects/mythtv_box/knoppmyth/main.html

Author:  tjc [ Fri Nov 10, 2006 10:46 pm ]
Post subject: 

soundoff wrote:
another tip for the unwary - when you want to manually run a mythfilldatabase you have to be logged in as mythtv.

Yeah, one solution is to wrap a script around it that makes sure of that (by checking the user and if it's run as root using "su- mythtv cmd") and always using the script. I'll post an example (a simplified version of what I'm doing) shortly...

Author:  tjc [ Sat Nov 11, 2006 12:52 am ]
Post subject: 

Code:
#!/bin/bash

LOG_FILE="/var/log/mythtv/filldatabase.log"
mv -f $LOG_FILE $LOG_FILE.old
exec >$LOG_FILE 2>&1

fill_options="$*"

case $(id -nu) in
root)
    su - mythtv "/usr/bin/mythfilldatabase $fill_options"
    result=$?
    ;;
mythtv)
    /usr/bin/mythfilldatabase $fill_options
    result=$?
    ;;
*)
    echo "ERROR! You must run this script at mythtv or root!"
    exit 1
    ;;
esac
echo
echo "Database update completed"
exit $result

Author:  andysl [ Sun Nov 12, 2006 4:58 am ]
Post subject: 

mbd wrote:
In case it helps others, I found this guide really helpful in getting my setup for digital FTA channels working (I'm also in Melbourne)

http://hanna.homedns.org/projects/mythtv_box/knoppmyth/main.html


Thanks so much for this link, now i have it WORKING!! :D
Quick question, how can i change the time and date, i accidently changed it with 'tzconfig' and now its wrong (a day ahead)

Author:  nigelpearson [ Sun Nov 12, 2006 4:58 am ]
Post subject: 

Andy, try doing an Auto Scan after setting the Bandwidth to 7MHz.

Author:  andysl [ Mon Nov 13, 2006 1:31 am ]
Post subject: 

nigelpearson wrote:
Andy, try doing an Auto Scan after setting the Bandwidth to 7MHz.


umm, not exactly sure what you mean.
I used "tzselect" and entered option 11, and did the following in putty:
Code:
The following information has been given:

        TZ='GST-0'

Therefore TZ='GST-0' will be used.
Local time is now:      Mon Nov 13 18:28:49 GST 2006.
Universal Time is now:  Mon Nov 13 18:28:49 UTC 2006.
Is the above information OK?

I selected yes, and then i got:
Code:
You can make this change permanent for yourself by appending the line
        TZ='gst-0'; export TZ
to the file '.profile' in your home directory; then log out and log in again.


where is this file? how can i find it?


EDIT:
Solved!
http://mysettopbox.tv/phpBB2/viewtopic.php?t=7683&highlight=hwclock+set
Code:
 1) tzconfig or tzsetup (to set time zone)
2) date MMDDHHmmCCYY (to change the date & time)
3) hwclock --localtime (to set hardware clock to local time)
4) hwclock --systohc (to set system time to hardware clock)

Finally, you can check it to make that all is as it should be:

5) hwclock --show

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/