| 1 | # About |
| 2 | |
| 3 | Ezstream is a command line source client for media streams, primarily for |
| 4 | streaming to Icecast servers. |
| 5 | |
| 6 | It allows the creation of media streams based on input from files or standard |
| 7 | input that is piped through an optional external de- and encoder. As every |
| 8 | part of this chain is highly configurable, ezstream can be useful in a large |
| 9 | number of streaming setups. |
| 10 | |
| 11 | It uses libshout to communicate with streaming servers and currently supports |
| 12 | Ogg, MP3, WebM, and Matroska streams using the HTTP, ICY, and RoarAudio |
| 13 | protocols. It uses TagLib to read and manage metadata in numerous media |
| 14 | files. |
| 15 | |
| 16 | Ezstream is free software and licensed under the GNU General Public License. |
| 17 | See the `COPYING` file for details. |
| 18 | |
| 19 | |
| 20 | # Dependencies |
| 21 | |
| 22 | Ezstream depends on: |
| 23 | |
| 24 | - [libshout](https://www.icecast.org/download/) version 2.2.x or newer |
| 25 | - [libxml](http://xmlsoft.org/) version 2.x |
| 26 | - [TagLib](https://taglib.github.io/) for C version 1.x (1.4 or newer |
| 27 | recommended) |
| 28 | |
| 29 | Ezstream optionally uses: |
| 30 | |
| 31 | - [libiconv](https://www.gnu.org/software/libiconv/) on systems where |
| 32 | `iconv()` is not available in libc, for basic non-ASCII charset support in |
| 33 | metadata and filenames |
| 34 | |
| 35 | Building ezstream depends on: |
| 36 | |
| 37 | - [check](https://libcheck.github.io/check) unit testing framework for C |
| 38 | |
| 39 | # Installation |
| 40 | |
| 41 | The ezstream software uses the GNU auto-tools to configure, build, and |
| 42 | install on a variety of systems. Several (additional) configuration options |
| 43 | are available. |
| 44 | |
| 45 | Run `./configure --help` to get an overview. |
| 46 | |
| 47 | The compilation and installation process then boils down to the usual |
| 48 | |
| 49 | ```console |
| 50 | $ ./configure --help | less # Skim over the available options |
| 51 | $ ./configure [options] && make && [sudo] make install |
| 52 | # Configure, build and install |
| 53 | # [as root] the software |
| 54 | ``` |
| 55 | |
| 56 | If this procedure is unfamiliar to you, please consult the `INSTALL` file for |
| 57 | more detailed instructions. |
| 58 | |
| 59 | On systems where the libshout installation does not include the required |
| 60 | shout.pc file for `pkg-config(1)`, the non-standard `shout-config` utility |
| 61 | is available. However, the ezstream build system does not support the latter. |
| 62 | |
| 63 | If this is an issue, configure ezstream with |
| 64 | |
| 65 | ```console |
| 66 | $ ./configure \ |
| 67 | LIBSHOUT_CPPFLAGS="$(shout-config --cppflags)" \ |
| 68 | LIBSHOUT_CFLAGS="$(shout-config --cflags-only)" \ |
| 69 | LIBSHOUT_LIBS="$(shout-config --libs)" |
| 70 | ``` |
| 71 | |
| 72 | If needed, verbose configuration error messages can be found in the |
| 73 | `config.log` file. |
| 74 | |
| 75 | When working on a fresh checkout from source control, the `autogen.sh` script |
| 76 | must be run first. It requires automake, autoconf, libtool, and gettext. |
| 77 | |
| 78 | |
| 79 | # Usage |
| 80 | |
| 81 | Once ezstream is installed successfully, type `man ezstream` on the command |
| 82 | line for a comprehensive manual. This distribution package also comes with |
| 83 | example configuration files that can be used as a guide to configure |
| 84 | ezstream. |
| 85 | |
| 86 | As ezstream is a source client, a media streaming server like Icecast |
| 87 | must be available to distribute the stream to listening clients. See |
| 88 | (https://www.icecast.org/) for more information and resources. |
| 89 | |
| 90 | |
| 91 | # External Decoders/Encoders |
| 92 | |
| 93 | Ezstream should be able to work with any media decoder and encoder that |
| 94 | fulfills the following requirements: |
| 95 | |
| 96 | 1. Must be an executable that can be run from the command line without the |
| 97 | need for a graphical display or terminal |
| 98 | 2. Decoding software must be able to either |
| 99 | 1. write raw audio data to standard output, or |
| 100 | 2. write a properly encoded stream ready for distribution to standard |
| 101 | output |
| 102 | 3. Encoding software must be able to read raw audio data from standard input |
| 103 | |
| 104 | The following incomplete list of programs shows a few that are known to work. |
| 105 | These are also used in the example configuration files: |
| 106 | |
| 107 | - MP3 |
| 108 | - Decoder: madplay (https://www.underbit.com/products/mad/) |
| 109 | - Encoder: lame (https://lame.sourceforge.io/) |
| 110 | |
| 111 | - Ogg Vorbis (https://xiph.org/vorbis/): |
| 112 | - Decoder: oggdec |
| 113 | - Encoder: oggenc |
| 114 | |
| 115 | - FLAC (https://xiph.org/flac/): |
| 116 | - Decoder: flac |
| 117 | - Encoder: flac (requires Ogg FLAC output) |
| 118 | |
| 119 | - Ogg Theora: |
| 120 | - Decoder/Encoder: ffmpeg2theora (http://v2v.cc/~j/ffmpeg2theora/) |
| 121 | |
| 122 | |
| 123 | # Development |
| 124 | |
| 125 | - Xiph.org Gitlab: https://gitlab.xiph.org/xiph/ezstream/ |
| 126 | - GitHub mirror: https://github.com/xiph/ezstream/ |
| 127 | - Travis CI: https://travis-ci.org/xiph/ezstream/ |
| 128 | - CircleCI: https://circleci.com/gh/xiph/ezstream/ |
| 129 | - Codecov: https://codecov.io/gh/xiph/ezstream/ |
| 130 | - Coverity: https://scan.coverity.com/projects/xiph-ezstream/ |