You are on page 1of 6

#!/bin/bash ########## DEFINIZIONE VARIABILI UTILIZZATE NELLO SCRIPT ########## # User agent del riproduttore.

Serve solo per riprodurre le dirette RAI. #+ NON modificare se non sai quello che fai! USER_AGENT="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090910 F irefox/3.5.3" # Player utilizzato. NOTA BENE: è possibile usare solo `vlc', `mplayer' o `gmplay er'. #+ Modificalo come preferisci fra le 3 opzioni possibili. Ricorda inoltre che `m player' #+ e `gmplayer' non permettono di riprodurre correttamente i TG regionali. # Nome dell'emulatore di terminale usato per visualizzare il televideo. Se non è #+ impostato nessun valore viene usato `xterm' di defualt. TERMINALE=xterm ########## FINE DEFINIZIONE VARIABILI ########## ########## INIZIO DEFINIZIONE DELLE FUNZIONI USATE NELLO SCRIPT ########## while [ $? -eq 0 ]; do # Funzione per scegliere l'operazione da eseguire all'inizio function scelta_operazione(){ operazione=`zenity --width=300 --height=100 --list --column "" --title=" Programe Tv și Radio" --text=" Alege :" "TV" "RADIO"` } # Funzione per scegliere la stazione radio da riprodurre function scelta_stazione(){ stazione=`zenity --list --height=400 --width=300 --title="Programe Radio " --text="Alege un canal" --column=""\ "Antena Satelor" "Kiss Fm" "Kiss Plus" "Miloș Radio" "Na ional Fm" "ProFM Ja zz" "Radio3Net-Lautărescă" "Radio Intens" \ "Radio Popular" "Radio Tradi ional" "Radio Monte Carlo" "România Actualită i" "S KY.FM - classic Jazz" "Smooth Jazz" "S K Y-Muzică de Relaxare" \ "Radio3Net High" "Radio3Net Folk"` } # Funzione per scegliere la il canale televisivo da riprodurre function scelta_canale(){ canale=`zenity --list --height=900 --width=250 --title="Programe TV" --t ext="Alge un canal" --column=""\ "1 Tv Neant" "6 TV" "Alfa & Omega" "Acasa" "Antena 1" "Antena 2" "Antena 3" "AXN" "AXN Crime" \ "AXN SCI-FI" "B 1" "BBC" "Boomerang" "Cartoon Network" "Dysney Channel" "CNC Cluj" "Columna" "Diva" "Cinemax" "Canal 7" "Digi Film" "Etalon Tv" "Eufori a" \ "Euronews" "Fashion" "Film Box Extra" "HBO" "HBO Comedy" "Iași TV" "InfoPe scar" "Jurnal Tv" "Kanal D" \ "Litoral Tv" "M 1 Moldova" "Mega Tv" "Mix 2" "Muntenia Tv Giurgiu" "Musc el Tv" "National Tv" "NASA Educational Channel" \ "Realitatea Tv" "NASA Media Channel" "NCN Cluj" "Neptun Tv" "Noroc" "OT V" "Prima" "Pro Cinema" "Pro Tv" "Pro Tv Interna ional" "PVTv" \ "Speranta Tv" "Tele Europa Nova" "Kiss Tv RO" "TeleM-Neam " "TLC" "TTM-Târg u Mureș" "TV 1000" "TV 1 Satu Mare" \ "TVM - Piatra Neam " "TVR 1" "TVR 2" "TVR 3" "TVR Cluj" "TVR Craiova" "TV R Cultural" "TVR HD" "TVR Iasi" "TVR Info" "TVR International" \ "TVR Mures" "TV Sibiu" "TVRM Educa ional" "TVT89" "TvSat" "Tv Total - Vas lui" "Sky News" "Someș Tv" "Digi Sport 1" "Digi Sport 2" \ "Digi Sport 3" "Dolce Sport" "Dolce Sport 2" "Eurosport" "Eurosport 2"

"GSP TV" "Sport Ro" "Sport Klub" "Best Of Music" "Charts1" \ "Dans Tv" "Deluxe Music" "Etno" "ESKA" "Hellenic-Energy -Cipru" "HIT MUS IC" "Inedit Tv-Cornea" "Italy Tv" "Italy Show" "JV TV" "Kiss RO" \ "Kiss ES" "Legend" "MixRadio Video" "MPIK Tv" "Musicbox Rus" "MTV HD" "MT V-televisamtv" "Mynele" "N1" "Party" "Planeta-online" "Radio 105" \ "Rebel Tv" "Rock One TV" "Sunrise" "RMC 1" "Supersonic" "Taraf" "U TV" "V ideolinaSat" "VH1" "Virgin 1" "Zona M" "MoozRo" "XMusic" ` } # Funzione per scegliere la regione di cui riprodurre l'ultimo TG regionale di R AI 3 function seleziona_regione(){ regione=`zenity --list --height=400 --width=300 --title="Tg Regione" --t ext="Seleziona la regione:" --column="Regione" "Abruzzo"\ "Basilicata" "Calabria" "Campania" "Emilia-Romagna" "Friuli-Venezia Giul ia" "Lazio" "Liguria" "Lombardia" "Marche" "Molise"\ "Piemonte" "Puglia" "Sardegna" "Sicilia" "Toscana" "Trentino-Alto Adige" "Umbria" "Valle d'Aosta" "Veneto"` } # Funzione per riprodurre le dirette (televisive e radiofoniche). #+ Viene riprodotto l'indirizzo passato come argomento alla funzione function riproduci_diretta(){ if [ $PLAYER = vlc ]; then $PLAYER -v --http-user-agent "$USER_AGENT" "$1" # comandi da usare iprodurre il canale se si usa VLC else $PLAYER -prefer-ipv4 -user-agent "$USER_AGENT" -playlist "$1" # di da usare per riprodurre il canale #+ altri casi, cioè se si usa `mplayer' #+ player' fi }

per r coman negli o `gm

########## FINE DEFINIZIONE FUNZIONI ########## ########## INIZIO DELLO SCRIPT VERO E PROPRIO ########## scelta_operazione # sceglie l'operazione da eseguire (vedere tv, ascoltare radio , vedere tg regionale, guardare televideo) case "$operazione" in "TV") seleziona_canale ;; "RADIO") seleziona_stazione ;; esac if [ "$?" = "0" ]; then break fi if [ "$operazione" = "RADIO" ]; then # Se l'operazione scelta è l'ascolto dell a radio scelta_stazione #+ usa la funzione per seleziona re la stazione da riprodurre case $stazione in "Antena Satelor") vlc http://stream2.srr.ro:8040 ;; "Kiss Fm") vlc http://80.86.106.136:80/ ;;

"Kiss Plus") vlc http://live21.hopto.org:8031/ ;; "Miloș Radio") vlc http://melos.ro:8805 ;; "Na ional Fm") vlc http://live.nationalfm.ro:8001 ;; "ProFM Jazz") vlc http://stream.profm.ro:8212/jazz.mp3 ;; "Radio3Net-Lautărescă") totem mms://library.radio3net.ro/Muzica%20la utareasca ;; "Radio Intens") vlc http://178.33.248.104:8040 ;; "Radio Popular") vlc http://live2.radiopopular.ro:8888 ;; "Radio Tradi ional") vlc http://radiotraditional.zapto.org:7600 ;; "Radio Monte Carlo") rtmpdump -v -r "rtmp://fms.105.net:1935/liv vlc - ;; "România Actualită i") vlc http://89.238.227.6:8002/ ;; "SKY.FM - classic Jazz") vlc http://u17.sky.fm:80/sky_jazzclassi "Smooth Jazz") vlc http://tai-02.egihosting.com/smoothjazz-128kmp3 ;; "S K Y-Muzică de Relaxare") vlc http://u16.sky.fm:80/sky_relaxatio n_aacplus ;; "Radio3Net High") vlc mms://library.radio3net.ro/High ;; "Radio3Net Folk") vlc http://media.3netmedia.ro:8000/folkmp3.m3 u ;; esac elif [ "$operazione" = "TV" ]; then # Se invece si sceglie di vedere la tel evisione scelta_canale #+ usa la funzione per seleziona re il canale da riprodurre case $canale in "1 Tv Neant") vlc http://1tv.ambra.ro ;; "6 TV") vlc http://89.149.1.42:8800/flv-audio-video/ ;; "Alfa & Omega") vlc rtmp://93.113.136.24/alfaomega/alfaomega.sdp ;; "Acasa") sopcast-player sop://broker.sopcast.com:3912/111594 ;; "Antena 1") sopcast-player sop://broker.sopcast.com:3912/80625 ; ; "Antena 2") sopcast-player sop://218.106.52.252:3912/112948 ;; "Antena 3") sopcast-player sop://broker.sopcast.com:3912/74842 ;; "AXN") sopcast-player sop://broker.sopcast.com:3912/60709 ;; "AXN Crime") sopcast-player sop://broker.sopcast.com:3912/60711 ;; "AXN SCI-FI") sopcast-player sop://broker.sopcast.com:3912/60710 ;; "B 1") sopcast-player sop://broker.sopcast.com:3912/74841 ;; "BBC") vlc rtsp://media2.lsops.net/live/bbcnews_en_high.sdp ;; "Boomerang") sopcast-player sop://broker.sopcast.com:3912/60712 ;; "Cartoon Network") sopcast-player sop://broker.sopcast.com:3912/ 80593 ;; "Dysney Channel") sopcast-player sop://broker.sopcast.com:3912/6 0705 ;; "CNC Cluj") vlc http://ncn.simpliq.net:8090/ncn.flv ;; "Columna") vlc rtmp://188.173.32.245/live/columnatv ;; "Diva") sopcast-player sop://broker.sopcast.com:3912/112098 ;; "Cinemax") sopcast-player sop://broker.sopcast.com:3912/111777 ; ; "Canal 7") vlc mms://tele-plus.canal7.ro:8080 ;; "Digi Film") sopcast-player sop://218.106.52.252:3912/112229 ;; "Etalon Tv") vlc http://82.137.6.131:8080 ;;

e" -y "RMC" cs_aacplus ;;

"Euforia") sopcast-player sop://broker.sopcast.com:3912/74634 ;; "Euronews") vlc rtsp://media2.lsops.net:80/live/euronews_en_high .sdp ;; "Fashion") vlc rtsp://217.146.95.166:554/live/ch27yqvga.3gp ;; "Film Box Extra") sopcast-player sop://broker.sopcast.com:3912/1 12097 ;; "HBO") sopcast-player sop://broker.sopcast.com:3912/116006 ;; "HBO Comedy") sopcast-player sop://broker.sopcast.com:3912/11600 7 ;; "Iași TV") mplayer -zoom -x 900 -y 600 mms://82.208.151.248:8989 ;; "InfoPescar") rtmpdump -v -r "rtmp://ak.neoflux.co.uk:1935/infop escar" -a "infopescar" -f "LNX 11,1,102,55" -W "http://www.infopescar.tv/yyy/pla yer.swf" -p "http://www.infopescar.tv/video/infopescartv-live/" -y "rtmp" vlc - ;; "Jurnal Tv") vlc http://ch0.jurnaltv.md/channel0.flv ;; "Kanal D") sopcast-player sop://broker.sopcast.com:3912/112095 ; ; "Litoral Tv") vlc rtmp://direct.multimedianet.ro/live/livestream ;; "M 1 Moldova") vlc rtmp://212.0.211.122/live/livestream ;; "Mega Tv") mplayer -zoom -x 900 -y 600 http://89.36.72.7:8080/ ; ; "Mix 2") mplayer -zoom -x 900 -y 600 mms://82.78.150.151:1234 ;; "Muntenia Tv Giurgiu") mplayer -zoom -x 900 -y 600 mms://92.55. 139.190:9001 ;; "Muscel Tv") vlc mms://musceltvlive.muscel.ro:8080 ;; "National Tv") sopcast-player sop://broker.sopcast.com:3912/6070 4 ;; "NASA Educational Channel") vlc mms://a1626.l1856941625.c18569.g .lm.akamaistream.net/D/1626/18569/v0001/reflector:41625 ;; "NASA Media Channel") vlc mms://a1926.l1856941925.c18569.g.lm.ak amaistream.net/D/1926/18569/v0001/reflector:41925 ;; "NCN Cluj") vlc http://ncn.simpliq.net:8090/ncn.flv ;; "Neptun Tv") vlc rtmp://89.41.34.2:1935/live/livestream ;; "Noroc") rtmpdump -v -r "rtmp://live.noroc.tv/livepkgr/live/live stream_2" -W "http://www.noroc.tv/live/player.swf" vlc - ;; "OTV") sopcast-player sop://broker.sopcast.com:3912/60708 ;; "Prima") sopcast-player sop://broker.sopcast.com:3912/60586 ;; "Pro Cinema") sopcast-player sop://broker.sopcast.com:3912/80622 ;; "Pro Tv") sopcast-player sop://broker.sopcast.com:3912/80621 ;; "Pro Tv Interna ional") sopcast-player sop://218.106.52.252:3912/9 0686 ;; "PVTv") vlc http://92.61.114.188:8080/tematik_MEDIA_pvtv-ro-mpeg 4aac.flv ;; "Realitatea Tv") sopcast-player sop://broker.sopcast.com:3912/74 843 ;; "RTV") sopcast-player sop://broker.sopcast.com:3912/111690 ;; "Speranta Tv") vlc rtmp://amsix49.crestin.tv:80/live/sperantatv_ 500 ;; "Tele Europa Nova") vlc http://85.186.34.72:8080/ ;; "Kiss Tv RO") totem rtsp://fms30.mediadirect.ro/live/kiss/kiss ; ; "TeleM-Neam ") vlc http://telem.ambra.ro ;; "TLC") sopcast-player sop://broker.sopcast.com:3912/116010 ;; "TTM-Târgu Mureș") vlc rtmp://streaming.tvmures.ro/live/ttm ;; "TV 1000") sopcast-player sop://broker.sopcast.com:3912/60703 ;; "TV 1 Satu Mare") vlc http://www.tv1samtel.ro:8080/stream.flv ;; "TVM - Piatra Neam ") vlc http://tvm.ambra.ro ;;

"TVR "TVR "TVR "TVR j_low ;;

1") sopcast-player sop://broker.sopcast.com:3912/60706 ;; 2") sopcast-player sop://broker.sopcast.com:3912/80620 ;; 3") totem rtsp://fms3.mediadirect.ro/live/tvr3/tvr3 ;; Cluj") totem rtsp://fms3.mediadirect.ro/live/tvrcluj/tvrclu

"TVR Craiova") totem rtsp://fms3.mediadirect.ro/live/tvrcraiova/ tvrcraiova_low ;; "TVR Cultural") totem rtsp://fms30.mediadirect.ro/live/tvrcultur al/tvrcultural ;; "TVR HD") totem rtsp://fms30.mediadirect.ro/live/tvrhd/tvrhd ;; "TVR Iasi") totem rtsp://fms30.mediadirect.ro/live/tvriasi/tvria si_low ;; "TVR Info") totem rtsp://fms30.mediadirect.ro/live/tvrinfo/tvrin fo ;; "TVR International") totem rtsp://fms30.mediadirect.ro/live/tvr/ tvr ;; "TVR Mures") totem rtsp://fms3.mediadirect.ro/live/tvrmures/tvrm ures_low ;; "TV Sibiu") vlc mms://84.232.148.97:8080 ;; "TVRM Educa ional") vlc mms://86.34.169.52:8080/ ;; "TVT89") rtmpdump -v -r "rtmp://95.77.98.73/live/tvt89" -a "live /tvt89" -f "LNX 11,1,102,55" -W "http://www.evenimentelive.ro/player/playerOK.sw f" -p "http://www.evenimentelive.ro/canale/tvt89.html" -y "tvt89" vlc - ;; "TvSat") rtmpdump -v -r "rtmp://streaming.tvsatrm.ro/live" -a "l ive" -f "LNX 11,1,102,55" -W "http://live.tvsatrm.ro/player.swf" -p "http://live .tvsatrm.ro/" -y "tvsat" vlc - ;; "Tv Total - Vaslui") vlc mms://89.46.222.17:9001 ;; "Sky News") vlc mms://live1.wm.skynews.servecast.net/skynews_wml z_live300k ;; "Someș Tv") totem rtsp://fms30.mediadirect.ro/live/somes/somes_low ;; "Digi Sport 1") sopcast-player sop://broker.sopcast.com:3912/111 719 ;; "Digi Sport 2") sopcast-player sop://broker.sopcast.com:3912/111 686 ;; "Digi Sport 3") sopcast-player sop://218.106.52.252:3912/112233 ;; "Dolce Sport") sopcast-player sop://218.106.52.252:3912/112093 ; ; "Dolce Sport 2") sopcast-player sop://218.106.52.252:3912/112094 ;; "Eurosport") sopcast-player sop://broker.sopcast.com:3912/124646 ;; "Eurosport 2") sopcast-player sop://broker.sopcast.com:3912/8039 8 ;; "GSP TV") sopcast-player sop://218.106.52.252:3912/111618 ;; "Sport Ro") sopcast-player sop://broker.sopcast.com:3912/80562 ; ; "Sport Klub") sopcast-player sop://broker.sopcast.com:3912/11600 8 ;; "Best Of Music") vlc rtmp://91.82.85.47:8080/relay/bestof ;; "Charts1") vlc rtmp://fms.105.net:1935/live/charts1 ;; "Dans Tv") vlc http://wtv.cores.biz/relay/zonam.mp4 ;; "Deluxe Music") rtmpdump -v -r "rtmp://flash.cdn.deluxemusic.tv/ deluxemusic.tv-live/" -a "deluxemusic.tv-live/" -f "LNX 11,1,102,55" -W "http:// static.staging.deluxemusic.tv.dl1.ipercast.net/theme/deluxemusic.tv/flash/player .swf" -p "http://deluxemusic.tv.staging.ipercast.net/?ContentId=349&policy=4b0e4 5e91a92e&PlaylistContent=0" -y "web_850" vlc - ;; "Etno") totem rtsp://fms3.mediadirect.ro/live/etno/etno ;; "ESKA") rtmpdump -v -r "rtmp://46.105.112.212:1935/live" -a "liv

e" -f "LNX 11,1,102,55" -W "http://www.eska.tv/thrdparty/flowplayer/flowplayer.r tmp-3.1.4.swf" -p "http://www.eska.tv/player" -y "mpegts.stream" vlc - ;; "Hellenic-Energy -Cipru") vlc mmsh://wms-01.visionip.tv/Hellenic -Energy ;; "HIT MUSIC") vlc http://88.191.126.62:18002 ;; "Inedit Tv-Cornea") vlc rtmp://86.120.73.254/live/CorneaTVLive ; ; "Italy Tv") vlc rtmp://fms.105.net:1935/live/italytv1 ;; "Italy Show") vlc rtmp://wowza1.top-ix.org/quartaretetv1/formusi cweb ;; "JV TV") rtmpdump -v -r "rtmp://212.7.194.21:1935/live2" -a "li ve2" -f "LNX 9,0,124,2" -y "myStream" vlc - ;; "Kiss RO") totem rtsp://fms30.mediadirect.ro/live/kiss/kiss ;; "Kiss ES") vlc rtmp://kisstelevision.es.flash3.glb.ipercast.net/ kisstelevision.es-live/live ;; "Legend") vlc rtmp://fms.105.net:1935/live/legend1 ;; "MixRadio Video") vlc http://62.75.191.45:8050 ;; "MPIK Tv") vlc rtmp://fms.pik-tv.com/live/piktv3pik3tv ;; "Musicbox Rus") vlc rtmp://musicbox.cdnvideo.ru/musicbox-live/m usicbox.sdp ;; "MTV HD") rtmpdump -v -r "rtmp://s7.webport.tv:1935/live" -a "li ve" -f "LNX 10,0,32,18" -W "http://www.tvsector.com/wp-content/uploads/jw-player -plugin-for-wordpress/player/player.swf" -p "http://www.tvsector.com/" -y "z0100 01.stream" vlc - ;; "MTV-televisamtv") vlc rtmp://94.102.56.186/histream/televisamtv ;; "Mynele") sopcast-player sop://broker.sopcast.com:3912/116001 ;; "N1") sopcast-player sop://broker.sopcast.com:3912/112661 ;; "Party") sopcast-player sop://broker.sopcast.com:3912/116002 ;; "Planeta-online") vlc rtmp://www.planeta-online.tv:1936/live/cha nnel_4 ;; "Radio 105") vlc rtmp://fms.105.net:1935/live/105Test1 ;; "Rebel Tv") vlc rtmp://188.165.251.60:8080/publishlive?play=1234 52/rebeltv ;; "Rock One TV") vlc http://mediatv2.topix.it/24RockOne66 ;; "Sunrise") vlc http://wtv.cores.biz/relay/sunrise.mp4 ;; "RMC 1") vlc rtmp://fms.105.net:1935/live/rmc1 ;; "Supersonic") vlc rtmp://69.31.79.13:1935/228/stv_online ;; "Taraf") sopcast-player sop://broker.sopcast.com:3912/74846 ;; "U TV") totem rtsp://fms30.mediadirect.ro/live/utv/utv ;; "VideolinaSat") rtmpdump -v -r "rtmp://91.121.222.160/videolina live/videolinalive.sdp" -q vlc - ;; "VH1") vlc rtmp://94.102.56.186/histream/televisavh1 ;; "Virgin 1") rtmpdump -v -r "rtmp://fms.105.net:1935/live" -y "v irgin1" vlc - ;; "Zona M") vlc http://wtv.cores.biz/relay/zonam.mp4 ;; "MoozRo") totem rtsp://fms30.mediadirect.ro/live/moozro/moozro_ low ;; "XMusic") vlc rtmp://212.7.194.21/live2/xmusic ;; esac fi done