2009-08-30 16:34:03 -04:00
|
|
|
<!--
|
|
|
|
EXAMPLE: Ogg Vorbis playlist stream with reencoding for use with
|
|
|
|
ezstream-file.sh(1)
|
|
|
|
|
|
|
|
This example streams a playlist generated by ezstream-file.sh(1) and
|
|
|
|
reencodes to Ogg Vorbis.
|
|
|
|
-->
|
|
|
|
<ezstream>
|
|
|
|
<url>http://localhost:8000/vorbis.ogg</url>
|
|
|
|
<sourcepassword>hackme</sourcepassword>
|
|
|
|
<!--
|
|
|
|
Since the reencoding feature is enabled below, <format /> sets the
|
|
|
|
output format of the stream.
|
|
|
|
-->
|
|
|
|
<format>VORBIS</format>
|
|
|
|
<!--
|
|
|
|
To function as a template for ezstream-file.sh(1), the <filename />
|
|
|
|
configuration must be as follows:
|
|
|
|
-->
|
|
|
|
<filename>%FILENAME%</filename>
|
2009-09-01 03:16:14 -04:00
|
|
|
<!--
|
|
|
|
If the generated playlist should not loop forever, set <stream_once />
|
|
|
|
to 1.
|
|
|
|
-->
|
|
|
|
<stream_once>0</stream_once>
|
2009-08-30 16:34:03 -04:00
|
|
|
<!--
|
|
|
|
The usual, remaining configuration statements follow. See the other
|
|
|
|
examples and the documentation for details.
|
|
|
|
-->
|
|
|
|
<svrinfoname>My Stream</svrinfoname>
|
|
|
|
<svrinfourl>http://www.oddsock.org</svrinfourl>
|
|
|
|
<svrinfogenre>RockNRoll</svrinfogenre>
|
|
|
|
<svrinfodescription>This is a stream description</svrinfodescription>
|
|
|
|
<svrinfobitrate>88</svrinfobitrate>
|
|
|
|
<svrinfoquality>1.5</svrinfoquality>
|
|
|
|
<svrinfochannels>2</svrinfochannels>
|
|
|
|
<svrinfosamplerate>44100</svrinfosamplerate>
|
|
|
|
<reencode>
|
|
|
|
<enable>1</enable>
|
|
|
|
<encdec>
|
|
|
|
<format>FLAC</format>
|
|
|
|
<match>.flac</match>
|
2015-01-07 16:49:09 -05:00
|
|
|
<decode>flac -s -d --force-raw-format --sign=signed --endian=little -o - @T@</decode>
|
2009-08-30 16:34:03 -04:00
|
|
|
</encdec>
|
|
|
|
<encdec>
|
|
|
|
<format>MP3</format>
|
|
|
|
<match>.mp3</match>
|
2015-01-07 16:49:09 -05:00
|
|
|
<decode>madplay -b 16 -R 44100 -S -o raw:- @T@</decode>
|
2009-08-30 16:34:03 -04:00
|
|
|
<encode>lame --preset cbr 128 -r -s 44.1 --bitwidth 16 - -</encode>
|
|
|
|
</encdec>
|
|
|
|
<encdec>
|
|
|
|
<format>VORBIS</format>
|
|
|
|
<match>.ogg</match>
|
2015-01-07 16:49:09 -05:00
|
|
|
<decode>oggdec -R -b 16 -e 0 -s 1 -o - @T@</decode>
|
|
|
|
<encode>oggenc -r -B 16 -C 2 -R 44100 --raw-endianness 0 -q 1.5 -t @M@ -</encode>
|
2009-08-30 16:34:03 -04:00
|
|
|
</encdec>
|
|
|
|
</reencode>
|
|
|
|
</ezstream>
|