mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-12-04 14:46:31 -05:00
e48b3b61aa
fixed reencoding bug on win32 bump to version 0.2.0 git-svn-id: https://svn.xiph.org/trunk/ezstream@8612 0101bb08-14d6-0310-b084-bc0e0c8e3800
75 lines
3.4 KiB
XML
75 lines
3.4 KiB
XML
<ezstream>
|
|
<url>http://localhost:8000/vorbis.ogg</url>
|
|
<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
|
|
format. -->
|
|
<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. -->
|
|
<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>
|
|
<encdec>
|
|
<!-- Support for FLAC decoding (input files) -->
|
|
<format>FLAC</format>
|
|
<match>.flac</match>
|
|
<decode>flac -s -d --force-raw-format --sign=signed --endian=little "@T@" -o -</decode>
|
|
<encode>Not supported Yet</encode>
|
|
</encdec>
|
|
<encdec>
|
|
<!-- 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 --raw=1 "@T@" -o -</decode>
|
|
<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>
|