What is it?|
Chanl is a Linux ncurses / console program that
creates a user friendly menu of digital television channels from a channels.conf file
which was created with linux dvb apps scan utility and then can launch any number of commands like mplayer and dvbstream to view or record the channel. Supports DVB-T DVB-S DVB-C and ATSC.
28 October 2011: Version 0.16, this fixes channels sorting and default channel launch command.
4 March 2010: Initial release of chanl version 0.15
1) How do I create a channels.conf file?
Download Linux dvb apps from linuxtv.org I had to use a program called 'hg' to download it like this
$ hg clone http://linuxtv.org/hg/dvb-apps
See http://linuxtv.org/wiki/index.php/LinuxTV_dvb-apps for
more information on how to get dvb-apps.
Once you have dvb-apps change to the dvb-apps/util/scan/ directory and type 'make', this will compile the 'scan' program.
$ cd dvb-apps/utils/scan/
Then find the correct frequency file for your area transmitter in one of the subdirectorys under dvb-apps/util/scan/ + dvb-c,dvb-h,dvb-s,dvb-t,atsc and run:
$ ./scan dvb-t/uk-file | tee channels.conf
This will create a channels.conf file in the current directory replace 'dvb-t/uk-file' with the correct file for the area.
If you live in the UK you can usually find out which transmitter your area uses at http://www.ukfree.tv/, if you can not find
a file for your transmitter or the file does not work you will probably need to make one yourself.
You may need
to copy the channles.conf file to the .mplayer directory in your home directory before mplayer can use the file.
2) How can i get all the channels from multiple scans into one file?
Here in the UK some channels only work at certain times of day, so we have to scan multiple
times over the course of a day to see all the channels.
For example BBC THREE only works from 7pm - 1am, when active it registers with a working VIDEO PID and AUDIO PID 301:202:4288 , but when not active looks like a Text channel :0:0:4288
First create some channels.conf files scanned at different times throughout the day using linux dvb apps scan util:
$ ./scan dvb-t/uk-plympton | tee temp-channels.conf-7am
$ ./scan dvb-t/uk-plympton | tee temp-channels.conf-2pm
$ ./scan dvb-t/uk-plympton | tee temp-channels.conf-8pm
then I use grep to remove all the channels that have no video and no audio
$ cat temp-channels.conf-7am | grep -v :0:0: >> NO-Text-chanls.conf
$ cat temp-channels.conf-2pm | grep -v :0:0: >> NO-Text-chanls.conf
$ cat temp-channels.conf-8pm | grep -v :0:0: >> NO-Text-chanls.conf
$ cp NO-Text-chanls.conf ~/.mplayer/channels.conf
The only trouble with this is you will have multiple entry's for channels although this should not effect anything,
simply run 'chanl -nodup'.
If you know a better way then please let me know.
3) When I select a channel nothing happens?
To see whats happening when a command is executed on a channel run the command in an xterm
for example add this to the .chanlrc config file:
command=xterm -e "mplayer dvb://'%c'; sleep 10"
Now when you press the "1" key an xterm will be run with your command.