login  Naam:   Wachtwoord: 
Registreer je!
 Scripts:

Scripts > Overige > Linux > Streaming

Streaming

Auteur: Murfy - marten - 24 september 2005 - 19:45 - Gekeurd door: Maarten - Hits: 14479 - Aantal punten: 3.50 (2 stemmen)



Dit script geeft een overzichtje van de Belgische streams en speelt ze af ook (joepie). Je moet wel mplayer hebben staan.

Als je iets afspeelt, zal hij altijd een cache instellen, waardoor je radio verderspeelt als je internetverbinding bv. een minuutje wegvalt. Als dit niet werkt, probeer dan mplayer of alsa (of een andere sound arch.) te upgraden.

Gewoon plakken in het bestand "radio" en dan plaatsen in /home/username (bv. /home/murfy).

Eventueel chmodden:
  1. chmod 777 /home/mijnmap/radio


En dan simpelweg openen met

  1. ./radio



Opmerking:

Als een bepaalde stream het niet doet, en jij weet wat de juiste url is, gelieve die dan te PM'en. Het script is zoals je ziet erg gemakkelijk aan te passen.

Updates:
24/09/05 20:11 Stream voor Q-Music (6) aangepast.

Code:
Belgische streams:
  1. #!/bin/sh
  2.  
  3. if [ "$1" == "" ]; then
  4. echo "Welke zender wilt u beluisteren?
  5.  
  6. [1] Radio 1
  7. [2] Radio 2
  8. [3] Studio Brussel
  9. [4] Donna high
  10. [5] 4FM
  11. [6] QMusic
  12. [7] EnjoyFM
  13. [8] Enjoy Hits
  14. [9] Klara
  15. [10] Radio 105 italy
  16. [11] Top 40 Norway
  17. [12] 927Live
  18. [13] Arabica
  19. [14] Topradio
  20. [15] Enjoy 2
  21. [16] Donna Low
  22. [17] Donna Mid
  23.  
  24. Voer uw keuze in:
  25. "
  26. read keuze
  27. else
  28. keuze="$1"
  29. fi
  30.  
  31. case "$keuze" in
  32. 1) station="mms://streampower.belgacom.be/radio1high"
  33. ;;
  34. 1l) station="mms://streampower.belgacom.be/radio1low"
  35. ;;
  36. 2) station="mms://streampower.belgacom.be/ra2vlbhigh"
  37. ;;
  38. 2l) station="mms://streampower.belgacom.be/ra2vlblow"
  39. ;;
  40. 3) station="mms://stream04.pandora.be/stubrubreed"
  41. ;;
  42. 3l) station="mms://stream04.pandora.be/stubrusmal"
  43. ;;
  44. 4) station="http://mp3.streampower.be/donna-high.mp3"
  45. ;;
  46. 4l) station="mms://stream04.pandora.be/donnasmal"
  47. ;;
  48. 5) station="mms://mss.streampower.be/4fmhi"
  49. ;;
  50. 5l) station="mms://mss.streampower.be/4fmlo"
  51. ;;
  52. 6) station="mms://clusterstreamhobo.telenet-ops.be/Qmusic_high"
  53. ;;
  54. 6l) station="mms://clusterstreamhobo.telenet-ops.be/Qmusic_low"
  55. ;;
  56. 7) station="http://stream3.mystic.be:2680/"
  57. ;;
  58. 7l) station="http://stream4.mystic.be:3190/"
  59. ;;
  60. 8) station="http://stream5.mystic.be:2730/ "
  61. ;;
  62. 8l) station="http://stream6.mystic.be:3160/"
  63. ;;
  64. 9) station="mms://streampower.belgacom.be/klarahigh"
  65. ;;
  66. 9l) station="mms://streampower.belgacom.be/klaralow"
  67. ;;
  68. 10) station="mms://fastreal.fastweb.it/FR_UM04_128k"
  69. ;;
  70. 11) station="mms://wms03.nordicwebradio.com/radio1oslo3"
  71. ;;
  72. 12) station="mms://streampower.belgacom.be/927livelow"
  73. ;;
  74. 13) station="pnm://rm.bbc.co.uk/worldservice/live24/gulf28.ra"
  75. ;;
  76. 14) station="mms://broadcast.ionip.be/topradioHigh"
  77. ;;
  78. 14l) station="mms://broadcast.ionip.be/topradioLow"
  79. ;;
  80. 15) station="http://www.radio-enjoy.be/streams/hitbb.pls"
  81. ;;
  82. 16) station="http://mp3.streampower.be/donna-low.mp3"
  83. ;;
  84. 17) station="http://mp3.streampower.be/donna-mid.mp3"
  85. ;;
  86. *) echo "Wrong choice!"
  87. esac
  88.  
  89. mplayer $station
  90. #mplayer $station -ao alsa9
  91.  


Nederlandse streams:
  1. #!/bin/sh
  2.  
  3. if [ "$1" == "" ]; then
  4. echo "Welke zender wilt u beluisteren?
  5.  
  6. [1] Radio 1
  7. [2] Radio 2
  8. [3] Radio 3 FM
  9. [4] Radio 538
  10. [5] RTL FM
  11. [6] Sky Radio
  12. [7] Slam FM
  13. [8] Wereldomroep
  14. [9] Yorin FM
  15.  
  16.  
  17. Voer uw keuze in:
  18. "
  19. read keuze
  20. else
  21. keuze="$1"
  22. fi
  23.  
  24. case "$keuze" in
  25. 1) station="http://streams.planet.nl/cgi-bin/reflector.cgi?stream=stream gate41"
  26. ;;
  27. 2) station="http://streams.planet.nl/cgi-bin/reflector.cgi?stream=stream gate44"
  28. ;;
  29. 3) station="http://streams.planet.nl/cgi-bin/reflector.cgi?stream=stream gate46"
  30. ;;
  31. 4) station="http://www.garnierstreamingmedia.com/asx/radio538.asp"
  32. ;;
  33. 5) station="http://media.rtl.nl/rtlfm/livestream/rtlfmbroad.asx"
  34. ;;
  35. 6) station="http://cinecast.capcave.com/streams/SkyRadio/SkyRadio.asx"
  36. ;;
  37. 7) station="http://www.slamfm.nl/stream/slamfm.pls"
  38. ;;
  39. 8) station="http://www.rnw.nl/distrib/realaudio/ram/live/rnw_live_2.asx"
  40. ;;
  41. 9) station="http://media.rtl.nl/yorinfm/on_air/yorin.asx"
  42. ;;
  43. *) echo "Wrong choice!"
  44. esac
  45.  
  46. mplayer $station
  47. #mplayer $station -ao alsa9
  48.  
Download code! Download code (.txt)

 Stemmen
Niet ingelogd.

 Reacties
Post een reactie
Lees de reacties (4)
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.046s