4 #prms="-stereo 1 -vf pp=lb -cache 2048"
5 prms
="--extraintf ncurses --play-and-exit --video-filter=deinterlace --deinterlace-mode=blend -f"
6 conf
="$HOME/bin/tv.conf"
8 # shows all available channels
9 function show_channels
() {
10 for a
in `grep -v "#" $conf | cut -d":" -f1`; do
16 # some usage informations
17 function show_help
() {
18 echo "Usage: `basename $0` <param> [nocache|nostereo]"
20 echo "<param> is one of:"
21 echo " <channel> is parsed from $conf, now is one of"
23 echo " usage, help show this help screen"
24 echo " listchannels, lschan list available channels"
29 # look for config file
30 if [ ! -f "$conf" ]; then
31 echo "Could not find config file, should be $conf."
37 echo "Not enough parameters"
56 gettv
=`grep "$1:" $conf`
58 addr
=`echo "$gettv" | grep -v "#" | cut -d":" -f2-`
60 echo "$1 :: unknown channel"
64 # check for cache param
75 #echo "Running: mplayer ${addr/@/} $params"
76 #mplayer ${addr} $params
77 echo "Running: cvlc $prms ${addr}"