Difference between revisions of "Icecast: feeding menggunakan ezstream"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 22: | Line 22: | ||
cp /usr/share/doc/ezstream/examples/ezstream_mp3.xml ~ | cp /usr/share/doc/ezstream/examples/ezstream_mp3.xml ~ | ||
cd ~ | cd ~ | ||
+ | chmod -Rf 644 ezstream_mp3.xml | ||
gedit ~/ezstream_mp3.xml | gedit ~/ezstream_mp3.xml | ||
Line 57: | Line 58: | ||
</ezstream> | </ezstream> | ||
+ | url adalah lokasi server. Disini digunakan localhost karena icecast2 berjalan di mesin yang sama. onnoradio bisa di ubah ke nama lain. Alamat lengkap http://localhost:8000/onnoradio | ||
+ | sourcepassword sesuai dengan settingan di file konfigurasi icecast2. | ||
+ | filename adalah lokasi dari playlist, bisa relatif terhadap file konfigurasi atau absolut. | ||
+ | stream_once set ke 0 untuk looping. Set ke 1 untuk di jalankan sekali. | ||
+ | svrinfopublic set ke 0 untuk menjaga agar stasiun radio kita tidak masuk ke halaman kuning icecast. | ||
+ | ==Menjalankan Ezstream== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ezstream -c ~/ezstream_mp3.xml | |
− | |||
− | ezstream -c | ||
Now, point a music client like totem, rhythmbox or audacious to http://your-server-or-ip-adres.org:8000/armin (or where ever your server is located) and start listening. | Now, point a music client like totem, rhythmbox or audacious to http://your-server-or-ip-adres.org:8000/armin (or where ever your server is located) and start listening. |
Revision as of 19:11, 17 July 2011
Ezstream adalah program Command Line untuk mengirimkan stream ke icecast.
Instalasi Ezstream
apt-get install ezstream
Membuat Playlist
Cara yang paling gampang misalnya
find /var/data/album/lagu/pop-barat/ -name *mp3 -type f > /var/data/album/playlist-onno.txt
Konfigurasi Ezstream
Ada banyak contoh konfigurasi Ezstream
ls /usr/share/doc/ezstream/examples
Disini kita menggunakan ezstream_mp3.xml
cp /usr/share/doc/ezstream/examples/ezstream_mp3.xml ~ cd ~ chmod -Rf 644 ezstream_mp3.xml gedit ~/ezstream_mp3.xml
Contoh
<ezstream> <url>http://localhost:8000/onnoradio</url> <sourcepassword>hackme</sourcepassword> <format>MP3</format> <filename>/var/data/album/playlist-onno.txt</filename> <stream_once>1</stream_once> <svrinfoname>My Stream</svrinfoname> <svrinfourl>http://www.oddsock.org</svrinfourl> <svrinfogenre>RockNRoll</svrinfogenre> <svrinfodescription>This is a stream description</svrinfodescription> <svrinfobitrate>128</svrinfobitrate> <svrinfochannels>2</svrinfochannels> <svrinfosamplerate>44100</svrinfosamplerate> <svrinfopublic>0</svrinfopublic> </ezstream>
url adalah lokasi server. Disini digunakan localhost karena icecast2 berjalan di mesin yang sama. onnoradio bisa di ubah ke nama lain. Alamat lengkap http://localhost:8000/onnoradio sourcepassword sesuai dengan settingan di file konfigurasi icecast2. filename adalah lokasi dari playlist, bisa relatif terhadap file konfigurasi atau absolut. stream_once set ke 0 untuk looping. Set ke 1 untuk di jalankan sekali. svrinfopublic set ke 0 untuk menjaga agar stasiun radio kita tidak masuk ke halaman kuning icecast.
Menjalankan Ezstream
ezstream -c ~/ezstream_mp3.xml
Now, point a music client like totem, rhythmbox or audacious to http://your-server-or-ip-adres.org:8000/armin (or where ever your server is located) and start listening.
You may want to autostart ezstream after a reboot by adding a command to /etc/rc.local.
There is more info available at
icescast2: http://www.icecast.org/ ezstream: http://www.icecast.org/ezstream.php
Tip
Tip 1: If your server is behind a router, don't forget to configure port forwarding or your router will block all requests to port 8000.
Tip 2: If for some reason you want to skip to the next song in your playlist, execute the following command and send the SIGUSR1 signal to the running ezstream process:
kill -10 `pidof ezstream`
Happy broadcasting. And keep it legal, will you?
Referensi
- http://koorenneef.nl/content/run-your-own-online-radio-station-icecast2-and-ezstream-howto
- http://www.icecast.org/ - tentang icecast2
- http://www.icecast.org/ezstream.php