Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ##
- ## rtmpdumpTV
- ## REQUIRES RTMPDUMP, ZENTIY, VLC/MPLAYER
- ## OPTIONALLY RTMPDUMP CAN BE REPLACED WITH FLVSTREAMER
- ##
- ## IF YOU FIND MORE CHANNELS, PLEASE ADD THEM OR LET US KNOW.
- ##
- ##
- ##SET PLAYER FRONTEND - UNCOMMENT YOUR FAVE
- PLAYER="vlc"
- #PLAYER="mplayer -nomouseinput" # MPLAYER-SUPPORTED OPTIONS AS YOU WISH
- #PLAYER="ffplay"
- ## CHANNEL LIST FOR HD, TRY AT DIFFERENT TIMES OF THE DAY
- CHANNELS='HBO HD=z010402.stream
- Kabel 1=z010103.stream
- Pro Sieben=z010102.stream
- RTL=z030101.stream
- RTL II=z030104.stream
- SAT.1=z010101.stream
- Sixx=z010104.stream
- VOX=z050220.stream
- ZDF=z030401.stream
- CCTV News=z050222.stream
- FoxHD=z050224.stream
- SkyNewsHD=z050227.stream
- Sky Sports Hd1=z050226.stream
- PENTHOUSE 2 HD=z990104.stream
- Redlight HD=z990101.stream
- RAI HD=z050214.stream
- RAI1 HD=z050214.stream
- RAI News HD=z050217.stream
- Sky News HD=z020601.stream
- RAI2 HD=z050215.stream
- MTV HD=z010001.stream
- RTL HD=z030101.stream
- BBC HD=z010201.stream
- HBO 2 HD=z010701.stream
- Eurosport 2 HD=z010301.stream
- EUROSPORT HD =z010601.stream
- ESPN HD=z050201.stream
- SPORT1 HD=z030103.stream
- ZDF HD=z030401.stream
- Disney XD HD=z020101.stream
- ITV2 HD=z020102.stream
- ITV3 HD=z020103.stream
- MGM HD=z020401.stream
- Cinema MAX=HDz050206
- Sky Family HD=z020403.stream
- Sky Thriller HD=z020404.stream
- Sky Premiere HD=z020402.stream
- Animal Planet HD=z050001.stream
- Discovery HD=z050002.stream
- TF1=z010107.stream
- France2 HD=z010105.stream
- Comedy Central HD=z020503.stream
- Eden HD=z020504.stream
- Nat Geo HD=z020501.stream
- Nickelodeon HD=z020502.stream
- Sky Comedy HD=z020304.stream
- Sky DraRomHD=z020302.stream
- Sky MdnGrtsHD=z020301.stream
- Bio HD=z020204.stream
- History HD=z020203.stream
- NatGeoWild HD=z020202.stream
- Sky Action HD=z020201.stream
- Sky Cinema 1 HD=z050207.stream
- Sky Cinema Comedy HD=z050205.stream
- Sky Cinema Hits HD=z050211.stream
- Sky Cinema Max HD=z050206.stream
- Cinemax 1 HD=z050221.stream
- Cinemax 2 HD=z010401.stream
- Sky Classics HD=z020702.stream
- Sky Indie HD=z020703.stream
- Universal HD=z020701.stream
- Sky Arts 1 HD=z020602.stream
- Sky News HD=z020601.stream
- Channel 4 HD=z020001.stream
- Rai 1 HD=z050214.stream
- Rai 2 HD=z050215.stream
- CANALE 5=z010501.stream
- Italia 1=z010502.stream
- Viva Polska=z010002.stream
- NTV=z040001.stream
- Pershiy=z040002.stream
- CTC=z040003.stream
- THT=z040004.stream'
- ## LOWER DEFINITION/DIFFERENT SERVER - NEEDS SWF HASH AND SIZE
- CHANNELS2='CNN=rtmp://cp108476.live.edgefcs.net/live/cnn_1_800@45497
- euronews=rtmp://cp115491.live.edgefcs.net/live/euronews_1_800@45525
- VIVA=rtmp://cp115491.live.edgefcs.net/live/viva_1_800@46087
- sport1=rtmp://cp108478.live.edgefcs.net/live/sport1_1_800@45517
- eurosport=rtmp://cp108478.live.edgefcs.net/live/eurosport_1_800@45515
- RAI1=rtmp://cp108475.live.edgefcs.net/live/rai1_1_800@44470
- Rusiya1=rtmp://cp115491.live.edgefcs.net/live/rusiya_1_800@45521
- TV5Monde=rtmp://cp108478.live.edgefcs.net/live/tv5monde_1_800@45511
- TSR1=rtmp://cp115491.live.edgefcs.net/live/tsr1_1_800@45522
- TSR2=rtmp://cp115491.live.edgefcs.net/live/tsr2_1_800@45523
- ZDFneo=rtmp://cp108475.live.edgefcs.net/live/zdfneo_1_800@44504
- SF1=rtmp://cp108341.live.edgefcs.net/live/sf1_1_800@43046
- SF2=rtmp://cp108341.live.edgefcs.net/live/sf2_1_800@43048
- ORF1=rtmp://cp108341.live.edgefcs.net/live/orf1_1_800@43059
- ORF2=rtmp://cp108476.live.edgefcs.net/live/orf2_1_800@45502
- 3sat=rtmp://cp108475.live.edgefcs.net/live/3sat_1_800@45493
- arteDE=rtmp://cp108476.live.edgefcs.net/live/arte_1_800@45495
- arteFR=rtmp://cp108478.live.edgefcs.net/live/arte_fr_1_800@45512
- KiKa=rtmp://cp108476.live.edgefcs.net/live/kika_1_800@45500
- Pro7=rtmp://cp108341.live.edgefcs.net/live/pro7_1_800@43051
- RTL=rtmp://cp108341.live.edgefcs.net/live/rtl_1_800@43050
- RTL2=rtmp://cp108341.live.edgefcs.net/live/rtl2_1_800@43053
- SuperRTL=rtmp://cp108475.live.edgefcs.net/live/superrtl_1_800@44489
- Sat1=rtmp://cp108475.live.edgefcs.net/live//sat1_1_800@44490
- vox=rtmp://cp108341.live.edgefcs.net/live/vox_1_800@43052
- Kabel1=rtmp://cp108341.live.edgefcs.net/live/kabel1_1_800@43055
- sixx=rtmp://cp108478.live.edgefcs.net/live/sixx_1_800@45516
- DMAX=rtmp://cp108476.live.edgefcs.net/live/dmax_1_800@45498
- ntv=rtmp://cp115491.live.edgefcs.net/live/ntv_1_800@45520
- nick/CC=rtmp://cp108478.live.edgefcs.net/live/nick_cc_1_800@45519
- starTV=rtmp://cp115491.live.edgefcs.net/live/startv_1_800@45526
- telezueri=rtmp://cp108475.live.edgefcs.net/live/telezueri_1_800@44503
- France2=rtmp://cp108476.live.edgefcs.net/live/france2_1_800@45496
- France3=rtmp://cp108476.live.edgefcs.net/live/france3_1_800@45499
- France5=rtmp://cp108476.live.edgefcs.net/live/france5_1_800@45501
- rsila1=rtmp://cp108478.live.edgefcs.net/live/rsila1_1_800@45513
- rsila2=rtmp://cp108478.live.edgefcs.net/live/rsila2_2_800@45514'
- ## AS ABOVE, BUT NEED SOCKS
- CHANNELS3='BBC=rtmp://cp108477.live.edgefcs.net/live/bbcworld_1_300@45508
- rougeTV=rtmp://cp108477.live.edgefcs.net/live/rougetv_1_300@57040
- M6=rtmp://cp108477.live.edgefcs.net/live/m6_1_300@45506
- TF1=rtmp://cp108477.live.edgefcs.net/live/tf1_1_800@45504
- Nick/VIVA=rtmp://cp108477.live.edgefcs.net/live/nick_viva_1_800@45507
- DasVierte=rtmp://cp108477.live.edgefcs.net/live/dasvierte_1_300@45510
- RTL9=rtmp://cp108477.live.edgefcs.net/live/rtl9_1_300@45503
- SFinfo=rtmp://cp108477.live.edgefcs.net/live/sfinfo_1_300@45505
- ZDF=rtmp://cp108477.live.edgefcs.net/live/zdf_1_300@45509'
- UA="Mozilla/5.0 (Linux; U; Android 0.5; en-us) AppleWebKit/522+ (KHTML, like Gecko) Safari/419.3"
- while [ $? -eq 0 ]; do
- function seloperation(){
- operation=`zenity --width=200 --height=300 --list --column "Server Name" --title="rtmpdumpTV" --text="Select a server:" "Server1" "Server2" "Server3" "LowDef" "LowDefSocks"`
- }
- seloperation
- case "$operation" in
- "Server1" )
- PROG=`echo "$(echo "$CHANNELS" | cut -d= -f1)" | zenity --height=450 --width=280 --list --column="Programme" --title="rtmpdumpTV" --text="Select Channel:"`
- if [ "$PROG" != "" ]; then
- PROGNUM=`echo "$CHANNELS" | grep "$PROG" | cut -d= -f2`
- ## IF YOU WANT TO USE FLVSTREAMER, UNCOMMENT:
- # flvstreamer -r "rtmp://s7.webport.tv/live" -s "http://www.tvsector.com/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf" -p "http://www.tvsector.com/" -y $PROGNUM -e |$PLAYER -
- ## IF YOU WANT TO USE RTMPDUMP, UNCOMMENT:
- rtmpdump -r "rtmp://s7.webport.tv/live" -W "http://www.tvsector.com/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf" -p "http://www.tvsector.com/" -y $PROGNUM |$PLAYER -
- else
- exit 0
- fi ;;
- "Server2" )
- PROG=`echo "$(echo "$CHANNELS" | cut -d= -f1)" | zenity --height=450 --width=280 --list --column="Programme" --title="rtmpdumpTV" --text="Select Channel:"`
- if [ "$PROG" != "" ]; then
- PROGNUM=`echo "$CHANNELS" | grep "$PROG" | cut -d= -f2`
- ## IF YOU WANT TO USE FLVSTREAMER, UNCOMMENT:
- # flvstreamer -r "rtmp://s99.webport.tv/live" -s "http://www.tvsector.com/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf" -p "http://www.tvsector.com/" -y $PROGNUM -e |$PLAYER -
- ## IF YOU WANT TO USE RTMPDUMP, UNCOMMENT:
- rtmpdump -r "rtmp://s99.webport.tv/live" -W "http://www.tvsector.com/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf" -p "http://www.tvsector.com/" -y $PROGNUM |$PLAYER -
- else
- exit 0
- fi ;;
- "Server3" )
- PROG=`echo "$(echo "$CHANNELS" | cut -d= -f1)" | zenity --height=450 --width=280 --list --column="Programme" --title="rtmpdumpTV" --text="Select Channel:"`
- if [ "$PROG" != "" ]; then
- PROGNUM=`echo "$CHANNELS" | grep "$PROG" | cut -d= -f2`
- ## IF YOU WANT TO USE FLVSTREAMER, UNCOMMENT:
- # flvstreamer -r "rtmp://s5.webport.tv/live" -s "http://www.tvsector.com/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf" -p "http://www.tvsector.com/" -y $PROGNUM -e |$PLAYER -
- ## IF YOU WANT TO USE RTMPDUMP, UNCOMMENT:
- rtmpdump -r "rtmp://s5.webport.tv/live" -W "http://www.tvsector.com/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf" -p "http://www.tvsector.com/" -y $PROGNUM |$PLAYER -
- else
- exit 0
- fi ;;
- "LowDef" )
- PROG=`echo "$(echo "$CHANNELS2" | cut -d= -f1)" | zenity --height=450 --width=280 --list --column="Programme" --title="rtmpdumpTV" --text="Select Channel:"`
- if [ "$PROG" != "" ]; then
- swfsize=927444
- swfhash=6c1be1765187eae0bc9af07d858fae59a0effd3c5b803d08db261ced2c5512bb
- PROGNUM=`echo "$CHANNELS2" | grep "$PROG" | cut -d= -f2`
- #echo $PROGNUM
- (rtmpdump -v -r $PROGNUM --swfsize $swfsize --swfhash $swfhash -q | $PLAYER -) 2> /dev/null
- else
- exit 0
- fi ;;
- "LowDefSocks" )
- PROG=`echo "$(echo "$CHANNELS3" | cut -d= -f1)" | zenity --height=450 --width=280 --list --column="Programme" --title="rtmpdumpTV, with SOCKS" --text="Select Channel:"`
- if [ "$PROG" != "" ]; then
- socks=127.0.0.1:9050
- swfsize=927444
- swfhash=6c1be1765187eae0bc9af07d858fae59a0effd3c5b803d08db261ced2c5512bb
- PROGNUM=`echo "$CHANNELS3" | grep "$PROG" | cut -d= -f2`
- echo -S $socks -v -r $PROGNUM --swfsize $swfsize --swfhash $swfhash -q
- (rtmpdump -S $socks -v -r $PROGNUM --swfsize $swfsize --swfhash $swfhash -q | $PLAYER -) 2> /dev/null
- else
- exit 0
- fi ;;
- esac
- exit
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement