2004-01-30 12:19:45 -05:00
|
|
|
ezstream README
|
2007-02-24 16:11:49 -05:00
|
|
|
---------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ABOUT EZSTREAM
|
|
|
|
::::::::::::::::
|
|
|
|
|
|
|
|
|
2007-03-04 16:12:34 -05:00
|
|
|
Ezstream is a command line source client for Icecast media streaming servers.
|
|
|
|
It began as the successor of the old "shout" utility, and has since gained a
|
|
|
|
lot of useful features.
|
2007-02-24 16:11:49 -05:00
|
|
|
|
|
|
|
In its basic mode of operation, it streams media files or data from standard
|
2007-07-13 06:45:55 -04:00
|
|
|
input without re-encoding and thus requires only very little CPU resources. It
|
|
|
|
can also use various external decoders and encoders to re-encode from one
|
|
|
|
format to another, and stream the result to an Icecast server. With re-
|
|
|
|
encoding enabled, ezstream is a very flexible source client.
|
2007-02-24 16:11:49 -05:00
|
|
|
|
2020-01-24 19:18:12 -05:00
|
|
|
Supported media formats for streaming are Ogg, MP3, WebM, and Matroska.
|
2007-07-13 06:45:55 -04:00
|
|
|
Ezstream natively supports metadata in MP3 (ID3v1 only) and Ogg Vorbis, or
|
|
|
|
many more formats when it is built with the TagLib option.
|
2007-02-24 16:11:49 -05:00
|
|
|
|
|
|
|
Ezstream is free software and licensed under the GNU General Public License.
|
|
|
|
See the COPYING file for details.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PREREQUISITES
|
2004-07-18 23:12:31 -04:00
|
|
|
:::::::::::::::
|
|
|
|
|
2007-02-24 16:11:49 -05:00
|
|
|
|
|
|
|
Ezstream depends on:
|
2016-09-07 09:52:14 -04:00
|
|
|
* libshout 2.x
|
2009-03-16 18:59:28 -04:00
|
|
|
(http://www.icecast.org/)
|
2009-03-17 14:07:38 -04:00
|
|
|
* libxml 2.x
|
|
|
|
(http://xmlsoft.org/)
|
2016-04-22 09:56:30 -04:00
|
|
|
* TagLib 1.x (1.4 or newer recommended, will be used via the libtag_c
|
|
|
|
wrapper)
|
|
|
|
(https://taglib.github.io/)
|
2017-07-05 11:58:33 -04:00
|
|
|
* Check Unit testing framework for C
|
|
|
|
(https://libcheck.github.io/check)
|
2007-02-24 16:11:49 -05:00
|
|
|
|
2007-03-08 15:24:09 -05:00
|
|
|
Ezstream optionally uses:
|
2009-03-16 18:59:28 -04:00
|
|
|
- For basic non-ASCII charset support in metadata and filenames:
|
|
|
|
* Libiconv, if iconv() is not available in the system libc.
|
2015-01-07 17:43:22 -05:00
|
|
|
(https://www.gnu.org/software/libiconv/)
|
2007-03-08 15:24:09 -05:00
|
|
|
|
2007-02-24 16:11:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
INSTALLATION
|
|
|
|
::::::::::::::
|
|
|
|
|
|
|
|
|
|
|
|
The ezstream software uses the GNU auto-tools to configure, build and install
|
|
|
|
on a variety of systems. Aside from the standard autoconf options of the
|
|
|
|
configure script, a couple of additional options are available:
|
|
|
|
|
2007-08-02 14:48:26 -04:00
|
|
|
--enable-examplesdir=DIR
|
|
|
|
example configuration files installation directory
|
2007-02-28 19:10:12 -05:00
|
|
|
(default: DATADIR/examples/ezstream)
|
2009-06-21 10:21:32 -04:00
|
|
|
--with-libshout=PFX prefix where the libshout header files and library
|
|
|
|
are installed (default: autodetect)
|
|
|
|
--with-libshout-includes=DIR
|
|
|
|
directory where libshout header files are installed
|
|
|
|
(optional)
|
|
|
|
--with-libshout-libs=DIR
|
|
|
|
directory where libshout is installed (optional)
|
|
|
|
--with-libxml2=PFX prefix where the libxml2 header files and library
|
|
|
|
are installed (default: autodetect)
|
|
|
|
--with-libxml2-includes=DIR
|
|
|
|
directory where libxml2 header files are installed
|
|
|
|
(optional)
|
|
|
|
--with-libxml2-libs=DIR directory where libxml2 is installed (optional)
|
|
|
|
--with-taglib=PFX prefix where the TagLib header files and library are
|
|
|
|
installed (default: autodetect)
|
|
|
|
--with-taglib-includes=DIR
|
|
|
|
directory where TagLib header files are installed
|
|
|
|
(optional)
|
|
|
|
--with-taglib-libs=DIR directory where TagLib is installed (optional)
|
2009-03-16 18:59:28 -04:00
|
|
|
--with-libvorbis=PFX prefix where the Vorbis library header files and
|
|
|
|
library are installed (default: autodetect)
|
|
|
|
--with-libvorbis-includes=DIR
|
|
|
|
directory where Vorbis library header files are
|
|
|
|
installed (optional)
|
|
|
|
--with-libvorbis-libs=DIR
|
|
|
|
directory where the Vorbis libraries are installed
|
|
|
|
(optional)
|
2009-06-21 10:21:32 -04:00
|
|
|
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
|
|
|
|
--without-libiconv-prefix don't search for libiconv in includedir and libdir
|
2007-02-24 16:11:49 -05:00
|
|
|
|
2009-03-16 18:59:28 -04:00
|
|
|
The compilation and installation process then boils down to the usual
|
2007-02-24 16:11:49 -05:00
|
|
|
|
|
|
|
$ ./configure --help | less # Skim over the available options
|
|
|
|
$ ./configure [options] && make && [sudo] make install
|
|
|
|
# Configure, build and install
|
|
|
|
# [as root] the software
|
|
|
|
|
|
|
|
If this procedure is unfamiliar to you, please consult the INSTALL file for
|
|
|
|
more detailed instructions.
|
|
|
|
|
2009-08-01 12:15:50 -04:00
|
|
|
On systems where the libshout installation does not include the required
|
|
|
|
shout.pc file for pkg-config(1), the non-standard ``shout-config'' utility
|
|
|
|
is available. However, the ezstream build system does not support the latter.
|
|
|
|
|
|
|
|
If this is an issue, configure ezstream with
|
|
|
|
|
|
|
|
$ ./configure \
|
|
|
|
LIBSHOUT_CPPFLAGS="$(shout-config --cppflags)" \
|
|
|
|
LIBSHOUT_CFLAGS="$(shout-config --cflags-only)" \
|
|
|
|
LIBSHOUT_LIBS="$(shout-config --libs)"
|
|
|
|
|
2009-03-15 20:08:31 -04:00
|
|
|
When the configuration keeps failing despite having all dependencies
|
|
|
|
installed, take note of the more verbose error messages in config.log. If
|
2009-08-01 12:15:50 -04:00
|
|
|
necessary, it is possible to further customize many build flags through
|
2009-03-15 20:08:31 -04:00
|
|
|
environment variables. See the "influential environment variables" list
|
|
|
|
in the --help output.
|
|
|
|
|
2017-07-05 11:58:33 -04:00
|
|
|
To bootstrap a fresh checkout from source control, run the `autogen.sh`
|
|
|
|
script.
|
|
|
|
|
2007-02-24 16:11:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
USAGE
|
|
|
|
:::::::
|
|
|
|
|
|
|
|
|
|
|
|
Once ezstream is successfully installed, type "man ezstream" (without quotes)
|
|
|
|
on the command line for a comprehensive manual. This distribution package also
|
2007-07-13 06:45:55 -04:00
|
|
|
comes with example configuration files that can be used as a guide to
|
|
|
|
configure ezstream.
|
2007-02-24 16:11:49 -05:00
|
|
|
|
|
|
|
Note that all by itself, ezstream is not particularly useful. It requires a
|
|
|
|
running Icecast server to stream to, which then relays the stream to many
|
|
|
|
listeners. If this comes as a surprise, browse to http://www.icecast.org/ for
|
|
|
|
a lot more information, resources, and other source clients.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EXTERNAL DECODERS/ENCODERS
|
|
|
|
::::::::::::::::::::::::::::
|
|
|
|
|
|
|
|
|
|
|
|
Ezstream should be able to work with any media decoder and encoder that
|
|
|
|
fulfills the following requirements:
|
|
|
|
|
|
|
|
1. It needs to be executable on the command line and not require a graphical
|
|
|
|
display to function.
|
|
|
|
2.1. A decoder needs to be capable of sending RAW data to standard output.
|
|
|
|
2.2. An encoder needs to be capable of reading RAW data from standard input.
|
2007-07-13 06:45:55 -04:00
|
|
|
2.3. A combined de-/encoder needs to be capable of sending media data that
|
|
|
|
can be streamed to standard output.
|
2007-02-24 16:11:49 -05:00
|
|
|
|
|
|
|
Media formats that ezstream does not support directly are passed through
|
2007-07-13 06:45:55 -04:00
|
|
|
unaltered. Whether they work or not depends on the level of support offered by
|
|
|
|
the version of libshout ezstream is linked with.
|
2007-02-24 16:11:49 -05:00
|
|
|
|
|
|
|
The following incomplete list of programs shows a few that are known to work.
|
|
|
|
These are also used in the example configuration files:
|
|
|
|
|
|
|
|
* MP3
|
|
|
|
- Decoder: madplay (http://mad.sf.net/)
|
|
|
|
- Encoder: lame (http://lame.sf.net/)
|
|
|
|
|
|
|
|
* Ogg Vorbis:
|
|
|
|
- Decoder: oggdec
|
|
|
|
- Encoder: oggenc
|
|
|
|
Both utilities are in the vorbis-tools package (http://www.vorbis.com/).
|
|
|
|
|
|
|
|
* FLAC:
|
|
|
|
- Decoder: flac (http://flac.sf.net/)
|
|
|
|
- Encoder: (None. Not supported by libshout at the time of writing, and
|
|
|
|
thus cannot be used by ezstream.)
|
|
|
|
|
|
|
|
* Ogg Theora:
|
|
|
|
- Decoder/Encoder: ffmpeg2theora (http://v2v.cc/~j/ffmpeg2theora/)
|
2017-07-07 14:38:14 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DEVELOPMENT
|
|
|
|
:::::::::::::
|
|
|
|
|
|
|
|
|
|
|
|
* GitHub mirror: https://github.com/xiph/ezstream
|
|
|
|
|
|
|
|
* Travis CI: https://travis-ci.org/xiph/ezstream
|
|
|
|
|
|
|
|
* CircleCI: https://circleci.com/gh/xiph/ezstream
|
|
|
|
|
|
|
|
* Codecov: https://codecov.io/gh/xiph/ezstream
|
|
|
|
|
|
|
|
* Codacy: https://www.codacy.com/app/mgrimm/ezstream
|
2017-09-20 06:42:57 -04:00
|
|
|
|
|
|
|
* Coverity: https://scan.coverity.com/projects/xiph-ezstream
|