Pagina 199 di 339
Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 11:35
da biru585
Darby_Crash [url=http://forum.ubuntu-it.org/viewtopic.php?p=4406373#p4406373][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:API 2.6 Bash version (allegato).
FlashCast ricava da solo il referer se ne ha bisogno e Live-OnWeb funziona meglio.
QUESTA VERSIONE E' SOLO DI PROVA, DEVO COMPLETARE LA FUNZIONE PER YYCAST.
Questo script serve per vedere i canali di Gallinaccia con API 2.6 (vanno nella stessa cartella):
Codice: Seleziona tutto
#!/bin/bash
while [ "$c" == "" ]; do
clear
echo ""
echo " LISTA CANALI"
echo " ================"
echo " 1 --FOCUS"
echo " 2 --D-MAX"
echo " 3 --REAL TIME"
echo " 4 --RETE 4"
echo " 5 --CANALE 5"
echo " 6 --ITALIA 1"
echo " 7 --LA 7"
echo " 8 --ITALIA 2"
echo " 9 --LA 5"
echo " 10 -GIALLO"
echo " 11 -TOP CRIME"
echo " 12 -7 GOLD"
echo " 13 -CARTOONROCKS"
echo " ================"
echo ""
echo " 0 --USCITA"
echo ""
echo ""
read OPT
case $OPT in
0)
clear
exit 0
;;
1)
CH="focus"
;;
2)
CH="d-max"
;;
3)
CH="real-time"
;;
4)
CH="rete-4"
;;
5)
CH="canale-5"
;;
6)
CH="italia-1"
;;
7)
CH="la-7"
;;
8)
CH="italia-2"
;;
9)
CH="la-5"
;;
10)
CH="giallo"
;;
11)
CH="top-crime"
;;
12)
CH="7-gold"
;;
13)
CH="cartoonrocks"
;;
*)
echo ""
echo "Scelta non valida"
echo ""
sleep 3
exit 1
;;
esac
clear
data=`wget -q "http://www.gallinaccia.com/2013/05/$CH.html" -O-`
dati=`echo "$data" | sed -n '/inizo/,/script/p'`
if [ -z "$dati" ]; then
dati=`echo "$data" | grep '<iframe '`
fi
host=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2 | cut -d'/' -f3`
if [ -z "$host" ]; then
host=`echo "$dati" | grep -o "src='[^']*" | cut -d"'" -f2 | cut -d'/' -f3`
fi
hosts[0]="live-onweb"
hosts[1]="liveflash"
hosts[2]="yycast"
hosts[3]="ucaster"
hosts[4]="livestream"
hosts[5]="mips"
hosts[6]="micast"
hosts[7]="flashcast"
hosts[8]="ustream"
hosts[9]="battlecam"
for i in 0 1 2 3 4 5 6 7 8 9; do
check=`echo "$host" | grep "${hosts[i]}"`
if [ -n "$check" ]; then
host="${hosts[i]}"
fi
done
echo "The current host for this channel is: $host"
sleep 3
case $host in
live-onweb)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o "src='[^']*" | cut -d"'" -f2`
bash api.sh "$id" >/dev/null
;;
liveflash)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
yycast)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
ucaster)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o "channel='[^']*" | cut -d"'" -f2`
bash api.sh "http://www.ucaster.eu/$id" >/dev/null
;;
livestream)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2 | cut -d'?' -f1 | cut -d'/' -f5`
bash api.sh "http://www.livestream.com/$id" >/dev/null
;;
mips)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
micast)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
flashcast)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
ustream)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
battlecam)
echo ""
echo "Streaming in corso..."
p=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2`
info=`wget "$p" -q -O-`
r=`echo "$info" | grep -o 'flashvars.playServerUrl = "[^"]*' | cut -d'"' -f2`
y=`echo "$info" | grep -o 'lastStream = "[^"]*' | cut -d'"' -f2`
r="$r$y"
rtmpdump -q -v -r "$r" -p "$p" -W "http://www.battlecam.com/application/themes/base/flash/broadcast/VideoChatECCDN_debug.swf?version=23" | vlc --quiet --meta-title="Powered-by-Darby_Crash" - 2>/dev/null
;;
esac
done
Ciao Darby,
prima di tutto ovviamente grazie!
Però a me funzionano solo gli stream su battlecam, sono l'unico con questo problema?
Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 11:38
da sesamotto
Grazie BlueEyes, vanno bene gli altri 38...pensa che funzia anche la TSR1...in alta e bassa qualita'.
Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 12:26
da sesamotto
biru585 [url=http://forum.ubuntu-it.org/viewtopic.php?p=4406593#p4406593][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:Darby_Crash [url=http://forum.ubuntu-it.org/viewtopic.php?p=4406373#p4406373][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:API 2.6 Bash version (allegato).
FlashCast ricava da solo il referer se ne ha bisogno e Live-OnWeb funziona meglio.
QUESTA VERSIONE E' SOLO DI PROVA, DEVO COMPLETARE LA FUNZIONE PER YYCAST.
Questo script serve per vedere i canali di Gallinaccia con API 2.6 (vanno nella stessa cartella):
Codice: Seleziona tutto
#!/bin/bash
while [ "$c" == "" ]; do
clear
echo ""
echo " LISTA CANALI"
echo " ================"
echo " 1 --FOCUS"
echo " 2 --D-MAX"
echo " 3 --REAL TIME"
echo " 4 --RETE 4"
echo " 5 --CANALE 5"
echo " 6 --ITALIA 1"
echo " 7 --LA 7"
echo " 8 --ITALIA 2"
echo " 9 --LA 5"
echo " 10 -GIALLO"
echo " 11 -TOP CRIME"
echo " 12 -7 GOLD"
echo " 13 -CARTOONROCKS"
echo " ================"
echo ""
echo " 0 --USCITA"
echo ""
echo ""
read OPT
case $OPT in
0)
clear
exit 0
;;
1)
CH="focus"
;;
2)
CH="d-max"
;;
3)
CH="real-time"
;;
4)
CH="rete-4"
;;
5)
CH="canale-5"
;;
6)
CH="italia-1"
;;
7)
CH="la-7"
;;
8)
CH="italia-2"
;;
9)
CH="la-5"
;;
10)
CH="giallo"
;;
11)
CH="top-crime"
;;
12)
CH="7-gold"
;;
13)
CH="cartoonrocks"
;;
*)
echo ""
echo "Scelta non valida"
echo ""
sleep 3
exit 1
;;
esac
clear
data=`wget -q "http://www.gallinaccia.com/2013/05/$CH.html" -O-`
dati=`echo "$data" | sed -n '/inizo/,/script/p'`
if [ -z "$dati" ]; then
dati=`echo "$data" | grep '<iframe '`
fi
host=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2 | cut -d'/' -f3`
if [ -z "$host" ]; then
host=`echo "$dati" | grep -o "src='[^']*" | cut -d"'" -f2 | cut -d'/' -f3`
fi
hosts[0]="live-onweb"
hosts[1]="liveflash"
hosts[2]="yycast"
hosts[3]="ucaster"
hosts[4]="livestream"
hosts[5]="mips"
hosts[6]="micast"
hosts[7]="flashcast"
hosts[8]="ustream"
hosts[9]="battlecam"
for i in 0 1 2 3 4 5 6 7 8 9; do
check=`echo "$host" | grep "${hosts[i]}"`
if [ -n "$check" ]; then
host="${hosts[i]}"
fi
done
echo "The current host for this channel is: $host"
sleep 3
case $host in
live-onweb)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o "src='[^']*" | cut -d"'" -f2`
bash api.sh "$id" >/dev/null
;;
liveflash)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
yycast)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
ucaster)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o "channel='[^']*" | cut -d"'" -f2`
bash api.sh "http://www.ucaster.eu/$id" >/dev/null
;;
livestream)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2 | cut -d'?' -f1 | cut -d'/' -f5`
bash api.sh "http://www.livestream.com/$id" >/dev/null
;;
mips)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
micast)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
flashcast)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
ustream)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
battlecam)
echo ""
echo "Streaming in corso..."
p=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2`
info=`wget "$p" -q -O-`
r=`echo "$info" | grep -o 'flashvars.playServerUrl = "[^"]*' | cut -d'"' -f2`
y=`echo "$info" | grep -o 'lastStream = "[^"]*' | cut -d'"' -f2`
r="$r$y"
rtmpdump -q -v -r "$r" -p "$p" -W "http://www.battlecam.com/application/themes/base/flash/broadcast/VideoChatECCDN_debug.swf?version=23" | vlc --quiet --meta-title="Powered-by-Darby_Crash" - 2>/dev/null
;;
esac
done
Ciao Darby,
prima di tutto ovviamente grazie!
Però a me funzionano solo gli stream su battlecam, sono l'unico con questo problema?
No non sei l'unico. Anche a me solo su battlecam ma Darby ha gia' anticipato che e' solo una versione di prova. Aspettiamo e intanto grazie sempre a Daarby per il lavoro enorme quotidiano che ci regala.
Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 13:18
da Darby_Crash
sesamotto [url=http://forum.ubuntu-it.org/viewtopic.php?p=4406614#p4406614][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:biru585 [url=http://forum.ubuntu-it.org/viewtopic.php?p=4406593#p4406593][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:Darby_Crash [url=http://forum.ubuntu-it.org/viewtopic.php?p=4406373#p4406373][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:API 2.6 Bash version (allegato).
FlashCast ricava da solo il referer se ne ha bisogno e Live-OnWeb funziona meglio.
QUESTA VERSIONE E' SOLO DI PROVA, DEVO COMPLETARE LA FUNZIONE PER YYCAST.
Questo script serve per vedere i canali di Gallinaccia con API 2.6 (vanno nella stessa cartella):
Codice: Seleziona tutto
#!/bin/bash
while [ "$c" == "" ]; do
clear
echo ""
echo " LISTA CANALI"
echo " ================"
echo " 1 --FOCUS"
echo " 2 --D-MAX"
echo " 3 --REAL TIME"
echo " 4 --RETE 4"
echo " 5 --CANALE 5"
echo " 6 --ITALIA 1"
echo " 7 --LA 7"
echo " 8 --ITALIA 2"
echo " 9 --LA 5"
echo " 10 -GIALLO"
echo " 11 -TOP CRIME"
echo " 12 -7 GOLD"
echo " 13 -CARTOONROCKS"
echo " ================"
echo ""
echo " 0 --USCITA"
echo ""
echo ""
read OPT
case $OPT in
0)
clear
exit 0
;;
1)
CH="focus"
;;
2)
CH="d-max"
;;
3)
CH="real-time"
;;
4)
CH="rete-4"
;;
5)
CH="canale-5"
;;
6)
CH="italia-1"
;;
7)
CH="la-7"
;;
8)
CH="italia-2"
;;
9)
CH="la-5"
;;
10)
CH="giallo"
;;
11)
CH="top-crime"
;;
12)
CH="7-gold"
;;
13)
CH="cartoonrocks"
;;
*)
echo ""
echo "Scelta non valida"
echo ""
sleep 3
exit 1
;;
esac
clear
data=`wget -q "http://www.gallinaccia.com/2013/05/$CH.html" -O-`
dati=`echo "$data" | sed -n '/inizo/,/script/p'`
if [ -z "$dati" ]; then
dati=`echo "$data" | grep '<iframe '`
fi
host=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2 | cut -d'/' -f3`
if [ -z "$host" ]; then
host=`echo "$dati" | grep -o "src='[^']*" | cut -d"'" -f2 | cut -d'/' -f3`
fi
hosts[0]="live-onweb"
hosts[1]="liveflash"
hosts[2]="yycast"
hosts[3]="ucaster"
hosts[4]="livestream"
hosts[5]="mips"
hosts[6]="micast"
hosts[7]="flashcast"
hosts[8]="ustream"
hosts[9]="battlecam"
for i in 0 1 2 3 4 5 6 7 8 9; do
check=`echo "$host" | grep "${hosts[i]}"`
if [ -n "$check" ]; then
host="${hosts[i]}"
fi
done
echo "The current host for this channel is: $host"
sleep 3
case $host in
live-onweb)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o "src='[^']*" | cut -d"'" -f2`
bash api.sh "$id" >/dev/null
;;
liveflash)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
yycast)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
ucaster)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o "channel='[^']*" | cut -d"'" -f2`
bash api.sh "http://www.ucaster.eu/$id" >/dev/null
;;
livestream)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2 | cut -d'?' -f1 | cut -d'/' -f5`
bash api.sh "http://www.livestream.com/$id" >/dev/null
;;
mips)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
micast)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
flashcast)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
ustream)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
battlecam)
echo ""
echo "Streaming in corso..."
p=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2`
info=`wget "$p" -q -O-`
r=`echo "$info" | grep -o 'flashvars.playServerUrl = "[^"]*' | cut -d'"' -f2`
y=`echo "$info" | grep -o 'lastStream = "[^"]*' | cut -d'"' -f2`
r="$r$y"
rtmpdump -q -v -r "$r" -p "$p" -W "http://www.battlecam.com/application/themes/base/flash/broadcast/VideoChatECCDN_debug.swf?version=23" | vlc --quiet --meta-title="Powered-by-Darby_Crash" - 2>/dev/null
;;
esac
done
Ciao Darby,
prima di tutto ovviamente grazie!
Però a me funzionano solo gli stream su battlecam, sono l'unico con questo problema?
No non sei l'unico. Anche a me solo su battlecam ma Darby ha gia' anticipato che e' solo una versione di prova. Aspettiamo e intanto grazie sempre a Daarby per il lavoro enorme quotidiano che ci regala.
Ragazzi dovete scaricare API 2.6 Bash e mettere nella stessa cartella lo script per la tv. Io li ho entrambi sulla scrivania. Cosi' facendo andranno tutti i canali.
Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 14:01
da zauro81
Darby funzionano tutti i canali tranne D-MAX (host=live-onweb). Problema mio??
Vi risulta ragazzi??
D-MAx tra l'altro funziona su gallinaccia
Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 14:55
da Darby_Crash
Live-OnWeb e' da fixare insieme a YYCast. Lo script prende solo gli indirizzi rtmp che iniziano con 188. Devo fare in modo che funzioni anche per i canali che trasmettono solo col nome dell'host.
Comunque risolvero' a breve. Grazie orwilsio per l'idea.
Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 14:58
da orwilsio
Dovrebbe essere una questione di apici diventati doppi apici...
L'amico ha cambiato qualcosa nella sua pagina web. Con un piccolo accorgimento (modifica allo script) funziona di nuovo.
@Darby
Felicissimo di essere stato utile in qualche modo.
Se trovi un po' di tempo potresti trascrivere in batch anche solo una di quelle istruzioni con grep, sed e cut che, senza tutti quei passaggi che faccio io, raggiungono immediatamente lo scopo?
Grazie per tutto quello che fai.

Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 15:12
da Darby_Crash
Codice: Seleziona tutto
#!/bin/bash
while [ "$c" == "" ]; do
clear
echo ""
echo " LISTA CANALI"
echo " ================"
echo " 1 --FOCUS"
echo " 2 --D-MAX"
echo " 3 --REAL TIME"
echo " 4 --RETE 4"
echo " 5 --CANALE 5"
echo " 6 --ITALIA 1"
echo " 7 --LA 7"
echo " 8 --ITALIA 2"
echo " 9 --LA 5"
echo " 10 -GIALLO"
echo " 11 -TOP CRIME"
echo " 12 -7 GOLD"
echo " 13 -CARTOONROCKS"
echo " ================"
echo ""
echo " 0 --USCITA"
echo ""
echo ""
read OPT
case $OPT in
0)
clear
exit 0
;;
1)
CH="focus"
;;
2)
CH="d-max"
;;
3)
CH="real-time"
;;
4)
CH="rete-4"
;;
5)
CH="canale-5"
;;
6)
CH="italia-1"
;;
7)
CH="la-7"
;;
8)
CH="italia-2"
;;
9)
CH="la-5"
;;
10)
CH="giallo"
;;
11)
CH="top-crime"
;;
12)
CH="7-gold"
;;
13)
CH="cartoonrocks"
;;
*)
echo ""
echo "Scelta non valida"
echo ""
sleep 3
exit 1
;;
esac
clear
data=`wget -q "http://www.gallinaccia.com/2013/05/$CH.html" -O-`
dati=`echo "$data" | sed -n '/inizo/,/script/p'`
if [ -z "$dati" ]; then
dati=`echo "$data" | grep '<iframe '`
fi
host=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2 | cut -d'/' -f3`
if [ -z "$host" ]; then
host=`echo "$dati" | grep -o "src='[^']*" | cut -d"'" -f2 | cut -d'/' -f3`
fi
hosts[0]="live-onweb"
hosts[1]="liveflash"
hosts[2]="yycast"
hosts[3]="ucaster"
hosts[4]="livestream"
hosts[5]="mips"
hosts[6]="micast"
hosts[7]="flashcast"
hosts[8]="ustream"
hosts[9]="battlecam"
for i in 0 1 2 3 4 5 6 7 8 9; do
check=`echo "$host" | grep "${hosts[i]}"`
if [ -n "$check" ]; then
host="${hosts[i]}"
fi
done
echo "The current host for this channel is: $host"
sleep 3
case $host in
live-onweb)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2`
bash api.sh "$id" >/dev/null
;;
liveflash)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
yycast)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
ucaster)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o "channel='[^']*" | cut -d"'" -f2`
bash api.sh "http://www.ucaster.eu/$id" >/dev/null
;;
livestream)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2 | cut -d'?' -f1 | cut -d'/' -f5`
bash api.sh "http://www.livestream.com/$id" >/dev/null
;;
mips)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
micast)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
flashcast)
echo ""
echo "Streaming in corso..."
id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
ustream)
#echo ""
#echo "Streaming in corso..."
#id=`echo "$dati" | grep -o "fid='[^']*" | cut -d"'" -f2`
#bash api.sh "http://flashcast.tv/watch.php?live=$id" >/dev/null
;;
battlecam)
echo ""
echo "Streaming in corso..."
p=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2`
info=`wget "$p" -q -O-`
r=`echo "$info" | grep -o 'flashvars.playServerUrl = "[^"]*' | cut -d'"' -f2`
y=`echo "$info" | grep -o 'lastStream = "[^"]*' | cut -d'"' -f2`
r="$r$y"
rtmpdump -q -v -r "$r" -p "$p" -W "http://www.battlecam.com/application/themes/base/flash/broadcast/VideoChatECCDN_debug.swf?version=23" | vlc --quiet --meta-title="Powered-by-Darby_Crash" - 2>/dev/null
;;
esac
done
Era una cavolata come diceva orwilsio. Adesso funzionano di nuovo tutti. Cosa vuoi che trascriva in Batch, esattamente?
Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 15:50
da orwilsio
Cosa vuoi che trascriva in Batch, esattamente?
Basterebbe anche solo questo:
Codice: Seleziona tutto
if [ -z "$dati" ]; then
dati=`echo "$data" | grep '<iframe '`
fi
host=`echo "$dati" | grep -o 'src="[^"]*' | cut -d'"' -f2 | cut -d'/' -f3`
if [ -z "$host" ]; then
host=`echo "$dati" | grep -o "src='[^']*" | cut -d"'" -f2 | cut -d'/' -f3`
fi
Ma fai pure con comodo.
Grazie ancora.

Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 17:17
da sesamotto
ERT TV Grecia continua quasi eroicamente le proprie trasmissioni solo in streaming.
Ecco l'indirizzo per Simple Tv. Mi fanno tenerezza, poveretti.
Codice: Seleziona tutto
rtmp://$OPT:rtmp-raw=rtmp://cp61438.live.edgefcs.net:443/live?ovpfv=2.1.5 playpath=ebu_offsite_1@9776 pageUrl=http://www.tvonlinestreams.com live=1
Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 18:20
da sesamotto
Nel frattempo io sto cercando di implementare il piu' possibile la seguente lista. Per ora avrei superato la sessantina di canali.
Una domanda pero' vorrei fare...se postassi un indirizzo oramai funzionante da anovembre 2012 e che riguarda un NOTO canale inglese dedicato solo alla F1 sarebbe...vietato? Anche perche' vorrei renderlo digeribile per la lista che segue...
Codice: Seleziona tutto
#!/bin/bash
## Stream list updated 30.10.2012 ######################################
STREAMLIST='
RSI LA1- Svizzera Italiana| -r "rtmp://cp108478.live.edgefcs.net/live" -W "http://www.wilmaa.com/player/main_v5.033.swf" -p "http://www.wilmaa.com" --live -y "rsila1_1_800@45513" -x "927444" -w "6c1be1765187eae0bc9af07d858fae59a0effd3c5b803d08db261ced2c5512bb"
RSI LA2- Svizzera Italiana| -r "rtmp://cp108478.live.edgefcs.net/live" -W "http://www.wilmaa.com/player/main_v5.033.swf" -p "http://www.wilmaa.com" --live -y "rsila2_2_800@45514" -x "927444" -w "6c1be1765187eae0bc9af07d858fae59a0effd3c5b803d08db261ced2c5512bb"
Al Jazeera English| -v -r rtmp://aljazeeraflashlivefs.fplive.net/aljazeeraflashlive-live/aljazeera_eng_med
BBC World News| -v -r rtmp://a.cdn.msnbclive.eu/edge/bbcworld_vh -W http://msnbclive.eu/getswf.php?name=player.swf -p http://blog.livenewschat.tv/world-newsroom
CNN International News| -v -r rtmp://a.cdn.msnbclive.eu/edge/cnni_live -W http://msnbclive.eu/getswf.php?name=player.swf -p http://blog.livenewschat.tv/international-room-chat
EUROSport| -v -r "rtmp://cp108478.live.edgefcs.net/live/eurosport_1_300@45515" -x "927772" -w "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8"
FRANCE 2| -v -r "rtmp://cp108476.live.edgefcs.net/live/france2_1_800@45496" -x "927772" -w "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8"
FRANCE 3| -v -r "rtmp://cp108476.live.edgefcs.net/live/france3_1_800@45499" -x "927772" -w "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8"
FRANCE 5| -v -r "rtmp://cp108476.live.edgefcs.net/live/france5_1_800@45501" -x "927772" -w"c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8"
RTS un- Svizzera Francese| -v -r "rtmp://cp115491.live.edgefcs.net/live/tsr1_1_800@45522" -x "927772" -w "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8"
RTS deux- Svizzera Francese| -v -r "rtmp://cp115491.live.edgefcs.net/live/tsr2_1_800@45523" -x "927772" -w "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8"
RTE 1- Ireland| -v -r "rtmpte://fmsod.rte.ie/live/rte1" -W "http://www.rte.ie/static/player/swf/osmf2_541_2012_11_14.swf" -p "http://www.rte.ie/player/"
RTE 1n- Ireland| -v -r "rtmp://fmsod.rte.ie:1935/live" -y "rte1" -W "http://www.rte.ie/static/player/swf/osmf2_541_2012_11_14.swf" -p "http://www.rte.ie/player/nl/live/8/"
RTE 2- Ireland| -v -r "rtmpte://fmsod.rte.ie/live/rte2" -W "http://www.rte.ie/static/player/swf/osmf2_541_2012_11_14.swf" -p "http://www.rte.ie/player/"
RTE 2n- Ireland| -v -r "rtmp://fmsod.rte.ie:1935/live" -y "rte2" -W "http://www.rte.ie/static/player/swf/osmf2_541_2012_11_14.swf" -p "http://www.rte.ie/player/nl/live/8/"
SKYTG24 - Italy| -v -r "rtmp://212.243.210.71:1935/live?_fcs_vhost=cp49989.live.edgefcs.net/streamRM1@2564" -q | vlc -
TV3 24 - Spagna| -v -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live/stream_324_FLV" | vlc --aspect-ratio=16:9 -
TV 3 CATALOGNA | -v -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live/stream_TV3CAT_FLV" | vlc --aspect-ratio=16:9 -
ORF 1 -Austria | -v -r "rtmp://cp108341.live.edgefcs.net/live/orf1_1_800@43059" --swfsize "927772" --swfhash "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8" -q | vlc --aspect-ratio=16:9 -
ORF 2 -Austria | -v -r "rtmp://cp108476.live.edgefcs.net/live/orf2_1_800@45502" --swfsize "927772" --swfhash "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8" -q | vlc --aspect-ratio=16:9 -
LA7 - Italy | -v -r "rtmpe://188.122.91.21/play/gfdfdgdfsrr" -W "http://www.flashcast.tv/jwplayer/jwplayer.flash.swf" -p "http://www.flashcast.tv/watch.php?live=gfdfdgdfsrr" | vlc --quiet --meta-title=Powered-by-Darby_Crash - 2>/dev/null
XXX Filmon | -v -r “rtmp://mi5.gv.filmon.com:1935/live/_definst_/77.high.stream | vlc -
XXX Filmon | -v -r “rtmp://mi5.gv.filmon.com:1935/live/_definst_/249.high.stream | vlc -
XXX Filmon | -v -r “rtmp://mi5.gv.filmon.com:1935/live/_definst_/107.high.stream | vlc -
XXX Filmon | -v -r “rtmp://mi5.gv.filmon.com:1935/live/_definst_/250.high.stream | vlc -
XXX Filmon Asia | -v -r “rtmp://live190.la3.origin.filmon.com:1935/live/198.high.stream | vlc -
XXX Filmon Teen | -v -r “rtmp://live190.la3.origin.filmon.com:1935/live/73.high.stream | vlc -
XXX Filmon Hard | -v -r ”rtmp://live190.la3.origin.filmon.com:1935/live/ playpath=245.low.stream | vlc -
RAI 1 Italy | -v -r “rtmp://mi6.gv.filmon.com:1935/live/375.low.stream | vlc -
RAI 2 Italy | -v -r “rtmp://mi6.gv.filmon.com:1935/live/376.low.stream | vlc -
Mediaset R4 | -v -r “rtmp://mi6.gv.filmon.com:1935/live/430.high.stream | vlc -
Mediaset C5 | -v -r “rtmp://mi6.gv.filmon.com:1935/live/433.high.stream | vlc -
Mediaset It1 | -v -r “rtmp://mi6.gv.filmon.com:1935/live/427.high.stream | vlc -
Mediaset TG Com24 | -v -r “rtmp://mi6.gv.filmon.com:1935/live/1802.low.stream | vlc -
RAI News Italy | -v -r “rtmp://mi6.gv.filmon.com:1935/live/378.high.stream |vlc -
ITV 1+1 England | -v -r “rtmp://mi7.gv.filmon.com:1935/live/1817.high.stream |vlc -
ITV 2+1 England | -v -r “rtmp://mi7.gv.filmon.com:1935/live/1820.high.stream |vlc -
ITV 3+1 England | -v -r “rtmp://mi7.gv.filmon.com:1935/live/1823.high.stream |vlc -
ITV 4+1 England | -v -r “rtmp://mi7.gv.filmon.com:1935/live/1826.high.stream |vlc -
RTVE Spagna | -v -r “rtmp://mi3.gv.filmon.com:1935/live/23.high.stream |vlc -
Breaking News | -v -r “rtmp://mi5.gv.filmon.com:1935/live/302.high.stream |vlc -
SPORT 1 Germania | -v -r "rtmp://cp108478.live.edgefcs.net/live/sport1_1_800@45517" --swfsize "927772" --swfhash "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8" -q | vlc --aspect-ratio=16:9 -
RSI LA1 | -v -r "rtmp://cp108478.live.edgefcs.net/live/rsila1_1_800@45513"
RSI LA2 | -v -r "rtmp://cp108478.live.edgefcs.net/live/rsila2_2_800@45514"
Sportitalia 1 | -v -r "rtmp://live.cdnplayer.com:1935/live413/solocalciolive"
RTP1 Portogallo | -v -r "rtmp://h2i.rtp.pt/livetv/2ch5h264" -W "http://www.rtp.pt/noticias/player.swf" -p "http://www.rtp.pt" | vlc --aspect-ratio=16:9 -
RTP2 Portogallo | -v -r "rtmp://h2e.rtp.pt/livetv/2ch3h264" -W "http://www.rtp.pt/noticias/player.swf" -p "http://www.rtp.pt" | vlc --aspect-ratio=16:9 -
RTP INT. Portogallo | -v -r "rtmp://h2i.rtp.pt/livetv/2ch120h264" -W "http://www.rtp.pt/noticias/player.swf" -p "http://www.rtp.pt" | vlc --aspect-ratio=16:9 -
ANTENA 3 Spagna | -v -W "http://www.antena3.com/static/swf/A3Player.swf" -r "rtmp://antena3fms35livefs.fplive.net:1935/antena3fms35live-live/stream-antena3" -q -p "http://www.antena3.com/directo/" | vlc --aspect-ratio=16:9 -
LA SEXTA Spagna | -v -r "rtmp://antena3fms35livefs.fplive.net:1935/antena3fms35live-live/stream-lasexta" --swfsize "936418" --swfhash "f055c2410175ef5f96b211ad823e0b963615ccd2b15b37eb168ce0a376432326" | vlc --aspect-ratio=16:9 -
LA EFFE Italy | -v -r rtmpe://cp225189.live.edgefcs.net/live/LaEffeTVLiveFlash@111302 -W http://laeffe.dgtmedia.com/layout/laeffeplayer.swf -p http://www.laeffe.tv -v | vlc -
TOP CRIME Italy | rtmpdump -v -r "rtmp://204.107.26.72/battlecam/" -W "http://www.battlecam.com/application/themes/base/flash/broadcast/VideoChatECCDN_debug.swf?version=23" -p "http://www.battlecam.com/" -C O:1 -C O:0 -y "mp4:bc_3358805" | vlc -
Sport Tv1 Portugal | -v -r "rtmp://redbull.micast.tv/liveedge/sporttv1" -p "http://micast.tv/ch.php?ch=sporttv1" | vlc -
CIELO Italy | -v -r "rtmp://46.23.67.58/live/itv567?id=46781" -C "S:OK" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http://www.ucaster.eu/embedded/itv567/1/500/400" | vlc --quiet --meta-title=Powered-by-Darby_Crash - 2>/dev/null
DMAX Italy | -v -r "rtmp://188.165.228.216:51935/mariorossi/DMAX/-156850092_quicklive/" -W "http://www.live-onweb.com/events/low_embed_channel.swf" -p "http://www.live-onweb.com/" -y "-156850092_quicklive" | "C:\Programmi\VideoLAN\VLC\vlc.exe" --meta-title="by Darby_Crash" -
FOCUS Italy | -v -r "rtmpe://188.122.91.20/play/ffdsr4focd" -W "http://www.flashcast.tv/jwplayer/jwplayer.flash.swf" -p "http://www.flashcast.tv/watch.php?live=ffdsr4focd" | "C:\Programmi\VideoLAN\VLC\vlc.exe" --network-caching=10000 --high-priority --no-qt-updates-notif --meta-title="by Darby_Crash" -
GIALLO Italy | rtmpdump -q -v -r "rtmp://146.185.30.244/live/gialloff?id=47698" -C "S:OK" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http://www.ucaster.eu/embedded/gialloff/1/500/400" | vlc --quiet --meta-title=Powered-by-Darby_Crash - 2>/dev/null
RAI 4 Italy | rtmpdump -q -v -r "rtmp://146.185.30.244/live/ioukk?id=46969" -C "S:OK" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http://www.ucaster.eu/embedded/ioukk/1/500/400" | vlc --quiet --meta-title=Powered-by-Darby_Crash - 2>/dev/null
7GOLD Italy | -v -r "rtmp://212-189.livestream.com/mogulus-stream-edge/crozzpopizzo" -a "mogulus-stream-edge/crozzpopizzo" -W "http://cdn.livestream.com/chromelessPlayer/v21/playerapi.swf" -p "http://www.livestream.com" -y "rtmp://212-173.livestream.com/affiliateStream/crozzpopizzo/6c69766572657065617465723a72746d703a2f2f3231322d3137332e6c69766573747265616d2e636f6d2f6d6f67756c75732f63726f7a7a706f70697a7a6f2f6c69766573747265616d" | vlc -
LA5 Italy | -v -r "rtmp://146.185.19.140/live/fsdfdfsre?id=46750" -C "S:OK" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http://www.ucaster.eu/embedded/fsdfdfsre/1/500/400" | vlc --quiet --meta-title=Powered-by-Darby_Crash - 2>/dev/null
ITALIA 2 Italy | -v -r "rtmp://204.107.26.72/battlecam/" -W "http://www.battlecam.com/application/themes/base/flash/broadcast/VideoChatECCDN_debug.swf?version=23" -p "http://www.battlecam.com/" -C O:1 -C O:0 -y "mp4:bc_3216833" | vlc -
BEIN SPORT Fra | rtmpdump -r "rtmpe://37.220.32.38:1735/vod" -a "vod" -f "WIN 11,3,300,268" -W "http://cache.hdcastream.com/jwplayer5/player.swf" -p "http://hdmytv.com/" -T "#ro%g0#r@1" -y "Jerri25125_6j8m0ag" | vlc -
CANAL PLUS France | rtmpdump -r "rtmpe://37.220.32.38:1735/vod" -a "vod" -f "WIN 11,3,300,268" -W "http://cache.hdcastream.com/jwplayer5/player.swf" -p "http://hdmytv.com/" -T "#ro%g0#r@1" -y "Jerri25125_6j8m0ag" | vlc -
BEIN SPORT1 France | rtmpdump -r "rtmpe://37.220.32.34:1735/vod" -a "vod" -f "WIN 11,3,300,268" -W "http://cache.hdcastream.com/jwplayer5/player.swf" -p "http://hdmytv.com/" -T "#ro%g0#r@1" -y "footplus5169_6iyy6k6" | vlc -
'
########################################################################
IFS=$'\n'
clear
tput smul
echo ""
echo ":: Streaming Media Player ::"
echo ":: Select Channel to Play ::"
tput rmul
echo ""
## selection entry text
PS3="`tput bold`Enter Station Number To Play > `tput sgr0`"
select STREAM in `echo "$STREAMLIST" | cut -d"|" -f1 | sort` "Quit" ; do
[[ "$STREAM" == "Quit" ]] && echo "Goodbye...." && exit ## exit script
## get stream command / urls
GETURL=`echo "$STREAMLIST" | grep -w -m1 "^$STREAM" | cut -d"|" -f2`
if [[ -n "$GETURL" ]]; then
## show selected channel name
tput smso && echo " >:Attempt connection to video stream $STREAM:< " && tput rmso
## play stream - remove -q to see what rtmpdump is doing - change media player here
eval rtmpdump -q "$GETURL" | vlc - &>/dev/null
else
## no selection message
tput setf 4 && echo "Not a menu entry - please select again" && tput sgr0
fi
done
Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 20:11
da moroboshi_84
@ Darby... ti ho preparato un lanciatore in zenity, che dovrebbe controllare tutte le dipendenze, aggiornare in automatico la versione dell'api, lanciare i canali da una lista in locale o per inserimento e con la selezione dello script di supporto adeguato... se ci dai un occhio, potrebbe essere usato come base... fammi sapere!!!
Codice: Seleziona tutto
#!/bin/bash
#link-param è un file che contiene il link dato in ingresso
#sel-link è un file che contiene il link alla diretta
clear
echo "Questo script è stato scritto per dare un ambiente grafico ed automatizzare i passaggi necessari per la corretta visualizzazione."
echo "Necessita di zenity, php, api.php, smthplayer (necessario per i link che usano i flussi smooth), ffplay (per riprodurre i flussi mms e HLS), questi ultimi vanno posizionati nella stessa cartella insieme a questo script"
echo "Il motore di questo script è realizzata da Darby ed è scaricabile al seguente link http://darbycrash.altervista.org/API/api-wiki.html"
#User Agent
UA="Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20100101 Firefox/8.0"
#Funzione per verificare le dipendenze
function checkdependencies(){
#controllo ed installo tutte le dipendenze
zenity --width=300 --height=400 --title="GUI-API.PHP" --question --text="Vuoi controllare che sia installato tutto l'occorrente?"
case $? in
0) testapt ;;
*) testlocal ;;
esac
}
#controllo tutte le dipendenze con apt e in locale
function testapt(){
sudo apt-get install zenity wget vlc php5-cli php5-curl rtmpdump libav-tools
testlocal
}
#controllo tutte le dipendenze locali
function testlocal(){
#controllo l'esistenza di api.php
if [ -f api.php ]; then
echo "api.php esiste."
checkapiversion
else
echo "api.php non esiste."
wget -U "$UA" "http://darbycrash.altervista.org/API/api.php.txt" -O api.php
fi
#controllo l'esistenza dell'smthplayer
if [ -f smthplayer.php ]; then
echo "smthplayer esiste."
else
echo "smthplayer non esiste."
wget --trust-server-names "http://sourceforge.net/projects/smthplayer/files/latest/download?source=files"
tar -zxvf smthplayer*.tar.gz
mv smthplayer*linux/smthplayer.php smthplayer.php
mv smthplayer*linux/smth.php smth.php
rm smthplayer*linux/*
rmdir -p smthplayer*linux
fi
#controllo che ci siano tutti gli script di supporto
if [ -f runner.sh ]; then
echo "runner.sh esiste."
else
echo "runner.sh non esiste."
fi
if [ -f audioon.sh ]; then
echo "audioon.sh esiste."
else
echo "audioon.sh non esiste."
fi
if [ -f smil.sh ]; then
echo "smil.sh esiste."
else
echo "smil.sh non esiste."
fi
if [ -f audioon.sh ]; then
echo "isml.sh esiste."
else
echo "isml.sh non esiste."
fi
}
#Funzione per verificare l'ultima versione disponibile di api.php
function checkapiversion(){
wget -U "$UA" "http://darbycrash.altervista.org/API/api.php.txt" -O apinew.php
vers_local=`echo | grep -r '$version =' api.php | cut -d'"' -f2 | cut -d'"' -f1`
vers_web=`echo | grep -r '$version =' apinew.php | cut -d'"' -f2 | cut -d'"' -f1`
echo 'vers_local :' $vers_local
echo 'vers_web :' $vers_web
if [ $vers_local != $vers_web ]; then
zenity --width=300 --height=400 --title="GUI-API.PHP" --info --text="Disponibile nuova versione di api v.$vers_web"
mv api.php api_$vers_local.php.bak
mv apinew.php api.php
else rm apinew.php
fi
}
function lanciatoreapi(){
ans=$(zenity --width=300 --height=400 --title="GUI-API.PHP" --list --text "Cosa vuoi fare?" --radiolist --column "Scelta" --column "Caso" TRUE "Inserisci manualmente il link" FALSE "Usa una lista di link"); echo $ans
case $ans in
"Inserisci manualmente il link") apitext ;;
"Usa una lista di link") apilist ;;
*) exitlink ;;
esac
}
function apitext(){
zenity --width=300 --height=400 --title="GUI-API.PHP" --entry --text="Inserisci link" --ok-label="Diretta" --cancel-label="Cancella" > link-param
link=`cat link-param`
case $? in
0) playlink ;;
*) exitlink ;;
esac
}
function apilist(){
if [ -f chan_list.txt ]; then
echo "chan_list.txt esiste."
live_chan=`cat chan_list.txt`
live_list=`echo "$live_chan" | cut -d'@' -f1`
zenity --width=300 --height=400 --title="Rai-Live" --list --text="Scegli cosa vuoi vedere:" --column "Lista canali" $live_list --ok-label="Diretta" --cancel-label="Cancella" > link-param
live_chan_ch=`cat link-param`
echo "live_chan_ch: " $live_chan_ch
link=`echo "$live_chan" | grep "$live_chan_ch" | cut -d'@' -f2 | cut -d'*' -f1`
relinker=`echo "$live_chan" | grep "$live_chan_ch" | cut -d'*' -f2 | cut -d'*' -f1`
case $? in
0) playlink ;;
*) exitlink ;;
esac
else
echo "chan_list.txt non esiste."
echo "prova a crearne una tua, secondo questa sintassi nome canale senza spazi, delimitatore inizio @, indirizzo canale, delimitatore fine *, indirizzo mms, delimitatore fine *"
echo "ES: Rai_1@http://www.rai.tv/dl/RaiTV/dirette/PublishingBlock-64203784-70f7-4b53-9d21-b14693850195.html?channel=false*http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=633994*"
fi
}
function exitlink(){
if [ -f link-param ]; then
rm link-param
fi
if [ -f sel_link ]; then
rm sel_link
fi
exit 0
}
function playlink(){
echo "link: " $link
php api.php "$link" -noplay
all_link=`cat history.txt | sed "s#\r##g"`
echo "all_link: " $all_link
# Con zenity il tasto OK restituisce 0, il tasto Cancella 1
zenity --list --height=250 --width=500 --title "GUI-API.PHP" --text="Seleziona il link da usare:" --column="link" $all_link > sel_link
sel=`cat sel_link`
ans2=$(zenity --width=300 --height=400 --title="GUI-API.PHP" --list --text "Cosa vuoi fare?" --radiolist --column "Scelta" --column "Caso" --column "Descrizione" TRUE "Default" "usa api.php con vlc" FALSE "Tipo MMS" "usa vlc" FALSE "Tipo Android" "usa ffplay" FALSE "Tipo HLS smil" "usa lo script smil.sh" FALSE "Tipo smooth" "usa lo script runner.sh" FALSE "Tipo smooth fix audio" "usa lo script audioon.sh" FALSE "Tipo HLS isml" "usa lo script isml.sh"); echo $ans2
case $ans2 in
"Tipo MMS") vlc "$sel" 2>/dev/null ;;
"Tipo Android") ffplay -i -v 0 -nostats -autoexit "$sel" ;;
"Tipo HLS smil") bash smil.sh "$sel" ;;
"Tipo HLS isml") bash isml.sh "$sel" ;;
"Tipo smooth") bash runner.sh "$sel" ;;
"Tipo smooth fix audio") bash audioon.sh "$sel" ;;
*) php api.php "$link" ;;
esac
}
checkdependencies
while [ $? -eq 0 ]; do
lanciatoreapi
done
PS: cosicchè in futuro sia gli script di supporto che la lista di canali è possibile prenderli da link predefiniti
Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 21:47
da sesamotto
Qualcuno saprebbe rendere il seguente indirizzo digeribile per lo script che ho postato un paio di post piu' sopra?
E' un indirizzo che va bene per simple ma non riesco a tradurlo con il classico comando per renderlo automatico da script. Tipo -v -r "rtmp....etc etc...
Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 22:49
da BlueEyes
Hi, sesamotto, better to leave it hidden. Non ti pare? Ciao
Re: script multifunzionale per vedere le dirette televisive.
Inviato: sabato 15 giugno 2013, 23:13
da sesamotto
Better...better...j have understood.

Re: script multifunzionale per vedere le dirette televisive.
Inviato: domenica 16 giugno 2013, 0:00
da zerocoll
io non ho understooooood
riguardo alla domanda di oggi se si puo mettere sky sport F1
si puo postare tutto quello che si vuole ma qua non penso che avrebbe vita lunga .. ti spiego meglio
questo e un forum dove la gente chiede consiglio su ubuntu per problemi e altro quindi penso che gia siamo al limite mettendo i link di canali free visibili tranquillamente in rete ma soprattutto in tv
quindi non conviene tirare troppo la corda riskieremmo di spezzarla
pensa che hai tempio dei primi messaggi di questa discussione non si poteva mettere nemmeno i link x mediaset..
dai un saluto e scusate l ot
Codice: Seleziona tutto
rtmpdump -v -r "rtmp://cp61438.live.edgefcs.net:443/live?ovpfv=2.1.5" -y "ebu_offsite_1@9776" -p "http://forum.ubuntu-it.org" | vlc -
link x simple postato piu su converito x rtmpdump
Re: script multifunzionale per vedere le dirette televisive.
Inviato: domenica 16 giugno 2013, 0:17
da hug
E' qualche giorno che manco e già mi sono perso diverse pagine, questo thread da l'Addiction, visto che siamo in tema inglese
s-eng.m3u
Codice: Seleziona tutto
#EXTM3U
#EXTINF:0,S Action
http://nyc.zag.gs:1935/liveedge/synx_sky_action.stream/playlist.m3u8
#EXTINF:0,S Comedy
http://nyc.zag.gs:1935/liveedge/synx_sky_comedy.stream/playlist.m3u8
#EXTINF:0,S Drama
http://nyc.zag.gs:1935/liveedge/synx_sky_drama.stream/playlist.m3u8
#EXTINF:0,S Family
http://nyc.zag.gs:1935/liveedge/synx_sky_family.stream/playlist.m3u8
#EXTINF:0,S Premiere
http://nyc.zag.gs:1935/liveedge/synx_sky_premier.stream/playlist.m3u8
#EXTINF:0,S Thriller
http://nyc.zag.gs:1935/liveedge/synx_thriller.stream/playlist.m3u8
#EXTINF:0,S SciFi/Horror
http://nyc.zag.gs:1935/liveedge/synx_sky_horror.stream/playlist.m3u8
#EXTINF:0,S Sports 1
http://nyc.zag.gs:1935/liveedge/synx_sky_sports_1.stream/playlist.m3u8
#EXTINF:0,S Sports 2
http://nyc.zag.gs:1935/liveedge/synx_sky_sports_2.stream/playlist.m3u8
#EXTINF:0,S Sports 3
http://nyc.zag.gs:1935/liveedge/synx_sky_sports_3.stream/playlist.m3u8
#EXTINF:0,S Sports 4
http://nyc.zag.gs:1935/liveedge/synx_sky_sports_4.stream/playlist.m3u8
#EXTINF:0,S Sports News
ciao
Re: script multifunzionale per vedere le dirette televisive.
Inviato: domenica 16 giugno 2013, 0:24
da sesamotto
zerocoll [url=http://forum.ubuntu-it.org/viewtopic.php?p=4406946#p4406946][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:io non ho understooooood
riguardo alla domanda di oggi se si puo mettere sky sport F1
si puo postare tutto quello che si vuole ma qua non penso che avrebbe vita lunga .. ti spiego meglio
questo e un forum dove la gente chiede consiglio su ubuntu per problemi e altro quindi penso che gia siamo al limite mettendo i link di canali free visibili tranquillamente in rete ma soprattutto in tv
quindi non conviene tirare troppo la corda riskieremmo di spezzarla
pensa che hai tempio dei primi messaggi di questa discussione non si poteva mettere nemmeno i link x mediaset..
dai un saluto e scusate l ot
Codice: Seleziona tutto
rtmpdump -v -r "rtmp://cp61438.live.edgefcs.net:443/live?ovpfv=2.1.5" -y "ebu_offsite_1@9776" -p "http://forum.ubuntu-it.org" | vlc -
link x simple postato piu su converito x rtmpdump
Zerocoll...per prima cosa non so come ringraziarti. In secondo luogo mi scuso tanto. Io sono relativamente fresco di iscrizione ed esperienza. Comunque mi devo studiare il tuo " passaggio" per avere l'indipendenza di come fare in futuro.
Grazie, amico.
Re: script multifunzionale per vedere le dirette televisive.
Inviato: domenica 16 giugno 2013, 0:45
da zerocoll
figurati di che ti devi scusare parli con uno che fino a qualche tempo fa aveva un forum di warez alla fine lo hanno chiuso x che strimmavo i canali di futubox ...
tornando ai link x simple TV
Codice: Seleziona tutto
#!/bin/bash
## Recupero canali
function add_stream(){
zenity --entry --text="Inserisci link simple player" > /tmp/Usher1
play_rtmp
}
function play_rtmp(){
link=`cat /tmp/Usher1`
rtmp=`echo "$link" | awk -F 'rtmp-raw=' '{print $2}'| awk -F ' ' '{print $1}'`
echo $rtmp
swf=`echo "$link" | awk -F 'swfUrl=' '{print $2}'| awk -F ' ' '{print $1}'`
echo $swf
page=`echo "$link" | awk -F 'pageUrl=' '{print $2}'| awk -F ' ' '{print $1}'`
echo $page
playpath=`echo "$link" | awk -F 'laypath=' '{print $2}'| awk -F ' ' '{print $1}'`
echo $playpath
echo rtmpdump -v -r \"$rtmp\" -W \"$swf\" -p \"$page\" -y \"$playpath\" | bash | vlc -
}
add_stream
exit
questo l avevo fatto x provare i link che trovo funziona con quasi tutti i link x simple TV
potresti commentare la scritta |bash cosi #|bash
cosi da avere il comando da inserire nello script ...
anzi cosi ti da gia la stringa convertita
Codice: Seleziona tutto
#!/bin/bash
## Recupero canali
function add_stream(){
zenity --entry --text="Inserisci link simple player" > /tmp/Usher1
play_rtmp
}
function play_rtmp(){
link=`cat /tmp/Usher1`
rtmp=`echo "$link" | awk -F 'rtmp-raw=' '{print $2}'| awk -F ' ' '{print $1}'`
#echo $rtmp
swf=`echo "$link" | awk -F 'swfUrl=' '{print $2}'| awk -F ' ' '{print $1}'`
#echo $swf
page=`echo "$link" | awk -F 'pageUrl=' '{print $2}'| awk -F ' ' '{print $1}'`
#echo $page
playpath=`echo "$link" | awk -F 'laypath=' '{print $2}'| awk -F ' ' '{print $1}'`
#echo $playpath
echo "rtmpdump -v -r "\"$rtmp"\" -W "\"$swf"\" -p "\"$page"\" -y "\"$playpath"\" | vlc -" #| bash
read
}
add_stream
exit
Re: script multifunzionale per vedere le dirette televisive.
Inviato: domenica 16 giugno 2013, 11:14
da sesamotto
zerocoll [url=http://forum.ubuntu-it.org/viewtopic.php?p=4406959#p4406959][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:figurati di che ti devi scusare parli con uno che fino a qualche tempo fa aveva un forum di warez alla fine lo hanno chiuso x che strimmavo i canali di futubox ...
tornando ai link x simple TV
Codice: Seleziona tutto
#!/bin/bash
## Recupero canali
function add_stream(){
zenity --entry --text="Inserisci link simple player" > /tmp/Usher1
play_rtmp
}
function play_rtmp(){
link=`cat /tmp/Usher1`
rtmp=`echo "$link" | awk -F 'rtmp-raw=' '{print $2}'| awk -F ' ' '{print $1}'`
echo $rtmp
swf=`echo "$link" | awk -F 'swfUrl=' '{print $2}'| awk -F ' ' '{print $1}'`
echo $swf
page=`echo "$link" | awk -F 'pageUrl=' '{print $2}'| awk -F ' ' '{print $1}'`
echo $page
playpath=`echo "$link" | awk -F 'laypath=' '{print $2}'| awk -F ' ' '{print $1}'`
echo $playpath
echo rtmpdump -v -r \"$rtmp\" -W \"$swf\" -p \"$page\" -y \"$playpath\" | bash | vlc -
}
add_stream
exit
questo l avevo fatto x provare i link che trovo funziona con quasi tutti i link x simple TV
potresti commentare la scritta |bash cosi #|bash
cosi da avere il comando da inserire nello script ...
anzi cosi ti da gia la stringa convertita
Codice: Seleziona tutto
#!/bin/bash
## Recupero canali
function add_stream(){
zenity --entry --text="Inserisci link simple player" > /tmp/Usher1
play_rtmp
}
function play_rtmp(){
link=`cat /tmp/Usher1`
rtmp=`echo "$link" | awk -F 'rtmp-raw=' '{print $2}'| awk -F ' ' '{print $1}'`
#echo $rtmp
swf=`echo "$link" | awk -F 'swfUrl=' '{print $2}'| awk -F ' ' '{print $1}'`
#echo $swf
page=`echo "$link" | awk -F 'pageUrl=' '{print $2}'| awk -F ' ' '{print $1}'`
#echo $page
playpath=`echo "$link" | awk -F 'laypath=' '{print $2}'| awk -F ' ' '{print $1}'`
#echo $playpath
echo "rtmpdump -v -r "\"$rtmp"\" -W "\"$swf"\" -p "\"$page"\" -y "\"$playpath"\" | vlc -" #| bash
read
}
add_stream
exit
Grandeeeeeeeeee....immensooooo Zerocoll. Grazie, grazie, grazie e ancora grazie.
Ehhmmmm...adesso ti faccio vedere il listone canali
Codice: Seleziona tutto
#!/bin/bash
## Stream list updated 30.10.2012 ######################################
STREAMLIST='
RSI LA1- Svizzera Italiana| -r "rtmp://cp108478.live.edgefcs.net/live" -W "http://www.wilmaa.com/player/main_v5.033.swf" -p "http://www.wilmaa.com" --live -y "rsila1_1_800@45513" -x "927444" -w "6c1be1765187eae0bc9af07d858fae59a0effd3c5b803d08db261ced2c5512bb"
RSI LA2- Svizzera Italiana| -r "rtmp://cp108478.live.edgefcs.net/live" -W "http://www.wilmaa.com/player/main_v5.033.swf" -p "http://www.wilmaa.com" --live -y "rsila2_2_800@45514" -x "927444" -w "6c1be1765187eae0bc9af07d858fae59a0effd3c5b803d08db261ced2c5512bb"
Al Jazeera English| -v -r rtmp://aljazeeraflashlivefs.fplive.net/aljazeeraflashlive-live/aljazeera_eng_med
BBC World News| -v -r rtmp://a.cdn.msnbclive.eu/edge/bbcworld_vh -W http://msnbclive.eu/getswf.php?name=player.swf -p http://blog.livenewschat.tv/world-newsroom
CNN International News| -v -r rtmp://a.cdn.msnbclive.eu/edge/cnni_live -W http://msnbclive.eu/getswf.php?name=player.swf -p http://blog.livenewschat.tv/international-room-chat
EUROSport| -v -r "rtmp://cp108478.live.edgefcs.net/live/eurosport_1_300@45515" -x "927772" -w "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8"
FRANCE 2| -v -r "rtmp://cp108476.live.edgefcs.net/live/france2_1_800@45496" -x "927772" -w "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8"
FRANCE 3| -v -r "rtmp://cp108476.live.edgefcs.net/live/france3_1_800@45499" -x "927772" -w "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8"
FRANCE 5| -v -r "rtmp://cp108476.live.edgefcs.net/live/france5_1_800@45501" -x "927772" -w"c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8"
RTS un- Svizzera Francese| -v -r "rtmp://cp115491.live.edgefcs.net/live/tsr1_1_800@45522" -x "927772" -w "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8"
RTS deux- Svizzera Francese| -v -r "rtmp://cp115491.live.edgefcs.net/live/tsr2_1_800@45523" -x "927772" -w "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8"
RTE 1- Ireland| -v -r "rtmpte://fmsod.rte.ie/live/rte1" -W "http://www.rte.ie/static/player/swf/osmf2_541_2012_11_14.swf" -p "http://www.rte.ie/player/"
RTE 1n- Ireland| -v -r "rtmp://fmsod.rte.ie:1935/live" -y "rte1" -W "http://www.rte.ie/static/player/swf/osmf2_541_2012_11_14.swf" -p "http://www.rte.ie/player/nl/live/8/"
RTE 2- Ireland| -v -r "rtmpte://fmsod.rte.ie/live/rte2" -W "http://www.rte.ie/static/player/swf/osmf2_541_2012_11_14.swf" -p "http://www.rte.ie/player/"
RTE 2n- Ireland| -v -r "rtmp://fmsod.rte.ie:1935/live" -y "rte2" -W "http://www.rte.ie/static/player/swf/osmf2_541_2012_11_14.swf" -p "http://www.rte.ie/player/nl/live/8/"
SKYTG24 - Italy| -v -r "rtmp://212.243.210.71:1935/live?_fcs_vhost=cp49989.live.edgefcs.net/streamRM1@2564" -q | vlc -
TV3 24 - Spagna| -v -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live/stream_324_FLV" | vlc --aspect-ratio=16:9 -
TV 3 CATALOGNA | -v -r "rtmp://tv-nogeo-flashlivefs.fplive.net/tv-nogeo-flashlive-live/stream_TV3CAT_FLV" | vlc --aspect-ratio=16:9 -
ORF 1 -Austria | -v -r "rtmp://cp108341.live.edgefcs.net/live/orf1_1_800@43059" --swfsize "927772" --swfhash "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8" -q | vlc --aspect-ratio=16:9 -
ORF 2 -Austria | -v -r "rtmp://cp108476.live.edgefcs.net/live/orf2_1_800@45502" --swfsize "927772" --swfhash "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8" -q | vlc --aspect-ratio=16:9 -
LA7 - Italy | -v -r "rtmpe://188.122.91.21/play/gfdfdgdfsrr" -W "http://www.flashcast.tv/jwplayer/jwplayer.flash.swf" -p "http://www.flashcast.tv/watch.php?live=gfdfdgdfsrr" | vlc --quiet --meta-title=Powered-by-Darby_Crash - 2>/dev/null
XXX Filmon | -v -r “rtmp://mi5.gv.filmon.com:1935/live/_definst_/77.high.stream | vlc -
XXX Filmon | -v -r “rtmp://mi5.gv.filmon.com:1935/live/_definst_/249.high.stream | vlc -
XXX Filmon | -v -r “rtmp://mi5.gv.filmon.com:1935/live/_definst_/107.high.stream | vlc -
XXX Filmon | -v -r “rtmp://mi5.gv.filmon.com:1935/live/_definst_/250.high.stream | vlc -
XXX Filmon Asia | -v -r “rtmp://live190.la3.origin.filmon.com:1935/live/198.high.stream | vlc -
XXX Filmon Teen | -v -r “rtmp://live190.la3.origin.filmon.com:1935/live/73.high.stream | vlc -
XXX Filmon Hard | -v -r ”rtmp://live190.la3.origin.filmon.com:1935/live/ playpath=245.low.stream | vlc -
RAI 1 Italy | -v -r “rtmp://mi6.gv.filmon.com:1935/live/375.low.stream | vlc -
RAI 2 Italy | -v -r “rtmp://mi6.gv.filmon.com:1935/live/376.low.stream | vlc -
Mediaset R4 | -v -r “rtmp://mi6.gv.filmon.com:1935/live/430.high.stream | vlc -
Mediaset C5 | -v -r “rtmp://mi6.gv.filmon.com:1935/live/433.high.stream | vlc -
Mediaset It1 | -v -r “rtmp://mi6.gv.filmon.com:1935/live/427.high.stream | vlc -
Mediaset TG Com24 | -v -r “rtmp://mi6.gv.filmon.com:1935/live/1802.low.stream | vlc -
RAI News Italy | -v -r “rtmp://mi6.gv.filmon.com:1935/live/378.high.stream |vlc -
ITV 1+1 England | -v -r “rtmp://mi7.gv.filmon.com:1935/live/1817.high.stream |vlc -
ITV 2+1 England | -v -r “rtmp://mi7.gv.filmon.com:1935/live/1820.high.stream |vlc -
ITV 3+1 England | -v -r “rtmp://mi7.gv.filmon.com:1935/live/1823.high.stream |vlc -
ITV 4+1 England | -v -r “rtmp://mi7.gv.filmon.com:1935/live/1826.high.stream |vlc -
RTVE Spagna | -v -r “rtmp://mi3.gv.filmon.com:1935/live/23.high.stream |vlc -
Breaking News | -v -r “rtmp://mi5.gv.filmon.com:1935/live/302.high.stream |vlc -
SPORT 1 Germania | -v -r "rtmp://cp108478.live.edgefcs.net/live/sport1_1_800@45517" --swfsize "927772" --swfhash "c5508d4c14a86bfa902ec749eb544d0c260f9fed9993ed712c7d905506ef47f8" -q | vlc --aspect-ratio=16:9 -
RSI LA1 | -v -r "rtmp://cp108478.live.edgefcs.net/live/rsila1_1_800@45513"
RSI LA2 | -v -r "rtmp://cp108478.live.edgefcs.net/live/rsila2_2_800@45514"
Sportitalia 1 | -v -r "rtmp://live.cdnplayer.com:1935/live413/solocalciolive"
RTP1 Portogallo | -v -r "rtmp://h2i.rtp.pt/livetv/2ch5h264" -W "http://www.rtp.pt/noticias/player.swf" -p "http://www.rtp.pt" | vlc --aspect-ratio=16:9 -
RTP2 Portogallo | -v -r "rtmp://h2e.rtp.pt/livetv/2ch3h264" -W "http://www.rtp.pt/noticias/player.swf" -p "http://www.rtp.pt" | vlc --aspect-ratio=16:9 -
RTP INT. Portogallo | -v -r "rtmp://h2i.rtp.pt/livetv/2ch120h264" -W "http://www.rtp.pt/noticias/player.swf" -p "http://www.rtp.pt" | vlc --aspect-ratio=16:9 -
ANTENA 3 Spagna | -v -W "http://www.antena3.com/static/swf/A3Player.swf" -r "rtmp://antena3fms35livefs.fplive.net:1935/antena3fms35live-live/stream-antena3" -q -p "http://www.antena3.com/directo/" | vlc --aspect-ratio=16:9 -
LA SEXTA Spagna | -v -r "rtmp://antena3fms35livefs.fplive.net:1935/antena3fms35live-live/stream-lasexta" --swfsize "936418" --swfhash "f055c2410175ef5f96b211ad823e0b963615ccd2b15b37eb168ce0a376432326" | vlc --aspect-ratio=16:9 -
LA EFFE Italy | -v -r rtmpe://cp225189.live.edgefcs.net/live/LaEffeTVLiveFlash@111302 -W http://laeffe.dgtmedia.com/layout/laeffeplayer.swf -p http://www.laeffe.tv -v | vlc -
TOP CRIME Italy | rtmpdump -v -r "rtmp://204.107.26.72/battlecam/" -W "http://www.battlecam.com/application/themes/base/flash/broadcast/VideoChatECCDN_debug.swf?version=23" -p "http://www.battlecam.com/" -C O:1 -C O:0 -y "mp4:bc_3358805" | vlc -
Sport Tv1 Portugal | -v -r "rtmp://redbull.micast.tv/liveedge/sporttv1" -p "http://micast.tv/ch.php?ch=sporttv1" | vlc -
CIELO Italy | -v -r "rtmp://46.23.67.58/live/itv567?id=46781" -C "S:OK" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http://www.ucaster.eu/embedded/itv567/1/500/400" | vlc --quiet --meta-title=Powered-by-Darby_Crash - 2>/dev/null
DMAX Italy | -v -r "rtmp://188.165.228.216:51935/mariorossi/DMAX/-156850092_quicklive/" -W "http://www.live-onweb.com/events/low_embed_channel.swf" -p "http://www.live-onweb.com/" -y "-156850092_quicklive" | "C:\Programmi\VideoLAN\VLC\vlc.exe" --meta-title="by Darby_Crash" -
FOCUS Italy | -v -r "rtmpe://188.122.91.20/play/ffdsr4focd" -W "http://www.flashcast.tv/jwplayer/jwplayer.flash.swf" -p "http://www.flashcast.tv/watch.php?live=ffdsr4focd" | "C:\Programmi\VideoLAN\VLC\vlc.exe" --network-caching=10000 --high-priority --no-qt-updates-notif --meta-title="by Darby_Crash" -
GIALLO Italy | rtmpdump -q -v -r "rtmp://146.185.30.244/live/gialloff?id=47698" -C "S:OK" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http://www.ucaster.eu/embedded/gialloff/1/500/400" | vlc --quiet --meta-title=Powered-by-Darby_Crash - 2>/dev/null
RAI 4 Italy | rtmpdump -q -v -r "rtmp://146.185.30.244/live/ioukk?id=46969" -C "S:OK" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http://www.ucaster.eu/embedded/ioukk/1/500/400" | vlc --quiet --meta-title=Powered-by-Darby_Crash - 2>/dev/null
7GOLD Italy | -v -r "rtmp://212-189.livestream.com/mogulus-stream-edge/crozzpopizzo" -a "mogulus-stream-edge/crozzpopizzo" -W "http://cdn.livestream.com/chromelessPlayer/v21/playerapi.swf" -p "http://www.livestream.com" -y "rtmp://212-173.livestream.com/affiliateStream/crozzpopizzo/6c69766572657065617465723a72746d703a2f2f3231322d3137332e6c69766573747265616d2e636f6d2f6d6f67756c75732f63726f7a7a706f70697a7a6f2f6c69766573747265616d" | vlc -
LA5 Italy | -v -r "rtmp://146.185.19.140/live/fsdfdfsre?id=46750" -C "S:OK" -W "http://www.ucaster.eu/static/scripts/eplayer.swf" -p "http://www.ucaster.eu/embedded/fsdfdfsre/1/500/400" | vlc --quiet --meta-title=Powered-by-Darby_Crash - 2>/dev/null
ITALIA 2 Italy | -v -r "rtmp://204.107.26.72/battlecam/" -W "http://www.battlecam.com/application/themes/base/flash/broadcast/VideoChatECCDN_debug.swf?version=23" -p "http://www.battlecam.com/" -C O:1 -C O:0 -y "mp4:bc_3216833" | vlc -
BEIN SPORT Fra | rtmpdump -r "rtmpe://37.220.32.38:1735/vod" -a "vod" -f "WIN 11,3,300,268" -W "http://cache.hdcastream.com/jwplayer5/player.swf" -p "http://hdmytv.com/" -T "#ro%g0#r@1" -y "Jerri25125_6j8m0ag" | vlc -
CANAL PLUS France | rtmpdump -r "rtmpe://37.220.32.38:1735/vod" -a "vod" -f "WIN 11,3,300,268" -W "http://cache.hdcastream.com/jwplayer5/player.swf" -p "http://hdmytv.com/" -T "#ro%g0#r@1" -y "Jerri25125_6j8m0ag" | vlc -
BEIN SPORT1 France | rtmpdump -r "rtmpe://37.220.32.34:1735/vod" -a "vod" -f "WIN 11,3,300,268" -W "http://cache.hdcastream.com/jwplayer5/player.swf" -p "http://hdmytv.com/" -T "#ro%g0#r@1" -y "footplus5169_6iyy6k6" | vlc -
ERT Grecia | -v -r "rtmp://cp61438.live.edgefcs.net:443/live?ovpfv=2.1.5" -y "ebu_offsite_1@9776" -p "http://forum.ubuntu-it.org" | vlc -
SKY SPORTS F1 | rtmpdump -v -r "rtmp.://31.7.58.122:1935/stream/" -W "http://thecdn.04stream.com/p/ooolo1.swf" -p "http://www.04stream.com" -y "1zFrjV9uj9.stream" | vlc -
'
########################################################################
IFS=$'\n'
clear
tput smul
echo ""
echo ":: Streaming Media Player ::"
echo ":: Select Channel to Play ::"
tput rmul
echo ""
## selection entry text
PS3="`tput bold`Enter Station Number To Play > `tput sgr0`"
select STREAM in `echo "$STREAMLIST" | cut -d"|" -f1 | sort` "Quit" ; do
[[ "$STREAM" == "Quit" ]] && echo "Goodbye...." && exit ## exit script
## get stream command / urls
GETURL=`echo "$STREAMLIST" | grep -w -m1 "^$STREAM" | cut -d"|" -f2`
if [[ -n "$GETURL" ]]; then
## show selected channel name
tput smso && echo " >:Attempt connection to video stream $STREAM:< " && tput rmso
## play stream - remove -q to see what rtmpdump is doing - change media player here
eval rtmpdump -q "$GETURL" | vlc - &>/dev/null
else
## no selection message
tput setf 4 && echo "Not a menu entry - please select again" && tput sgr0
fi
done