# Copyright Jan Panteltje 2005 and later # released under the GPL # # this script should reside in /usr/local/sbin # the name of this script is 'show' # do a chmod +x /usr/local/sbin/show to make it executable. # Usage: show [program_name or stop] [.] # show without arguments pops up a menu with program names. # If you call show with a third argument, moving to a sat will be done even if already at that position. # Show stores the current position in ~/.xdipo/angle # If you make a link named 'showr' like this: # ln -s /usr/local/sbin/show /usr/local/sbin/showr # then typing showr itv4 should record itv4 to RECORD_DIR # If you make a link named 'showe' like this: # ln -s /usr/local/sbin/show /usr/local/sbin/showe # then typing showe itv4 should send the stream to the IP defined as EEEPC # On the eeePC you need to _first_ start the script # while [ 1 ] # do # netcat -l -p 1234 | mplayer -fs -vop pp=0x20000 -monitoraspect 800:480 -cache 1000 - # done # For this to work your network connection needs to be fast enough! # mofify this for where your recordings go. RECORD_DIR=/mnt/hdd4/video # tuner TUNER_POSITIONER=/usr/local/bin/xdipo # modify this if you use jpcam decoder. #FILTER=/usr/local/bin/jpcam FILTER=/usr/local/bin/jpinfo TXT_DECODER=/usr/local/bin/jpvtx # dialog may crash in rxvt, better use Xdialog #DIALOG=dialog DIALOG=Xdialog EEEPC=10.0.0.155 EEEPC_PORT=1234 record_mode=0 if [ "$0" = "/usr/local/sbin/showr" ] then echo "showr: record mode" record_mode=1 fi if [ "$0" = "/usr/local/sbin/showe" ] then echo "showe display on eeePC" record_mode=2 fi if [ "$1" = "" ] then # show menu $DIALOG --menu "Programs" 30 40 20 \ 3sat "" \ al-manar "" \ anixe "" \ ard "" \ ard-hotbird "" \ astra1_promo_hd "" \ astra-hd "" \ authentic-tv "" \ aztv1 "" \ bbc1 "" \ bbc2 "" \ bbc3 "" \ bbc4 "" \ bbc-hd "" \ bbc-parliament "" \ bbc-prime "" \ belgium-hd2 "" \ c4 "" \ cbbc "" \ cbeebies "" \ cctv9 "" \ cctv9_2 "" \ chaine-parlementaire "" \ chile "" \ china "" \ cnbc "" \ cnes "" \ cnn "" \ cuba "" \ cyprus "" \ drdish "" \ ebs "" \ eins-extra "" \ esa "" \ euronews "" \ france2 "" \ france24 "" \ france3 "" \ greece1 "" \ hd_forum "" \ hotel-voyeur "" \ itv1 "" \ itv2 "" \ itv2s "" \ itv3 "" \ itv3s "" \ itv4 "" \ itv-hd "" \ jstv "" \ luxe-tv "" \ m6 "" \ mahari "" \ mbc2 "" \ nbc "" \ ndr "" \ nl1 "" \ nl2 "" \ nl3 "" \ ocko "" \ omropfryslan "" \ omropfryslan2 "" \ open-access "" \ prosieben "" \ prosieben-hd "" \ rai-due "" \ rai-tre "" \ rai-uno "" \ reality-tv "" \ rtl "" \ rtl2 "" \ rtl2_old "" \ rtl9 "" \ rtl_old "" \ russia "" \ russia2 "" \ russia3 "" \ russia_today "" \ sa "" \ sat1 "" \ sexysat1 "" \ sexysat2 "" \ sexysat3 "" \ sexysat4 "" \ sf1 "" \ sf2 "" \ sky "" \ super-rtl-a "" \ tf1 "" \ tf6 "" \ tps_hd "" \ tsr1 "" \ tsr2 "" \ turkey1 "" \ upromtv "" \ venezuela "" \ vie "" \ vie_e "" \ vox "" \ vox_old "" \ wdr "" \ wdr "" \ zdf "" \ zdf-hotbird "" \ 2>/tmp/dialog if [ "$?" = 1 ] then echo "User abort" exit 1 fi program=`/bin/cat /tmp/dialog` rm /tmp/dialog elif [ "$1" = "stop" ] then echo "show: stop" killall xine killall mplayer exit 0 else program=$1 fi echo "show: selected program=$program" # default language #lan=eng if [ "$program" = "drdish" ] then sat=hotbird freq=11304 pol=h sym=27500 # vpid= # apid= # tpid= #ID Challenger TV prog=8409 elif [ "$program" = "esa" ] then sat=hotbird freq=11242 pol=v sym=27500 # vpid= # apid= # tpid= prog=9999 elif [ "$program" = "ard-hotbird" ] then sat=hotbird freq=11604 pol=h sym=27500 # vpid=172 # apid=173 # tpid=174 prog=606 elif [ "$program" = "ard" ] then sat=astra1 freq=11836.5 pol=h sym=27500 # vpid=101 # apid=102 # Dolby # apid=106 # tpid=104 prog=28106 elif [ "$program" = "wdr" ] then sat=astra1 freq=11836.5 pol=h sym=27500 # vpid=601 # apid=602 # tpid=604 prog=28111 elif [ "$program" = "astra1_promo_hd" ] then sat=astra1 freq=12032 pol=h sym=27500 vpid=512 apid=513 # tpid= # prog=2000 elif [ "$program" = "tps_hd" ] then # is mpeg4 H264 sat=hotbird freq=10834 pol=v sym=27500 vpid=120 apid=130 # tpid= # prog=1101 elif [ "$program" = "bbci1" ] then sat=astra2 freq=12441 pol=v sym=27500 vpid=2305 apid=2306 tpid=2319 # prog=6880 elif [ "$program" = "hotel-voyeur" ] then sat=astra2 freq=11259 pol=v sym=27500 # vpid=2324 # apid=2325 # tpid= prog=52156 # from 19 maart 2008 elif [ "$program" = "eins-extra" ] then sat=astra1 freq=1074375 pol=h sym=22000 prog=99999 elif [ "$program" = "upromtv" ] then sat=astra2 freq=12246 pol=v sym=27500 vpid= apid= tpid= prog=99999 elif [ "$program" = "astra-hd" ] then sat=astra1 freq=12610.5 pol=v sym=22000 vpid=133 apid=134 tpid= # prog=21102 elif [ "$program" = "belgium-hd2" ] then sat=astra2 freq=10758 pol=v sym=22000 vpid=307 apid=255 tpid= # prog=1 elif [ "$program" = "luxe-tv" ] then sat=astra2 freq=11958 pol=h sym=27500 vpid=101 apid=102 tpid= # prog=1 elif [ "$program" = "al-manar" ] then sat=arabsat3a freq=11785 pol=v sym=27500 vpid=768 apid=769 tpid= # prog=1 elif [ "$program" = "cuba" ] then sat=hotbird freq=11304 pol=h sym=27500 vpid=101 apid=201 tpid= # prog=8405 elif [ "$program" = "chile" ] then sat=hotbird freq=11304 pol=h sym=27500 vpid=310 apid=256 tpid= # prog=8403 elif [ "$program" = "venezuela" ] then sat=hotbird freq=11304 pol=h sym=27500 vpid=1060 apid=1020 tpid= # prog=8402 elif [ "$program" = "zdf-hotbird" ] then sat=hotbird freq=11054 pol=h sym=27500 vpid=570 apid=571 tpid=572 # prog=8011 elif [ "$program" = "mbc2" ] then sat=badr2 freq=11642 pol=h sym=27500 # vpid=519 # apid=647 tpid= prog=8 elif [ "$program" = "anixe" ] then sat=astra1 freq=12721.75 pol=h sym=22000 vpid=1023 apid=1027 # tpid= # prog=10203 elif [ "$program" = "ocko" ] then sat=astra3 freq=12649 pol=h sym=4000 vpid=160 apid=80 tpid= prog=100 elif [ "$program" = "cnes" ] then sat=hotbird freq=12558 pol=v sym=27500 vpid=6143 apid=6142 tpid= # prog=9252 elif [ "$program" = "zdf" ] then sat=astra1 freq=11953.5 pol=h sym=27500 #16:9 # vpid=110 # mp2 # apid=120 # AC3 # apid=125 # tpid=130 prog=28006 elif [ "$program" = "ndr" ] then sat=astra1 freq=12266 pol=h sym=27500 vpid=1201 apid=1202 tpid=1204 elif [ "$program" = "wdr" ] then sat=astra1 freq=12266 pol=h sym=27500 vpid=1190 apid=1191 tpid= elif [ "$program" = "zdf_theater" ] then sat=astra1 freq=11953.5 pol=h sym=27500 vpid=1110 apid=1120 elif [ "$program" = "mahari" ] then sat=hotbird freq=11585 pol=v sym=27500 vpid=1341 apid=1342 elif [ "$program" = "ebs" ] then sat=hotbird freq=12475 pol=h sym=27500 vpid=101 apid=202 elif [ "$program" = "vox_old" ] then sat=hotbird freq=11054 pol=h sym=27500 vpid=500 apid=501 tpid=502 elif [ "$program" = "vox" ] then sat=astra1 freq=12188 pol=h sym=27500 # vpid=167 # apid=136 # tpid=71 prog=12060 elif [ "$program" = "rtl_old" ] then sat=hotbird freq=11054 pol=h sym=27500 vpid=160 apid=80 tpid=32 elif [ "$program" = "rtl" ] then sat=astra1 freq=12188 pol=h sym=27500 # vpid=163 # apid=104 # ac3pid=106 # tpid=105 prog=12003 # use_ac3=1 # play=xine elif [ "$program" = "rtl2_old" ] then sat=hotbird freq=11604 pol=h sym=27500 vpid=175 apid=176 tpid=177 elif [ "$program" = "rtl2" ] then sat=astra1 freq=12188 pol=h sym=27500 # vpid=166 # apid=128 # tpid=68 prog=12020 # play=xine elif [ "$program" = "rtl9" ] then sat=hotbird freq=11681 pol=h sym=27500 prog=200 # tpid=41 # play=xine play=mplayer elif [ "$program" = "france24" ] then sat=hotbird freq=11240 pol=v sym=27500 prog=13849 # tpid=41 # play=xine play=mplayer elif [ "$program" = "sexysat1" ] then sat=astra1 freq=12633.25 pol=h sym=22000 prog=12621 # vpid=221 # apid=321 elif [ "$program" = "sexysat2" ] then sat=hotbird freq=12360 pol=h sym=27500 prog=14031 # vpid=128 # apid=138 elif [ "$program" = "sexysat3" ] then sat=hotbird freq=12360 pol=h sym=27500 prog=14032 # vpid=231 # apid=251 elif [ "$program" = "sexysat4" ] then sat=hotbird freq=12360 pol=h sym=27500 prog=14033 # vpid=1218 # apid=1313 elif [ "$program" = "super-rtl-a" ] then sat=astra2 freq=12187.50 pol=h sym=27500 vpid=165 apid=120 tpid=65 play=xine elif [ "$program" = "tf6" ] then sat=hotbird freq=10911 pol=v sym=27500 prog=1607 elif [ "$program" = "russia" ] then sat=hotbird freq=11938 pol=h sym=27500 prog=7103 lan=rus play=xine elif [ "$program" = "russia2" ] then sat=hotbird freq=11034 pol=v sym=27500 vpid=820 apid=830 elif [ "$program" = "russia3" ] then sat=hotbird freq=12597 pol=v sym=27500 vpid=167 apid=108 elif [ "$program" = "russia_today" ] then sat=hotbird freq=10971 pol=h sym=27500 # vpid=276 # apid=532 prog=14 elif [ "$program" = "china" ] then sat=hotbird # freq=12169 freq=11785 pol=h sym=27500 # vpid=516 vpid=105 # apid=690 apid=107 # prog=105 elif [ "$program" = "jstv" ] then sat=hotbird freq=12597 pol=v sym=27500 vpid=2000 apid=2001 # japanese # apid=2002 # prog=8213 elif [ "$program" = "cctv9" ] then sat=hotbird freq=11034 pol=v sym=27500 vpid=620 apid=630 elif [ "$program" = "cctv9_2" ] then sat=eurobird1 freq=11661.54 pol=h sym=27500 # vpid=2328 # apid=2329 prog=51011 elif [ "$program" = "nbc" ] then sat=hotbird freq=11053 pol=h sym=27500 vpid=550 apid=551 tpid=552 elif [ "$program" = "cnbc" ] then sat=hotbird freq=11283 pol=v sym=27500 prog=13012 play=xine elif [ "$program" = "reality-tv" ] then sat=hotbird freq=11283 pol=v sym=27500 prog=13008 play=xine #elif [ "$program" = "cnn-htb" ] # then # sat=hotbird # freq=12597 # pol=v # sym=27500 # vpid=168 # apid=112 # tpid=56 # prog=8209 # play=xine elif [ "$program" = "cnn" ] then sat=astra1 freq=11778.00 pol=v sym=27500 prog=28522 vpid=165 apid=100 tpid=47 play=xine elif [ "$program" = "sf1" ] then sat=hotbird freq=12399 pol=h sym=27500 prog=901 lan=eng tpid=32 play=xine elif [ "$program" = "sf2" ] then sat=hotbird freq=12399 pol=h sym=27500 prog=907 lan=eng tpid=41 play=xine elif [ "$program" = "tsr1" ] then sat=hotbird freq=12399 pol=h sym=27500 prog=902 tpid=35 play=xine elif [ "$program" = "tsr2" ] then sat=hotbird freq=12399 pol=h sym=27500 prog=908 tpid=44 play=xine elif [ "$program" = "tf1" ] then sat=hotbird freq=10911 pol=v sym=27500 prog=1604 play=xine elif [ "$program" = "rai-uno" ] then sat=hotbird freq=11766 pol=v sym=27500 prog=3401 elif [ "$program" = "rai-due" ] then sat=hotbird freq=11766 pol=v sym=27500 prog=3402 elif [ "$program" = "rai-tre" ] then sat=hotbird freq=11766 pol=v sym=27500 prog=3403 elif [ "$program" = "nl1" ] then sat=astra1 freq=12515.25 pol=h sym=22000 tpid=34 prog=4011 # vpid=517 # apid=88 play=xine elif [ "$program" = "nl2" ] then sat=astra1 freq=12515.25 pol=h sym=22000 tpid=35 prog=4012 # vpid=518 # apid=92 play=xine elif [ "$program" = "nl3" ] then sat=astra1 freq=12515.25 pol=h sym=22000 tpid=36 prog=4013 # vpid=519 # apid=96 play=xine elif [ "$program" = "turkey1" ] then sat=turksat1c freq=11096 pol=v sym=27500 tpid=1120 prog=1 elif [ "$program" = "greece1" ] then sat=hellas2 freq=12524 pol=v sym=27500 tpid=2354 prog=1 elif [ "$program" = "prosieben" ] then sat=astra1 freq=12544 pol=h sym=22000 vpid=511 # normal audio apid=512 # dolby audio # apid=515 # teletext tpid=33 # prog=17501 elif [ "$program" = "prosieben-hd" ] then sat=astra1 freq=12441 pol=v sym=27500 # vpid=255 # apid=259 # tpid= prog=658 elif [ "$program" = "sat1" ] then sat=astra1 # AC3 freq=12544.75 pol=h sym=22000 vpid=255 # normal audio apid=256 # dolby audio # apid=259 tpid=32 # prog=17500 elif [ "$program" = "3sat" ] then sat=astra1 # AC3 freq=11953.5 pol=h sym=27500 vpid=210 apid=220 tpid=230 # prog=28007 elif [ "$program" = "vie" ] then sat=hotbird # freq=12092 # per 16-5-2005 freq=11785 pol=h sym=27500 vpid=4416 apid=4417 elif [ "$program" = "vie_e" ] then sat=hotbird # freq=12092 # per 16-5-2005 freq=11785 pol=h sym=27500 # vpid=4416 # apid=4417 #WARN, new frequency, this prog number is some other spanish channel. prog=8719 elif [ "$program" = "open-access" ] then sat=eurobird1 freq=11642 pol=v sym=27500 prog=50152 vpid=2312 apid=2318 elif [ "$program" = "sky" ] then sat=astra2 prog=50150 vpid=2317 apid=2318 freq=11488 pol=v sym=27500 elif [ "$program" = "france2" ] then sat=hotbird freq=10834 pol=v sym=27500 prog=1103 play=xine elif [ "$program" = "france3" ] then sat=hotbird freq=10834 pol=v sym=27500 prog=1105 play=xine elif [ "$program" = "bbc-prime" ] then sat=hotbird # from May 2 2006 freq=11131 # freq=11727 pol=v sym=5632 # sym=27500 prog=5001 # prog=99999 play=xine elif [ "$program" = "bbc1" ] then sat=astra2 freq=10773 pol=h sym=22000 # tpid=2305 prog=6301 elif [ "$program" = "bbc2" ] then sat=astra2 freq=10773 pol=h sym=22000 # tpid=2321 prog=6302 elif [ "$program" = "bbc3" ] then sat=astra2 freq=10773 pol=h sym=22000 # tpid=2326 prog=6319 elif [ "$program" = "bbc4" ] then sat=astra2 freq=10773 pol=h sym=22000 # tpid=2334 prog=6316 elif [ "$program" = "cbbc" ] then sat=astra2 freq=10773 pol=h sym=22000 vpid=5200 apid=5201 tpid=5303 # prog=6317 elif [ "$program" = "cbeebies" ] then sat=astra2 freq=10773 pol=h sym=22000 vpid=5300 apid=5301 tpid=5303 # prog=6318 elif [ "$program" = "bbc-hd" ] then sat=astra2 freq=10847 pol=v sym=22000 vpid=2318 # apid=2319 apid=2320 tpid=2321 # prog=6940 elif [ "$program" = "bbc-parliament" ] then sat=astra2 freq=10847 pol=v sym=22000 tpid=2331 prog=6902 elif [ "$program" = "itv1" ] then sat=astra2 freq=10758 pol=v sym=22000 # vpid=2318 # apid=2319 # tpid=2320 prog=10080 elif [ "$program" = "itv2" ] then sat=astra2 freq=10758 pol=v sym=22000 # vpid=2314 # apid=2315 # tpid=2317 prog=10070 elif [ "$program" = "itv2s" ] then sat=astra2 freq=10758 pol=v sym=22000 # vpid=2314 # apid=2315 # tpid=2317 prog=10075 elif [ "$program" = "itv3" ] then sat=astra2 freq=10906 pol=v sym=22000 # vpid=2356 # apid=2357 # tpid=2359 prog=10260 play=xine elif [ "$program" = "itv3s" ] then sat=astra2 freq=10906 pol=v sym=22000 # vpid=2356 # apid=2357 # tpid=2359 prog=10261 play=xine elif [ "$program" = "itv4" ] then sat=astra2 freq=10758 pol=v sym=22000 # vpid=2305 # apid=2306 # tpid=2309 prog=10072 play=xine elif [ "$program" = "c4" ] then sat=astra2 freq=10714 pol=h sym=22000 # vpid= # apid= # tpid= prog=9281 play=xine elif [ "$program" = "itv-hd" ] then sat=eurobird1 freq=11426 pol=h sym=27500 # vpid=3401 # apid=3402 # tpid= prog=10510 play=xine elif [ "$program" = "m6" ] then sat=hotbird freq=10911 pol=v sym=27500 prog=1601 play=xine elif [ "$program" = "chaine-parlementaire" ] then sat=hotbird freq=10873 pol=v sym=27500 prog=1510 play=xine elif [ "$program" = "hd_forum" ] then sat=hotbird freq=11013 pol=h sym=27500 vpid=272 apid=528 prog=10 play=xine elif [ "$program" = "euronews" ] then sat=hotbird freq=12596 pol=v sym=27500 vpid=2221 apid=2232 tpid=768 lan=eng elif [ "$program" = "aztv1" ] then sat=sesat freq=12512 pol=h sym=4340 vpid=4194 apid=4195 elif [ "$program" = "cyprus" ] then sat=hellas2 freq=12524 pol=v sym=27500 prog=2314 elif [ "$program" = "authentic-tv" ] then sat=eurobird1 freq=11642 pol=v sym=27500 prog=50956 elif [ "$program" = "sa" ] then sat=astra2 freq=12402 pol=v sym=27500 # prog=9569 # play=xine elif [ "$program" = "omropfryslan" ] then sat=astra1 freq=11479.00 pol=v sym=22000 prog=20808 # play=xine elif [ "$program" = "omropfryslan2" ] then sat=astra2 freq=11914.50 pol=h sym=27500 prog=20808 # play=xine else echo "unknown station" exit 1 fi # select an angle to move the dish to # THESE ANGLES ARE DIFFERENT FOR YOUR LOCATION, use xdipo calculator to calculate these. # 13 E if [ "$sat" = "hotbird" ] then # Hotbird 13 E = calc 8 E angle="5 E" # 19 E elif [ "$sat" = "astra1" ] then # Astra 1 19 E = calc 14.80 E angle="12.0 E" # 23.5 E elif [ "$sat" = "astra3" ] then # Astra 3 23.5 E = calc 14.0 angle="14.0 E" elif [ "$sat" = "badr2" ] then # BADR2 3 25.8 E = calc 24.6 angle="14.6 E" # 26 E elif [ "$sat" = "arabsat3a" ] then # Arabsat 3A 26 E = calc 24.83 angle="16.8 E" # 28.2 E elif [ "$sat" = "astra2" ] then # Astra 2 28.2 E = calc 27.39 angle="22.0 E" # 28.5 E elif [ "$sat" = "eurobird1" ] then # Eurobird 1 28.5 E = calc angle="22.0 E" # 36 E elif [ "$sat" = "sesat" ] then # Sesat 36 E = calc 33.11 E angle="26.5 E" # 39 E elif [ "$sat" = "hellas2" ] then # Hellas 2 39 E = calc 36.35 E angle="30.5 E" # 42 E elif [ "$sat" = "turksat1c" ] then # Turksat 1C 42 E = calc 39.58 angle="33.5 E" else echo "show: unknown satellite" exit 1 fi echo "show: using $sat $angle" # test if same angle current_angle=`/bin/cat /root/.xdipo/angle` echo "show: current_angle=$current_angle" #diff_angle=$(($current_angle[1]-$angle)) #echo "diff angle=$diff_angle" #exit move_command="" aspect="" if [ "$2" = "" ] then if [ "$current_angle" = "$angle" ] then /bin/echo "same angle $angle" move_command=0 delay=1 else move_command=1 delay=10 fi elif [ "$2" = "16" ] then aspect="-aspect 16:9" echo FLUP move_command=1 delay=10 elif [ "$2" = "4" ] then aspect="-aspect 4:3" echo FLUP move_command=1 delay=10 else move_command=1 delay=10 fi /bin/echo $angle > /root/.xdipo/angle echo "show: move_command=$move_command" # stop any running players / chains /usr/bin/killall xine /usr/bin/killall dvbstream /usr/bin/killall xdipo /usr/bin/killall mplayer # clear teletext related rm ~/jpcam_pids rm /video/vtx/1/* # try to position dish, allow 10 seconds for motor movement before check for lock # exit error if no lock #if [ move_command = 1 ] #then echo "show: moving dish" echo "executing $TUNER_POSITIONER -c 1 -g '$angle' -f $freq -p $pol -s $sym -a "8192" || exit 1" $TUNER_POSITIONER -c $delay -g "$angle" -f $freq -p $pol -s $sym -a "8192" || exit 1 echo "show: have LOCK" #fi #exit if [ "$use_ac3" == "1" ] then play=mplayer ac3_only="-b" fi # select a player, if encrypted and jpcam, then use xine, it has better demuxer on .ts if [ "$play" == "mplayer" ] then # using '-nice -19' prevents irregular display in mplayer # sblive = hw=1,0 does 6 ch audio # if ac3pid use -b flag in jpcam or jpinfo player="mplayer $aspect -ao alsa:device=hw=1,0 -fs -cache 8192 -vop pp=0x20000 -" # player="nice -n -19 xine -D -gf stdin:/" elif [ "$play" == "xine" ] then # do not use '-nice -19' with xine, as that will cause severe sys load, # and buffer overflow in DVB driver. player="xine -D -gf stdin:/" else echo "show: no player specified, using xine as default player" player="xine -D -gf stdin:/" fi # in record mode we use cp as player if [ "$record_mode" = "1" ] then # create a unique filename with date. date=`/bin/date +%R_%d_%m_%Y` player="cp /dev/stdin $RECORD_DIR/$program.$sat.$date" fi if [ "$record_mode" = "2" ] then player="netcat $EEEPC $EEEPC_PORT" fi echo "show: using $player" #exit # if we know the progam number, use that if [ "$prog" != "" ] then if [ "$lan" != "" ] then echo "show: using prog lan" # If jpvtx sees no tpid, then it wil get it from jpcam, # if nothing there too, then it will copy stdin to stdout. # It is better to have jpvtx last in the chain, as it copies 188 bytes at the time # from stdin to stdout, and giving it full TS would increase system load. # # the -c 0 causes an immediate check for 'lock', as there should be lock now. echo "executing $TUNER_POSITIONER -c 1 -g '$angle' -f $freq -p $pol -s $sym -a "8192" -o | $FILTER $ac3_only -p $prog -l $lan | $TXT_DECODER $tpid | $player" $TUNER_POSITIONER -c 1 -g "$angle" -f $freq -p $pol -s $sym -a "8192" -o | \ $FILTER -p $prog -l $lan | \ $TXT_DECODER $tpid | \ $player exit else echo "show: using prog" # if jpvtx sees no tpid, it wil get it from $FILTER echo "executing $TUNER_POSITIONER -c 1 -g '$angle' -f $freq -p $pol -s $sym -a "8192" -o | $FILTER $ac3_only -p $prog | $TXT_DECODER $tpid | $player" $TUNER_POSITIONER -c 1 -g "$angle" -f $freq -p $pol -s $sym -a "8192" -o | \ $FILTER -p $prog | \ $TXT_DECODER $tpid | \ $player exit fi # if we have video and audio pids we can still watch elif [ "$vpid" != "" ] then if [ "$apid" != "" ] then # if we have teletext pid we can do teletext if [ "$tpid" != "" ] then echo "show: using vpid apid tpid" echo "executing $TUNER_POSITIONER -c 1 -g '$angle' -f $freq -p $pol -s $sym -a "$vpid $apid $tpid" -o | $TXT_DECODER $tpid | $player" $TUNER_POSITIONER -c 1 -g "$angle" -f $freq -p $pol -s $sym -a "$vpid $apid $tpid" -o | \ $TXT_DECODER $tpid | \ $player exit else echo "show: using vpid apid" echo "executing $TUNER_POSITIONER -c 1 -g '$angle' -f $freq -p $pol -s $sym -a "$vpid $apid" -o | $player" $TUNER_POSITIONER -c 1 -g "$angle" -f $freq -p $pol -s $sym -a "$vpid $apid" -o | \ $player exit fi else echo "show: no apid" exit 1 fi else echo "show: no vpid!" exit 1 fi fi exit 0