Advertisement
AlbSpirit

Untitled

Mar 8th, 2014
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.05 KB | None | 0 0
  1.   #!/bin/bash
  2. ##
  3. ## rtmpdumpTV
  4. ## REQUIRES RTMPDUMP, ZENTIY, VLC/MPLAYER
  5. ## OPTIONALLY RTMPDUMP CAN BE REPLACED WITH FLVSTREAMER
  6. ##
  7. ## IF YOU FIND MORE CHANNELS, PLEASE ADD THEM OR LET US KNOW.
  8. ##
  9. ##
  10.  
  11. ##SET PLAYER FRONTEND - UNCOMMENT YOUR FAVE
  12. PLAYER="vlc"
  13. #PLAYER="mplayer -nomouseinput" # MPLAYER-SUPPORTED OPTIONS AS YOU WISH
  14. #PLAYER="ffplay"
  15.  
  16. ## CHANNEL LIST FOR HD, TRY AT DIFFERENT TIMES OF THE DAY
  17. CHANNELS='HBO HD=z010402.stream
  18. Kabel 1=z010103.stream
  19. Pro Sieben=z010102.stream
  20. RTL=z030101.stream
  21. RTL II=z030104.stream
  22. SAT.1=z010101.stream
  23. Sixx=z010104.stream
  24. VOX=z050220.stream
  25. ZDF=z030401.stream
  26. CCTV News=z050222.stream
  27. FoxHD=z050224.stream
  28. SkyNewsHD=z050227.stream
  29. Sky Sports Hd1=z050226.stream
  30. PENTHOUSE 2 HD=z990104.stream
  31. Redlight HD=z990101.stream
  32. RAI HD=z050214.stream
  33. RAI1 HD=z050214.stream
  34. RAI News HD=z050217.stream
  35. Sky News HD=z020601.stream
  36. RAI2 HD=z050215.stream
  37. MTV HD=z010001.stream
  38. RTL HD=z030101.stream
  39. BBC HD=z010201.stream
  40. HBO 2 HD=z010701.stream
  41. Eurosport 2 HD=z010301.stream
  42. EUROSPORT HD =z010601.stream
  43. ESPN HD=z050201.stream
  44. SPORT1 HD=z030103.stream
  45. ZDF HD=z030401.stream
  46. Disney XD HD=z020101.stream
  47. ITV2 HD=z020102.stream
  48. ITV3 HD=z020103.stream
  49. MGM HD=z020401.stream
  50. Cinema MAX=HDz050206
  51. Sky Family HD=z020403.stream
  52. Sky Thriller HD=z020404.stream
  53. Sky Premiere HD=z020402.stream
  54. Animal Planet HD=z050001.stream
  55. Discovery HD=z050002.stream
  56. TF1=z010107.stream
  57. France2 HD=z010105.stream
  58. Comedy Central HD=z020503.stream
  59. Eden HD=z020504.stream
  60. Nat Geo HD=z020501.stream
  61. Nickelodeon HD=z020502.stream
  62. Sky Comedy HD=z020304.stream
  63. Sky DraRomHD=z020302.stream
  64. Sky MdnGrtsHD=z020301.stream
  65. Bio HD=z020204.stream
  66. History HD=z020203.stream
  67. NatGeoWild HD=z020202.stream
  68. Sky Action HD=z020201.stream
  69. Sky Cinema 1 HD=z050207.stream
  70. Sky Cinema Comedy HD=z050205.stream
  71. Sky Cinema Hits HD=z050211.stream
  72. Sky Cinema Max HD=z050206.stream
  73. Cinemax 1 HD=z050221.stream
  74. Cinemax 2 HD=z010401.stream
  75. Sky Classics HD=z020702.stream
  76. Sky Indie HD=z020703.stream
  77. Universal HD=z020701.stream
  78. Sky Arts 1 HD=z020602.stream
  79. Sky News HD=z020601.stream
  80. Channel 4 HD=z020001.stream
  81. Rai 1 HD=z050214.stream
  82. Rai 2 HD=z050215.stream
  83. CANALE 5=z010501.stream
  84. Italia 1=z010502.stream
  85. Viva Polska=z010002.stream
  86. NTV=z040001.stream
  87. Pershiy=z040002.stream
  88. CTC=z040003.stream
  89. THT=z040004.stream'
  90.  
  91. ## LOWER DEFINITION/DIFFERENT SERVER - NEEDS SWF HASH AND SIZE
  92.  
  93. CHANNELS2='CNN=rtmp://cp108476.live.edgefcs.net/live/cnn_1_800@45497
  94. euronews=rtmp://cp115491.live.edgefcs.net/live/euronews_1_800@45525
  95. VIVA=rtmp://cp115491.live.edgefcs.net/live/viva_1_800@46087
  96. sport1=rtmp://cp108478.live.edgefcs.net/live/sport1_1_800@45517
  97. eurosport=rtmp://cp108478.live.edgefcs.net/live/eurosport_1_800@45515
  98. RAI1=rtmp://cp108475.live.edgefcs.net/live/rai1_1_800@44470
  99. Rusiya1=rtmp://cp115491.live.edgefcs.net/live/rusiya_1_800@45521
  100. TV5Monde=rtmp://cp108478.live.edgefcs.net/live/tv5monde_1_800@45511
  101. TSR1=rtmp://cp115491.live.edgefcs.net/live/tsr1_1_800@45522
  102. TSR2=rtmp://cp115491.live.edgefcs.net/live/tsr2_1_800@45523
  103. ZDFneo=rtmp://cp108475.live.edgefcs.net/live/zdfneo_1_800@44504
  104. SF1=rtmp://cp108341.live.edgefcs.net/live/sf1_1_800@43046
  105. SF2=rtmp://cp108341.live.edgefcs.net/live/sf2_1_800@43048
  106. ORF1=rtmp://cp108341.live.edgefcs.net/live/orf1_1_800@43059
  107. ORF2=rtmp://cp108476.live.edgefcs.net/live/orf2_1_800@45502
  108. 3sat=rtmp://cp108475.live.edgefcs.net/live/3sat_1_800@45493
  109. arteDE=rtmp://cp108476.live.edgefcs.net/live/arte_1_800@45495
  110. arteFR=rtmp://cp108478.live.edgefcs.net/live/arte_fr_1_800@45512
  111. KiKa=rtmp://cp108476.live.edgefcs.net/live/kika_1_800@45500
  112. Pro7=rtmp://cp108341.live.edgefcs.net/live/pro7_1_800@43051
  113. RTL=rtmp://cp108341.live.edgefcs.net/live/rtl_1_800@43050
  114. RTL2=rtmp://cp108341.live.edgefcs.net/live/rtl2_1_800@43053
  115. SuperRTL=rtmp://cp108475.live.edgefcs.net/live/superrtl_1_800@44489
  116. Sat1=rtmp://cp108475.live.edgefcs.net/live//sat1_1_800@44490
  117. vox=rtmp://cp108341.live.edgefcs.net/live/vox_1_800@43052
  118. Kabel1=rtmp://cp108341.live.edgefcs.net/live/kabel1_1_800@43055
  119. sixx=rtmp://cp108478.live.edgefcs.net/live/sixx_1_800@45516
  120. DMAX=rtmp://cp108476.live.edgefcs.net/live/dmax_1_800@45498
  121. ntv=rtmp://cp115491.live.edgefcs.net/live/ntv_1_800@45520
  122. nick/CC=rtmp://cp108478.live.edgefcs.net/live/nick_cc_1_800@45519
  123. starTV=rtmp://cp115491.live.edgefcs.net/live/startv_1_800@45526
  124. telezueri=rtmp://cp108475.live.edgefcs.net/live/telezueri_1_800@44503
  125. France2=rtmp://cp108476.live.edgefcs.net/live/france2_1_800@45496
  126. France3=rtmp://cp108476.live.edgefcs.net/live/france3_1_800@45499
  127. France5=rtmp://cp108476.live.edgefcs.net/live/france5_1_800@45501
  128. rsila1=rtmp://cp108478.live.edgefcs.net/live/rsila1_1_800@45513
  129. rsila2=rtmp://cp108478.live.edgefcs.net/live/rsila2_2_800@45514'
  130.  
  131. ## AS ABOVE, BUT NEED SOCKS
  132. CHANNELS3='BBC=rtmp://cp108477.live.edgefcs.net/live/bbcworld_1_300@45508
  133. rougeTV=rtmp://cp108477.live.edgefcs.net/live/rougetv_1_300@57040
  134. M6=rtmp://cp108477.live.edgefcs.net/live/m6_1_300@45506
  135. TF1=rtmp://cp108477.live.edgefcs.net/live/tf1_1_800@45504
  136. Nick/VIVA=rtmp://cp108477.live.edgefcs.net/live/nick_viva_1_800@45507
  137. DasVierte=rtmp://cp108477.live.edgefcs.net/live/dasvierte_1_300@45510
  138. RTL9=rtmp://cp108477.live.edgefcs.net/live/rtl9_1_300@45503
  139. SFinfo=rtmp://cp108477.live.edgefcs.net/live/sfinfo_1_300@45505
  140. ZDF=rtmp://cp108477.live.edgefcs.net/live/zdf_1_300@45509'
  141.  
  142. UA="Mozilla/5.0 (Linux; U; Android 0.5; en-us) AppleWebKit/522+ (KHTML, like Gecko) Safari/419.3"
  143.  
  144. while [ $? -eq 0 ]; do
  145.  
  146. function seloperation(){
  147.    operation=`zenity --width=200 --height=300 --list --column "Server Name" --title="rtmpdumpTV" --text="Select a server:" "Server1" "Server2" "Server3" "LowDef" "LowDefSocks"`
  148. }
  149.  
  150. seloperation
  151. case "$operation" in
  152.    "Server1" )
  153.    PROG=`echo "$(echo "$CHANNELS" | cut -d= -f1)" | zenity --height=450 --width=280 --list --column="Programme" --title="rtmpdumpTV" --text="Select Channel:"`
  154. if [ "$PROG" != "" ]; then
  155.    PROGNUM=`echo "$CHANNELS" | grep "$PROG" | cut -d= -f2`
  156. ## IF YOU WANT TO USE FLVSTREAMER, UNCOMMENT:
  157. # 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 -
  158. ## IF YOU WANT TO USE RTMPDUMP, UNCOMMENT:  
  159.    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 -
  160. else
  161.    exit 0
  162. fi ;;
  163.     "Server2" )    
  164.    PROG=`echo "$(echo "$CHANNELS" | cut -d= -f1)" | zenity --height=450 --width=280 --list --column="Programme" --title="rtmpdumpTV" --text="Select Channel:"`
  165. if [ "$PROG" != "" ]; then
  166.    PROGNUM=`echo "$CHANNELS" | grep "$PROG" | cut -d= -f2`
  167. ## IF YOU WANT TO USE FLVSTREAMER, UNCOMMENT:
  168. # 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 -
  169. ## IF YOU WANT TO USE RTMPDUMP, UNCOMMENT:
  170.    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 -
  171. else
  172.    exit 0
  173. fi ;;
  174.     "Server3" )    
  175.    PROG=`echo "$(echo "$CHANNELS" | cut -d= -f1)" | zenity --height=450 --width=280 --list --column="Programme" --title="rtmpdumpTV" --text="Select Channel:"`
  176. if [ "$PROG" != "" ]; then
  177.    PROGNUM=`echo "$CHANNELS" | grep "$PROG" | cut -d= -f2`
  178. ## IF YOU WANT TO USE FLVSTREAMER, UNCOMMENT:
  179. # 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 -
  180. ## IF YOU WANT TO USE RTMPDUMP, UNCOMMENT:
  181.    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 -
  182. else
  183.    exit 0
  184. fi ;;
  185.       "LowDef" )    
  186.    PROG=`echo "$(echo "$CHANNELS2" | cut -d= -f1)" | zenity --height=450 --width=280 --list --column="Programme" --title="rtmpdumpTV" --text="Select Channel:"`
  187. if [ "$PROG" != "" ]; then
  188. swfsize=927444
  189. swfhash=6c1be1765187eae0bc9af07d858fae59a0effd3c5b803d08db261ced2c5512bb
  190.    PROGNUM=`echo "$CHANNELS2" | grep "$PROG" | cut -d= -f2`
  191.    #echo $PROGNUM
  192.    (rtmpdump -v -r $PROGNUM --swfsize $swfsize --swfhash $swfhash -q | $PLAYER -) 2> /dev/null
  193.    else
  194.    exit 0
  195. fi ;;    
  196.       "LowDefSocks" )    
  197.    PROG=`echo "$(echo "$CHANNELS3" | cut -d= -f1)" | zenity --height=450 --width=280 --list --column="Programme" --title="rtmpdumpTV, with SOCKS" --text="Select Channel:"`
  198. if [ "$PROG" != "" ]; then
  199. socks=127.0.0.1:9050
  200. swfsize=927444
  201. swfhash=6c1be1765187eae0bc9af07d858fae59a0effd3c5b803d08db261ced2c5512bb
  202.    PROGNUM=`echo "$CHANNELS3" | grep "$PROG" | cut -d= -f2`
  203.    echo -S $socks -v -r $PROGNUM --swfsize $swfsize --swfhash $swfhash -q
  204.    (rtmpdump -S $socks -v -r $PROGNUM --swfsize $swfsize --swfhash $swfhash -q | $PLAYER -) 2> /dev/null
  205.    else
  206.    exit 0
  207. fi ;;  
  208. esac
  209.  
  210. exit
  211.  
  212. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement