Configuration of analogue TV cards
In order to configure freevo for TV you need to edit your user preferences. Freevo defaults to using mplayer as the application for TV viewing. If you want you can keep this however the application tvtime provides vastly superiour quality pictures using filters taken from the dscaler? project. If your not sure which to use go for tvtime.
Part 1: configuring freevo.conf
As part of your initial setup of Freevo you should have run the command freevo conf. If you didn't you'll need to do that now. Once done this will create a file freevo.conf. There are two sections in this that you need to check, these are 'chanlist' and 'tv'. For Ireland these would be set to:
chanlist = IRELAND tv = pal
Have a look at this table to figure out which you should set chanlist to.
CHANLIST = { "us-bcast" : dict(NTSC_BCAST), "us-cable" : dict(NTSC_CABLE), "us-cable-hrc" : dict(NTSC_HRC), "japan-bcast" : dict(NTSC_BCAST_JP), "japan-cable" : dict(NTSC_CABLE_JP), "europe-west" : dict(PAL_EUROPE), "europe-east" : dict(PAL_EUROPE_EAST), "italy" : dict(PAL_ITALY), "newzealand" : dict(PAL_NEWZEALAND), "australia" : dict(PAL_AUSTRALIA), "ireland" : dict(PAL_IRELAND), "france" : dict(SECAM_FRANCE), "china-bcast" : dict(PAL_CHINA), "canada-cable" : dict(NTSC_CABLE_CAN), "southafrica" : dict(PAL_BCAST_ZA), "argentina" : dict(ARGENTINA),
The 'tv' part is your TV standard PAL, SECAM ot NTSC That's it for freevo.conf.
Part 2: configuring local_conf.py
First off choose which app you want to view tv with, if you want to use mplayer you don't need to change anything. If you want to use tvtime add the following.
plugin.remove('tv.mplayer') plugin.activate('tv.tvtime')
Once you have chosen your TV viewing app you need to configure the TV_Channels section. TV_CHANNELS uses the following format.
TV_CHANNELS = [ ( 'xmltvid', 'freevodisplayname', 'tvchannel' ) ]
Here is an example with some explanation.
TV_CHANNELS = [ ( 'bbc1.bbc.co.uk', 'BBC One', 'A24' ), ( 'bbc2.bbc.co.uk', 'BBC Two', 'A38' ) ]
This might look a bit strange but it's not that bad, lets take one at a time.
'xmltvid': If you look at your TV.xml file you'll see something like this. The 'xmltvid' is taken from programme channel="" so just take a look at your TV.xml and copy the programme channel name you need into your 'xmltvid' part of TV_CHANNELS. As of 1.8.4 freevo can now create a channel list for you. After you have xmltv running, run this command:
freevo tv_grab -q
to get a ready made TV_CHANNELS list to cut and paste in to your local_conf.py
'freevodisplayname': Nice and simple. This is just the display name that freevo uses in the TV Guide section of freevo.
'tvchannel': This uses the same format as the tv viewing app xawtv. If you have this package installed you should simply run the command 'scantv' which will scan for and print your available channels. Have a look at the examples here for more help.
Once this is configured correctly you should have working TV
If you have a problem of the freevo channels not matching the player tv channel, try setting TV_PAD_CHAN_NUMBERS = 1.
Examples for TV_CHANNELS
Here you will find examples from freevo users for different countries, hopefully you'll be able to simply copy and paste these into your local_conf.py
IE: Irish examples
ATVCHANNELSUK : UK examples, PleaseUpdate
CH : Swiss examples
DE : German examples
ES : Spanish examples (new 05-07-06)
FR: French examples
ATVCHANNELSUS : US examples, PleaseUpdate
BE : Belgian (Dutch) examples
ATVCHANNELSDU : Dutch examples, PleaseUpdate
ATVCHANNELSSE : Sweedish examples, PleaseUpdate
ATVCHANNELSNZ : Newzeland examples, PleaseUpdate
ATVCHANNELSAU : Australian listings
ATVCHANNELSZA : South African examples
HK : Hong Kong 4 TV Channels