Difference between revisions of "Icecast: feeding menggunakan ezstream"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (New page: Always wanted to be a dj at your own online radio station? Well, spend 15 minutes of your time and start broadcasting. It's really that easy. I will show you how to build an online stream...) |
Onnowpurbo (talk | contribs) |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | Ezstream adalah program Command Line untuk mengirimkan stream ke icecast. | |
| − | + | ==Instalasi Ezstream== | |
| − | |||
| − | + | sudo su | |
| + | apt-get install gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-bad \ | ||
| + | gstreamer0.10-plugins-ugly ezstream | ||
| − | + | di Ubuntu 20.04 | |
| − | |||
| − | + | sudo apt-get install -y ezstream | |
| − | + | ==Membuat Playlist== | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | Cara yang paling gampang misalnya | |
| − | + | find /var/data/album/lagu/pop-barat/ *mp3 -type f > /var/data/album/playlist-onno.txt | |
| − | + | find /home/onno/Music/ *mp3 -type f > /home/onno/Music/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> | ||
| + | <!-- | ||
| + | If a different user name than "source" should be used, set it in | ||
| + | <sourceuser/>: | ||
| + | --> | ||
| + | <!-- <sourceuser>mr_stream</sourceuser> --> | ||
| + | <sourcepassword>hackme</sourcepassword> | ||
| + | <format>MP3</format> | ||
| + | <filename>/home/onno/Music/playlist-onno.txt</filename> | ||
| + | <!-- Once done streaming playlist.m3u, exit: --> | ||
| + | <stream_once>1</stream_once> | ||
| + | <!-- | ||
| + | The following settings are used to describe your stream to the server. | ||
| + | It's up to you to make sure that the bitrate/samplerate/channels | ||
| + | information matches up with your input stream files. Note that | ||
| + | <svrinfoquality /> only applies to Ogg Vorbis streams. | ||
| + | --> | ||
| + | <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> | ||
| + | <!-- | ||
| + | Prohibit the server to advertise the stream on a public YP directory: | ||
| + | --> | ||
| + | <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== | |
| − | + | Jalankan streaming menggunakan | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | ezstream -c ~/ezstream_mp3.xml | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | Arahkan client musik seperti totem / rhythmbox / audacious / bhanshee ke http://your-server-or-ip-adres.org:8000/onnoradio (atau ke alamat server anda) dan start mendengarkan. | |
| − | + | Jika mesin server di booting dan kita ingin agar tetap jalan maka masukan ke | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| + | /etc/rc.local | ||
| Line 96: | Line 86: | ||
* http://koorenneef.nl/content/run-your-own-online-radio-station-icecast2-and-ezstream-howto | * 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 | ||
==Pranala Menarik== | ==Pranala Menarik== | ||
* [[IceCast]] | * [[IceCast]] | ||
| + | * [[icecast]] | ||
| + | * [[icecast: instalasi]] | ||
| + | * [[icecast: konfigurasi dasar]] | ||
| + | * [[icecast: feeding menggunakan ezstream]] | ||
| + | * [[IceCast: Live Stream]] | ||
| + | * [[icecast: Live stream menggunakan internet DJ console]] | ||
| + | * [[Multimedia di Linux]] | ||
Latest revision as of 08:56, 5 June 2021
Ezstream adalah program Command Line untuk mengirimkan stream ke icecast.
Instalasi Ezstream
sudo su apt-get install gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-bad \ gstreamer0.10-plugins-ugly ezstream
di Ubuntu 20.04
sudo apt-get install -y ezstream
Membuat Playlist
Cara yang paling gampang misalnya
find /var/data/album/lagu/pop-barat/ *mp3 -type f > /var/data/album/playlist-onno.txt find /home/onno/Music/ *mp3 -type f > /home/onno/Music/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>/home/onno/Music/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
Jalankan streaming menggunakan
ezstream -c ~/ezstream_mp3.xml
Arahkan client musik seperti totem / rhythmbox / audacious / bhanshee ke http://your-server-or-ip-adres.org:8000/onnoradio (atau ke alamat server anda) dan start mendengarkan.
Jika mesin server di booting dan kita ingin agar tetap jalan maka masukan ke
/etc/rc.local
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