2007-02-24 16:12:54 -05:00
|
|
|
<!--
|
2007-02-28 16:26:16 -05:00
|
|
|
EXAMPLE: MP3 stream using an external playlist program, WITH reencoding
|
2007-02-24 16:12:54 -05:00
|
|
|
|
|
|
|
This example streams a playlist that may contain MP3, Ogg Vorbis and FLAC
|
|
|
|
files. Ezstream will use external decoders to read the media files, and
|
|
|
|
reencode them to MP3 using the lame MP3 encoder. The output stream settings
|
|
|
|
are controlled via the paramters to lame.
|
|
|
|
-->
|
2004-07-18 23:12:31 -04:00
|
|
|
<ezstream>
|
2005-01-04 19:38:09 -05:00
|
|
|
<url>http://localhost:8000/stream</url>
|
2004-07-18 23:12:31 -04:00
|
|
|
<sourcepassword>hackme</sourcepassword>
|
2007-02-24 16:12:54 -05:00
|
|
|
<!--
|
|
|
|
Since the reencoding feature is enabled below, <format /> sets the
|
|
|
|
output format of the stream.
|
|
|
|
-->
|
2005-01-04 19:38:09 -05:00
|
|
|
<format>MP3</format>
|
2007-02-28 16:26:16 -05:00
|
|
|
<filename>playlist.pl</filename>
|
2007-02-24 16:12:54 -05:00
|
|
|
<!--
|
2007-02-28 16:26:16 -05:00
|
|
|
Indicate that <filename> contains an executable program or script,
|
|
|
|
which prints a single line with a filename to standard output:
|
2007-02-24 16:12:54 -05:00
|
|
|
-->
|
2007-02-28 16:26:16 -05:00
|
|
|
<playlist_program>1</playlist_program>
|
2007-02-24 16:12:54 -05:00
|
|
|
<!--
|
|
|
|
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 lame encoder settings below.
|
|
|
|
-->
|
|
|
|
<svrinfoname>My Stream</svrinfoname>
|
|
|
|
<svrinfourl>http://www.oddsock.org</svrinfourl>
|
2004-07-18 23:12:31 -04:00
|
|
|
<svrinfogenre>RockNRoll</svrinfogenre>
|
|
|
|
<svrinfodescription>This is a stream description</svrinfodescription>
|
2007-02-24 16:12:54 -05:00
|
|
|
<svrinfobitrate>56</svrinfobitrate>
|
|
|
|
<svrinfochannels>1</svrinfochannels>
|
|
|
|
<svrinfosamplerate>220500</svrinfosamplerate>
|
|
|
|
<!--
|
|
|
|
Prohibit the server to advertise the stream on a public YP directory:
|
|
|
|
-->
|
|
|
|
<svrinfopublic>0</svrinfopublic>
|
2004-07-18 23:12:31 -04:00
|
|
|
<reencode>
|
2007-02-24 16:12:54 -05:00
|
|
|
<!-- Enable the reencoding feature: -->
|
|
|
|
<enable>1</enable>
|
|
|
|
<!--
|
|
|
|
Each <encdec /> element specifies a pair of programs to be used for
|
|
|
|
decoding and encoding, respectively, and which file extension and
|
|
|
|
output stream format they apply to.
|
|
|
|
|
|
|
|
All the configuration of the output stream is usually done by using
|
|
|
|
the appropriate command line parameters of the encoders in the
|
|
|
|
<encode /> elements.
|
|
|
|
|
|
|
|
New encdec sections can be added for new input/output formats.
|
|
|
|
-->
|
2005-01-04 19:38:09 -05:00
|
|
|
<encdec>
|
2007-02-24 16:12:54 -05:00
|
|
|
<!-- Support for FLAC decoding: -->
|
|
|
|
<format>FLAC</format>
|
|
|
|
<match>.flac</match>
|
|
|
|
<decode>flac -s -d --force-raw-format --sign=signed --endian=little -o - "@T@"</decode>
|
|
|
|
<!-- <encode>Not supported Yet</encode> -->
|
2005-01-04 19:38:09 -05:00
|
|
|
</encdec>
|
|
|
|
<encdec>
|
2007-02-24 16:12:54 -05:00
|
|
|
<!--
|
|
|
|
Support for MP3 decoding via madplay, and encoding via LAME:
|
|
|
|
-->
|
|
|
|
<format>MP3</format>
|
|
|
|
<match>.mp3</match>
|
|
|
|
<decode>madplay -o raw:- "@T@"</decode>
|
|
|
|
<encode>lame -r -x -b 56 -s 44.1 --resample 22.05 -a - -</encode>
|
|
|
|
</encdec>
|
|
|
|
<encdec>
|
|
|
|
<!--
|
|
|
|
Support for Vorbis decoding via oggdec, and encoding via oggenc:
|
|
|
|
-->
|
|
|
|
<format>VORBIS</format>
|
|
|
|
<match>.ogg</match>
|
|
|
|
<decode>oggdec -R -o - "@T@"</decode>
|
|
|
|
<encode>oggenc -r -q 1.5 --resample=44100 -t "@M@" -</encode>
|
2005-01-04 19:38:09 -05:00
|
|
|
</encdec>
|
2004-07-18 23:12:31 -04:00
|
|
|
</reencode>
|
|
|
|
</ezstream>
|