2004-07-18 23:12:31 -04:00
|
|
|
<ezstream>
|
2005-01-04 19:38:09 -05:00
|
|
|
<url>http://localhost:8000/vorbis.ogg</url>
|
2004-07-18 23:12:31 -04:00
|
|
|
<sourcepassword>hackme</sourcepassword>
|
|
|
|
<!-- This is what form your output will take. If you are
|
|
|
|
reencoding, this is the format to reencode to, if not
|
|
|
|
then you need to make sure all your input files are in this
|
2005-01-04 19:38:09 -05:00
|
|
|
format. -->
|
2004-07-18 23:12:31 -04:00
|
|
|
<format>VORBIS</format>
|
|
|
|
<filename>tracks.m3u</filename>
|
|
|
|
<!-- The following settings are used to describe your stream
|
|
|
|
to the server. It's up to you to make sure the
|
|
|
|
bitrate/quality/samplerate/channels
|
|
|
|
match up to your output stream -->
|
|
|
|
<svrinfoname>My Stream</svrinfoname>
|
|
|
|
<svrinfourl>http://www.oddsock.org</svrinfourl>
|
|
|
|
<svrinfogenre>RockNRoll</svrinfogenre>
|
|
|
|
<svrinfodescription>This is a stream description</svrinfodescription>
|
|
|
|
<svrinfobitrate>128</svrinfobitrate>
|
|
|
|
<!-- Quality is only applicable to ogg vorbis streams -->
|
|
|
|
<!-- <svrinfoquality>1.0</svrinfoquality> -->
|
|
|
|
<svrinfochannels>2</svrinfochannels>
|
|
|
|
<svrinfosamplerate>44100</svrinfosamplerate>
|
|
|
|
<svrinfopublic>1</svrinfopublic>
|
|
|
|
<reencode>
|
|
|
|
<enable>1</enable>
|
|
|
|
<!-- Each encdec block specifies a pair of programs used for decoding and
|
|
|
|
encoding of the stream. If reencoding is enabled, then all input files
|
|
|
|
must be first decoded before being sent to the encoder. EZSTREAM uses
|
|
|
|
file extensions to match up input files with the appropraite decoder,
|
|
|
|
and uses the <format> setting to match up the output format with the
|
|
|
|
appropriate encoder.
|
|
|
|
|
|
|
|
Note: It it up to you to set the appropriate bitrate/samplerate/channels
|
|
|
|
of the output stream by using command line paramters to the encoders. Use
|
|
|
|
the examples defined here as a guide. All output from decoders should be in
|
|
|
|
RAW format, and all input to the encoders should also be in RAW format. -->
|
2005-01-04 19:38:09 -05:00
|
|
|
<encdec>
|
|
|
|
<!-- Support for THEORA (ffmpeg2theora does both decoding and encoding
|
|
|
|
so we don't need an encode part) -->
|
|
|
|
<format>THEORA</format>
|
|
|
|
<match>.avi</match>
|
|
|
|
<decode>ffmpeg2theora -x 192 -y 128 -a -1 -v 0 "@T@" -o -</decode>
|
|
|
|
</encdec>
|
|
|
|
<encdec>
|
|
|
|
<!-- Support for THEORA (ffmpeg2theora does both decoding and encoding
|
|
|
|
so we don't need an encode part) -->
|
|
|
|
<format>THEORA</format>
|
|
|
|
<match>.mpg</match>
|
|
|
|
<decode>ffmpeg2theora -a -1 -v 2 "@T@" -o -</decode>
|
|
|
|
</encdec>
|
2004-07-18 23:12:31 -04:00
|
|
|
<encdec>
|
|
|
|
<!-- Support for FLAC decoding (input files) -->
|
|
|
|
<format>FLAC</format>
|
|
|
|
<match>.flac</match>
|
2005-01-04 19:38:09 -05:00
|
|
|
<decode>flac -s -d --force-raw-format --sign=signed --endian=little "@T@" -o -</decode>
|
2004-07-18 23:12:31 -04:00
|
|
|
<encode>Not supported Yet</encode>
|
|
|
|
</encdec>
|
|
|
|
<encdec>
|
|
|
|
<!-- Support for MP3 decoding via madplay, and encoding via LAME -->
|
|
|
|
<format>MP3</format>
|
|
|
|
<match>.mp3</match>
|
2005-01-04 19:38:09 -05:00
|
|
|
<decode>madplay -o raw:- "@T@"</decode>
|
|
|
|
<encode>lame -r -x -b 56 -s 44.1 --resample 22.05 -a - -</encode>
|
2004-07-18 23:12:31 -04:00
|
|
|
</encdec>
|
|
|
|
<encdec>
|
|
|
|
<!-- Support for Vorbis decoding via oggdec, and encoding via oggenc -->
|
|
|
|
<format>VORBIS</format>
|
|
|
|
<match>.ogg</match>
|
2005-01-04 19:38:09 -05:00
|
|
|
<decode>oggdec --raw=1 "@T@" -o -</decode>
|
2004-07-18 23:12:31 -04:00
|
|
|
<encode>oggenc -Q -r -q 0 --resample=44100 --downmix -t "@M@" -c STREAMER=ezstream -</encode>
|
|
|
|
</encdec>
|
|
|
|
<!-- New encdec sections can be added for new input/output formats -->
|
|
|
|
</reencode>
|
|
|
|
</ezstream>
|