Wednesday, 1 January 2014

Ezstream - page ten

Ezstream

Ezstream is another command line source client for the Icecast streaming server.

In its basic mode of operation, ezstream will stream media files without reencoding, thus requiring very few CPU resources. However, it can use various external decoders and encoders to reencode from one format to another, and stream the result to an Icecast server. Supported media formats for streaming are MP3, Ogg Vorbis and Ogg Theora. All of its features, as well as the availability of a windows version, make ezstream a very flexible source client.

install ezstream
apt-get install ezstream

As with ices2, we need to make a few configuration directories;
mkdir /var/log/ezstream
mkdir /etc/ezstream
mkdir /etc/ezstream/music

Ezstream comes with a number of configuration file examples. They can be found at /usr/share/doc/ezstream/examples.

The example configuration files are;

ezstream-file_template.xml  ezstream_reencode_mp3.xml     ezstream_stdin_vorbis.xml  play.sh
ezstream_metadata.xml       ezstream_reencode_theora.xml  ezstream_vorbis.xml        playlist-logger.sh
ezstream_mp3.xml            ezstream_reencode_vorbis.xml  meta.sh


Again, as with ices2 we will use a copy of of one of the example files; ezstream_vorbis.xml. Make a copy of the file;
cp /usr/share/doc/ezstream/examples/ezstream_vorbis.xml /etc/ezstream

And then as with the ices2 config file set ezstreams ezstream_vorbis.xml config file to reflect your stream.

The whole ezxztream_vorbis.xml file set to reflect my stream with comments indented and items you should change in bold.

<!--
    EXAMPLE: Ogg Vorbis playlist stream WITHOUT reencoding

This example streams a playlist that contains only Ogg Vorbis files. No
    other file formats may be listed. Since ezstream will not be doing any
    reencoding, the resulting stream format (quality/bitrate, samplerate,
    channels) will be of the respective input files.
  -->
<ezstream>
    <url>http://localhost:8000/rocknroll.ogg</url>
    <!--      If a different user name than "source" should be used, set it in      <sourceuser/>:     -->
    <!-- <sourceuser>mr_stream</sourceuser> -->
    <sourcepassword>rstacey</sourcepassword>
    <format>VORBIS</format>
    <filename>/home/music/ogg/ogg-playlist.txt</filename>
    <!-- For demonstrational purposes, explicitly set continuous streaming: -->
    <stream_once>0</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/quality/samplerate/channels
      information matches up with your input stream files.
      -->
    <svrinfoname>My Rock and Roll Stream</svrinfoname>
    <svrinfourl>http://192.168.1.21</svrinfourl>
    <svrinfogenre>RockNRoll</svrinfogenre>
    <svrinfodescription>My Rock and  Roll stream, with a bit of country</svrinfodescription>
    <svrinfobitrate>96</svrinfobitrate>
    <svrinfoquality>2.0</svrinfoquality>
    <svrinfochannels>2</svrinfochannels>
    <svrinfosamplerate>44100</svrinfosamplerate>
    <!-- Allow the server to advertise the stream on a public YP directory: -->
    <svrinfopublic>1</svrinfopublic>
</ezstream>

No comments:

Post a Comment