mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-09-22 04:15:55 -04:00
Clean up and install example configuration files.
git-svn-id: https://svn.xiph.org/trunk/ezstream@12531 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
parent
4b5c770f29
commit
e89737c651
@ -2,4 +2,9 @@
|
|||||||
|
|
||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
EXTRA_DIST = ezstream_mp3.xml ezstream_reencoding_example_mp3.xml ezstream_reencoding_example_theora.xml ezstream_reencoding_example_vorbis.xml ezstream_vorbis.xml
|
CLEANFILES = core *.core *~ .*~
|
||||||
|
|
||||||
|
examplesdir = @EXAMPLES_DIR@
|
||||||
|
dist_examples_DATA = ezstream_mp3.xml ezstream_reencoding_example_mp3.xml \
|
||||||
|
ezstream_reencoding_example_theora.xml \
|
||||||
|
ezstream_reencoding_example_vorbis.xml ezstream_vorbis.xml
|
||||||
|
@ -1,24 +1,31 @@
|
|||||||
<!-- This example is for a input playlist that must contain
|
<!--
|
||||||
all MP3 files. ezstream will perform NO reencoding, and
|
EXAMPLE: MP3 playlist stream WITHOUT reencoding
|
||||||
the destination stream bitrate, channels, etc. will be those
|
|
||||||
of the input files -->
|
This example streams a playlist that contains only MP3 files. No other file
|
||||||
|
formats may be listed. Since ezstream will not be doing any reencoding, the
|
||||||
|
resulting stream format (bitrate, samplerate, channels) will be of the
|
||||||
|
respective input files.
|
||||||
|
-->
|
||||||
<ezstream>
|
<ezstream>
|
||||||
<url>http://localhost:8000/stream</url>
|
<url>http://localhost:8000/stream</url>
|
||||||
<sourcepassword>hackme</sourcepassword>
|
<sourcepassword>hackme</sourcepassword>
|
||||||
<format>MP3</format>
|
<format>MP3</format>
|
||||||
<filename>playlist.m3u</filename>
|
<filename>playlist.m3u</filename>
|
||||||
<!-- The following settings are used to describe your stream
|
<!--
|
||||||
to the server. It's up to you to make sure the
|
The following settings are used to describe your stream to the server.
|
||||||
bitrate/quality/samplerate/channels
|
It's up to you to make sure that the bitrate/samplerate/channels
|
||||||
match up to your input stream -->
|
information matches up with your input stream files. Note that
|
||||||
<svrinfoname>My Stream</svrinfoname>
|
<svrinfoquality /> only applies to Ogg Vorbis streams.
|
||||||
<svrinfourl>http://www.oddsock.org</svrinfourl>
|
-->
|
||||||
|
<svrinfoname>My Stream</svrinfoname>
|
||||||
|
<svrinfourl>http://www.oddsock.org</svrinfourl>
|
||||||
<svrinfogenre>RockNRoll</svrinfogenre>
|
<svrinfogenre>RockNRoll</svrinfogenre>
|
||||||
<svrinfodescription>This is a stream description</svrinfodescription>
|
<svrinfodescription>This is a stream description</svrinfodescription>
|
||||||
<svrinfobitrate>128</svrinfobitrate>
|
<svrinfobitrate>128</svrinfobitrate>
|
||||||
<!-- Quality is only applicable to ogg vorbis streams -->
|
|
||||||
<!-- <svrinfoquality>1.0</svrinfoquality> -->
|
|
||||||
<svrinfochannels>2</svrinfochannels>
|
<svrinfochannels>2</svrinfochannels>
|
||||||
<svrinfosamplerate>44100</svrinfosamplerate>
|
<svrinfosamplerate>44100</svrinfosamplerate>
|
||||||
<svrinfopublic>1</svrinfopublic>
|
<!--
|
||||||
|
Prohibit the server to advertise the stream on a public YP directory:
|
||||||
|
-->
|
||||||
|
<svrinfopublic>0</svrinfopublic>
|
||||||
</ezstream>
|
</ezstream>
|
||||||
|
@ -1,79 +1,79 @@
|
|||||||
<!-- This example is for a input playlist that can contain
|
<!--
|
||||||
FLAC, MP3, and OggVorbis files and a output stream that
|
EXAMPLE: MP3 playlist stream WITH reencoding and sequential playback
|
||||||
is MP3. The output stream settings (bitrate, channels, etc.)
|
|
||||||
are controlled by the parameters to lame. (see the encode setting
|
This example streams a playlist that may contain MP3, Ogg Vorbis and FLAC
|
||||||
for the MP3 format later in this file). -->
|
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.
|
||||||
|
-->
|
||||||
<ezstream>
|
<ezstream>
|
||||||
<url>http://localhost:8000/stream</url>
|
<url>http://localhost:8000/stream</url>
|
||||||
<sourcepassword>hackme</sourcepassword>
|
<sourcepassword>hackme</sourcepassword>
|
||||||
<!-- This is what form your output will take. If you are
|
<!--
|
||||||
reencoding, this is the format to reencode to, if not
|
Since the reencoding feature is enabled below, <format /> sets the
|
||||||
then you need to make sure all your input files are in this
|
output format of the stream.
|
||||||
format. -->
|
-->
|
||||||
<format>MP3</format>
|
<format>MP3</format>
|
||||||
<filename>tracks.m3u</filename>
|
<filename>playlist.m3u</filename>
|
||||||
<!-- The following settings are used to describe your stream
|
<!--
|
||||||
to the server. It's up to you to make sure the
|
Explicitly disable playlist shuffling. Sequential playback is also the
|
||||||
bitrate/quality/samplerate/channels
|
default.
|
||||||
match up to your output stream -->
|
-->
|
||||||
<svrinfoname>My Stream</svrinfoname>
|
<shuffle>0</shuffle>
|
||||||
<svrinfourl>http://www.oddsock.org</svrinfourl>
|
<!--
|
||||||
|
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>
|
||||||
<svrinfogenre>RockNRoll</svrinfogenre>
|
<svrinfogenre>RockNRoll</svrinfogenre>
|
||||||
<svrinfodescription>This is a stream description</svrinfodescription>
|
<svrinfodescription>This is a stream description</svrinfodescription>
|
||||||
<svrinfobitrate>128</svrinfobitrate>
|
<svrinfobitrate>56</svrinfobitrate>
|
||||||
<!-- Quality is only applicable to ogg vorbis streams -->
|
<svrinfochannels>1</svrinfochannels>
|
||||||
<!-- <svrinfoquality>1.0</svrinfoquality> -->
|
<svrinfosamplerate>220500</svrinfosamplerate>
|
||||||
<svrinfochannels>2</svrinfochannels>
|
<!--
|
||||||
<svrinfosamplerate>44100</svrinfosamplerate>
|
Prohibit the server to advertise the stream on a public YP directory:
|
||||||
<svrinfopublic>1</svrinfopublic>
|
-->
|
||||||
|
<svrinfopublic>0</svrinfopublic>
|
||||||
<reencode>
|
<reencode>
|
||||||
<enable>1</enable>
|
<!-- Enable the reencoding feature: -->
|
||||||
<!-- Each encdec block specifies a pair of programs used for decoding and
|
<enable>1</enable>
|
||||||
encoding of the stream. If reencoding is enabled, then all input files
|
<!--
|
||||||
must be first decoded before being sent to the encoder. EZSTREAM uses
|
Each <encdec /> element specifies a pair of programs to be used for
|
||||||
file extensions to match up input files with the appropraite decoder,
|
decoding and encoding, respectively, and which file extension and
|
||||||
and uses the <format> setting to match up the output format with the
|
output stream format they apply to.
|
||||||
appropriate encoder.
|
|
||||||
|
All the configuration of the output stream is usually done by using
|
||||||
Note: It it up to you to set the appropriate bitrate/samplerate/channels
|
the appropriate command line parameters of the encoders in the
|
||||||
of the output stream by using command line paramters to the encoders. Use
|
<encode /> elements.
|
||||||
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. -->
|
New encdec sections can be added for new input/output formats.
|
||||||
|
-->
|
||||||
<encdec>
|
<encdec>
|
||||||
<!-- Support for THEORA (ffmpeg2theora does both decoding and encoding
|
<!-- Support for FLAC decoding: -->
|
||||||
so we don't need an encode part) -->
|
<format>FLAC</format>
|
||||||
<format>THEORA</format>
|
<match>.flac</match>
|
||||||
<match>.avi</match>
|
<decode>flac -s -d --force-raw-format --sign=signed --endian=little -o - "@T@"</decode>
|
||||||
<decode>ffmpeg2theora -x 192 -y 128 -a -1 -v 0 "@T@" -o -</decode>
|
<!-- <encode>Not supported Yet</encode> -->
|
||||||
</encdec>
|
</encdec>
|
||||||
<encdec>
|
<encdec>
|
||||||
<!-- Support for THEORA (ffmpeg2theora does both decoding and encoding
|
<!--
|
||||||
so we don't need an encode part) -->
|
Support for MP3 decoding via madplay, and encoding via LAME:
|
||||||
<format>THEORA</format>
|
-->
|
||||||
<match>.mpg</match>
|
<format>MP3</format>
|
||||||
<decode>ffmpeg2theora -a -1 -v 2 "@T@" -o -</decode>
|
<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>
|
||||||
</encdec>
|
</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>
|
</reencode>
|
||||||
</ezstream>
|
</ezstream>
|
||||||
|
@ -1,58 +1,71 @@
|
|||||||
<!-- This example is for a input playlist that can contain
|
<!--
|
||||||
avi and mpg (video) files files and a output stream that
|
EXAMPLE: Ogg Theora playlist stream WITH reencoding and sequential playback
|
||||||
is OggTheora. The output stream settings (bitrate, channels, etc.)
|
|
||||||
are controlled by the parameters to ffmpeg2theora. (see the decode setting
|
This example streams a playlist that may contain .avi and MPEG files.
|
||||||
for the THEORA format later in this file). -->
|
Ezstream will use the ffmpeg2theora program to both decode and reencode the
|
||||||
|
video files to Ogg Theora. The output stream settings are controlled via the
|
||||||
|
paramters to ffmpeg2theora.
|
||||||
|
-->
|
||||||
<ezstream>
|
<ezstream>
|
||||||
<url>http://localhost:8000/theora.ogg</url>
|
<url>http://localhost:8000/theora.ogg</url>
|
||||||
<sourcepassword>hackme</sourcepassword>
|
<sourcepassword>hackme</sourcepassword>
|
||||||
<!-- This is what form your output will take. If you are
|
<!--
|
||||||
reencoding, this is the format to reencode to, if not
|
Since the reencoding feature is enabled below, <format /> sets the
|
||||||
then you need to make sure all your input files are in this
|
output format of the stream.
|
||||||
format. -->
|
-->
|
||||||
<format>THEORA</format>
|
<format>THEORA</format>
|
||||||
<filename>tracks.m3u</filename>
|
<filename>playlist.m3u</filename>
|
||||||
<!-- The following settings are used to describe your stream
|
<!--
|
||||||
to the server. It's up to you to make sure the
|
Playlist shuffling is disabled, when the <shuffle /> element does not
|
||||||
bitrate/quality/samplerate/channels
|
exist or is commented out:
|
||||||
match up to your output stream -->
|
-->
|
||||||
<svrinfoname>My Stream</svrinfoname>
|
<!-- <shuffle>1</shuffle> -->
|
||||||
<svrinfourl>http://www.oddsock.org</svrinfourl>
|
<!--
|
||||||
<svrinfogenre>RockNRoll</svrinfogenre>
|
The following settings are used to describe your stream to the server.
|
||||||
|
It's up to you to make sure that the bitrate/quality/samplerate/channels
|
||||||
|
information matches up with your oggenc encoder settings below.
|
||||||
|
-->
|
||||||
|
<svrinfoname>My Stream</svrinfoname>
|
||||||
|
<svrinfourl>http://www.oddsock.org</svrinfourl>
|
||||||
|
<svrinfogenre>Documentary</svrinfogenre>
|
||||||
<svrinfodescription>This is a stream description</svrinfodescription>
|
<svrinfodescription>This is a stream description</svrinfodescription>
|
||||||
<svrinfobitrate>128</svrinfobitrate>
|
<svrinfobitrate>200</svrinfobitrate>
|
||||||
<!-- Quality is only applicable to ogg vorbis streams -->
|
|
||||||
<!-- <svrinfoquality>1.0</svrinfoquality> -->
|
|
||||||
<svrinfochannels>2</svrinfochannels>
|
<svrinfochannels>2</svrinfochannels>
|
||||||
<svrinfosamplerate>44100</svrinfosamplerate>
|
<svrinfosamplerate>44100</svrinfosamplerate>
|
||||||
<svrinfopublic>1</svrinfopublic>
|
<!--
|
||||||
|
A missing or commented out <svrinfopublic /> element means no
|
||||||
|
advertising on YP for this broadcast:
|
||||||
|
-->
|
||||||
|
<!-- <svrinfopublic>1</svrinfopublic> -->
|
||||||
<reencode>
|
<reencode>
|
||||||
<enable>1</enable>
|
<!-- Enable the reencoding feature: -->
|
||||||
<!-- Each encdec block specifies a pair of programs used for decoding and
|
<enable>1</enable>
|
||||||
encoding of the stream. If reencoding is enabled, then all input files
|
<!--
|
||||||
must be first decoded before being sent to the encoder. EZSTREAM uses
|
Each <encdec /> element specifies a pair of programs to be used for
|
||||||
file extensions to match up input files with the appropraite decoder,
|
decoding and encoding, respectively, and which file extension and
|
||||||
and uses the <format> setting to match up the output format with the
|
output stream format they apply to.
|
||||||
appropriate encoder.
|
|
||||||
|
All the configuration of the output stream is usually done by using
|
||||||
Note: It it up to you to set the appropriate bitrate/samplerate/channels
|
the appropriate command line parameters of the encoders in the
|
||||||
of the output stream by using command line paramters to the encoders. Use
|
<encode /> elements.
|
||||||
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. -->
|
New encdec sections can be added for new input/output formats.
|
||||||
|
-->
|
||||||
<encdec>
|
<encdec>
|
||||||
<!-- Support for THEORA (ffmpeg2theora does both decoding and encoding
|
<!--
|
||||||
so we don't need an encode part) -->
|
Support for THEORA. Ogg Theora streams are created differently
|
||||||
<format>THEORA</format>
|
with ffmpeg2theora, which does the complete reencoding on its
|
||||||
<match>.avi</match>
|
own. Therefore, we only supply a <decode /> element and let
|
||||||
<decode>ffmpeg2theora -x 192 -y 128 -a -1 -v 0 "@T@" -o -</decode>
|
ezstream pass through the resulting stream unaltered to Icecast.
|
||||||
|
-->
|
||||||
|
<format>THEORA</format>
|
||||||
|
<match>.avi</match>
|
||||||
|
<decode>ffmpeg2theora -x 192 -y 128 -a 0 -v 4 --title "@M@" -o - "@T@"</decode>
|
||||||
</encdec>
|
</encdec>
|
||||||
<encdec>
|
<encdec>
|
||||||
<!-- Support for THEORA (ffmpeg2theora does both decoding and encoding
|
<format>THEORA</format>
|
||||||
so we don't need an encode part) -->
|
<match>.mpg</match>
|
||||||
<format>THEORA</format>
|
<decode>ffmpeg2theora -x 192 -y 128 -a 0 -v 4 --title "@M@" -o - "@T@"</decode>
|
||||||
<match>.mpg</match>
|
|
||||||
<decode>ffmpeg2theora -a -1 -v 2 "@T@" -o -</decode>
|
|
||||||
</encdec>
|
</encdec>
|
||||||
<!-- New encdec sections can be added for new input/output formats -->
|
|
||||||
</reencode>
|
</reencode>
|
||||||
</ezstream>
|
</ezstream>
|
||||||
|
@ -1,74 +1,75 @@
|
|||||||
|
<!--
|
||||||
|
EXAMPLE: Ogg Vorbis playlist stream WITH reencoding and random playback
|
||||||
|
|
||||||
|
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 Ogg Vorbis using the oggenc encoder. The output stream
|
||||||
|
settings are controlled via the paramters to oggenc.
|
||||||
|
-->
|
||||||
<ezstream>
|
<ezstream>
|
||||||
<url>http://localhost:8000/vorbis.ogg</url>
|
<url>http://localhost:8000/vorbis.ogg</url>
|
||||||
<sourcepassword>hackme</sourcepassword>
|
<sourcepassword>hackme</sourcepassword>
|
||||||
<!-- This is what form your output will take. If you are
|
<!--
|
||||||
reencoding, this is the format to reencode to, if not
|
Since the reencoding feature is enabled below, <format /> sets the
|
||||||
then you need to make sure all your input files are in this
|
output format of the stream.
|
||||||
format. -->
|
-->
|
||||||
<format>VORBIS</format>
|
<format>VORBIS</format>
|
||||||
<filename>tracks.m3u</filename>
|
<filename>playlist.m3u</filename>
|
||||||
<!-- The following settings are used to describe your stream
|
<!-- Enable playlist shuffling: -->
|
||||||
to the server. It's up to you to make sure the
|
<shuffle>1</shuffle>
|
||||||
bitrate/quality/samplerate/channels
|
<!--
|
||||||
match up to your output stream -->
|
The following settings are used to describe your stream to the server.
|
||||||
<svrinfoname>My Stream</svrinfoname>
|
It's up to you to make sure that the bitrate/quality/samplerate/channels
|
||||||
<svrinfourl>http://www.oddsock.org</svrinfourl>
|
information matches up with your oggenc encoder settings below.
|
||||||
|
-->
|
||||||
|
<svrinfoname>My Stream</svrinfoname>
|
||||||
|
<svrinfourl>http://www.oddsock.org</svrinfourl>
|
||||||
<svrinfogenre>RockNRoll</svrinfogenre>
|
<svrinfogenre>RockNRoll</svrinfogenre>
|
||||||
<svrinfodescription>This is a stream description</svrinfodescription>
|
<svrinfodescription>This is a stream description</svrinfodescription>
|
||||||
<svrinfobitrate>128</svrinfobitrate>
|
<svrinfobitrate>88</svrinfobitrate>
|
||||||
<!-- Quality is only applicable to ogg vorbis streams -->
|
<svrinfoquality>1.5</svrinfoquality>
|
||||||
<!-- <svrinfoquality>1.0</svrinfoquality> -->
|
|
||||||
<svrinfochannels>2</svrinfochannels>
|
<svrinfochannels>2</svrinfochannels>
|
||||||
<svrinfosamplerate>44100</svrinfosamplerate>
|
<svrinfosamplerate>44100</svrinfosamplerate>
|
||||||
<svrinfopublic>1</svrinfopublic>
|
<!-- Allow the server to advertise the stream on a public YP directory: -->
|
||||||
|
<svrinfopublic>1</svrinfopublic>
|
||||||
<reencode>
|
<reencode>
|
||||||
<enable>1</enable>
|
<!-- Enable the reencoding feature: -->
|
||||||
<!-- Each encdec block specifies a pair of programs used for decoding and
|
<enable>1</enable>
|
||||||
encoding of the stream. If reencoding is enabled, then all input files
|
<!--
|
||||||
must be first decoded before being sent to the encoder. EZSTREAM uses
|
Each <encdec /> element specifies a pair of programs to be used for
|
||||||
file extensions to match up input files with the appropraite decoder,
|
decoding and encoding, respectively, and which file extension and
|
||||||
and uses the <format> setting to match up the output format with the
|
output stream format they apply to.
|
||||||
appropriate encoder.
|
|
||||||
|
All the configuration of the output stream is usually done by using
|
||||||
Note: It it up to you to set the appropriate bitrate/samplerate/channels
|
the appropriate command line parameters of the encoders in the
|
||||||
of the output stream by using command line paramters to the encoders. Use
|
<encode /> elements.
|
||||||
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. -->
|
New encdec sections can be added for new input/output formats.
|
||||||
|
-->
|
||||||
<encdec>
|
<encdec>
|
||||||
<!-- Support for THEORA (ffmpeg2theora does both decoding and encoding
|
<!-- Support for FLAC decoding: -->
|
||||||
so we don't need an encode part) -->
|
<format>FLAC</format>
|
||||||
<format>THEORA</format>
|
<match>.flac</match>
|
||||||
<match>.avi</match>
|
<decode>flac -s -d --force-raw-format --sign=signed --endian=little -o - "@T@"</decode>
|
||||||
<decode>ffmpeg2theora -x 192 -y 128 -a -1 -v 0 "@T@" -o -</decode>
|
<!-- <encode>Not supported Yet</encode> -->
|
||||||
</encdec>
|
</encdec>
|
||||||
<encdec>
|
<encdec>
|
||||||
<!-- Support for THEORA (ffmpeg2theora does both decoding and encoding
|
<!--
|
||||||
so we don't need an encode part) -->
|
Support for MP3 decoding via madplay, and encoding via LAME:
|
||||||
<format>THEORA</format>
|
-->
|
||||||
<match>.mpg</match>
|
<format>MP3</format>
|
||||||
<decode>ffmpeg2theora -a -1 -v 2 "@T@" -o -</decode>
|
<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>
|
||||||
</encdec>
|
</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>
|
</reencode>
|
||||||
</ezstream>
|
</ezstream>
|
||||||
|
@ -1,19 +1,29 @@
|
|||||||
<!-- This example is for a input playlist that must contain
|
<!--
|
||||||
all OggVorbis files. ezstream will perform NO reencoding, and
|
EXAMPLE: Ogg Vorbis playlist stream WITHOUT reencoding
|
||||||
the destination stream bitrate, channels, etc. will be those
|
|
||||||
of the input files -->
|
This example streams a playlist that contains only Ogg Vorbis files. No
|
||||||
|
other file formats may be listed. Since ezstream will not be doing any
|
||||||
|
reencoding, the resulting stream format (quality/bitrate, samplerate,
|
||||||
|
channels) will be of the respective input files.
|
||||||
|
-->
|
||||||
<ezstream>
|
<ezstream>
|
||||||
<url>http://localhost:8000/vorbis.ogg</url>
|
<url>http://localhost:8000/vorbis.ogg</url>
|
||||||
<sourcepassword>hackme</sourcepassword>
|
<sourcepassword>hackme</sourcepassword>
|
||||||
<format>VORBIS</format>
|
<format>VORBIS</format>
|
||||||
<filename>playlist.m3u</filename>
|
<filename>playlist.m3u</filename>
|
||||||
<svrinfoname>My Stream</svrinfoname>
|
<!--
|
||||||
<svrinfourl>http://www.oddsock.org</svrinfourl>
|
The following settings are used to describe your stream to the server.
|
||||||
|
It's up to you to make sure that the bitrate/quality/samplerate/channels
|
||||||
|
information matches up with your input stream files.
|
||||||
|
-->
|
||||||
|
<svrinfoname>My Stream</svrinfoname>
|
||||||
|
<svrinfourl>http://www.oddsock.org</svrinfourl>
|
||||||
<svrinfogenre>RockNRoll</svrinfogenre>
|
<svrinfogenre>RockNRoll</svrinfogenre>
|
||||||
<svrinfodescription>This is a stream description</svrinfodescription>
|
<svrinfodescription>This is a stream description</svrinfodescription>
|
||||||
<svrinfobitrate>192</svrinfobitrate>
|
<svrinfobitrate>96</svrinfobitrate>
|
||||||
<svrinfoquality>4.0</svrinfoquality>
|
<svrinfoquality>2.0</svrinfoquality>
|
||||||
<svrinfochannels>2</svrinfochannels>
|
<svrinfochannels>2</svrinfochannels>
|
||||||
<svrinfosamplerate>44100</svrinfosamplerate>
|
<svrinfosamplerate>44100</svrinfosamplerate>
|
||||||
<svrinfopublic>1</svrinfopublic>
|
<!-- Allow the server to advertise the stream on a public YP directory: -->
|
||||||
|
<svrinfopublic>1</svrinfopublic>
|
||||||
</ezstream>
|
</ezstream>
|
||||||
|
Loading…
Reference in New Issue
Block a user