w_scan output(s)

Basil Chupin blchupin at iinet.net.au
Mon Aug 2 00:59:16 UTC 2010

On 02/08/2010 07:17, Peter Hillier-Brook wrote:
> I recently discovered the above program and ran it against my DVB-T card
> (Hauppauge), that it found without help. However the output appeared to
> only go to standard out and no channels.conf file was produced. Can
> anyone confirm that this is expected behaviour and that I need to
> redirect the output to a file of my choice?
> Peter HB

Firstly, which part of the world are you at? You will need to know the 
2-char abbreviation for your country.

Secondly, which TV application are you using with your DVB-T card?

I am in Australia, and I am using vlc as well as xine for my TV viewing. 
Both use the (same) channels.conf file for the TV channels. To create 
channels.conf for vlc and xine:

on a command line,

/usr/bin/w_scan -c AU -X > channels.conf [1]

which will create the *.conf in you home directory.

Then, for vlc, go to Properties> Command and add at the end to what is 
now already there, ".... /home/<name>/channels.conf " [without the 
quotes of course]. Every time you click on the icon for vlc to start it 
it will start on the last TV channel you were last watching. The Command 
line will look like this, "vlc %U /home/<name>/channels.conf".

For xine, simply copy the channels.conf file into /.xine directory (and 
if you do then you can also use this as the additional info you put for 
vlc in Properties>Command - ie, /home/<name>/.xine/channels.conf)

[1] Note the use of the country code (AU for me) immediately after "-c" 
- replace this with your country's code; note the use of the capital 
"-X" which tells w_scan to produce the file in a format which xine 
recognises; and note the use of the single ">" and not the ">>" shown in 
the w-scan documentation - using the double is to overwrite an existing 
conf file, somewhere, I don't know where, so use the single ">" and then 
you know where the file will be created (in you home directory).


If nothing happens, nothing can go wrong.

More information about the ubuntu-users mailing list