2007-02-24 16:12:54 -05:00
|
|
|
<!--
|
|
|
|
EXAMPLE: Ogg Theora playlist stream WITH reencoding and sequential playback
|
|
|
|
|
|
|
|
This example streams a playlist that may contain .avi and MPEG files.
|
|
|
|
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.
|
|
|
|
-->
|
2004-07-18 23:12:31 -04:00
|
|
|
<ezstream>
|
2005-01-04 19:38:09 -05:00
|
|
|
<url>http://localhost:8000/theora.ogg</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>THEORA</format>
|
2007-02-24 16:12:54 -05:00
|
|
|
<filename>playlist.m3u</filename>
|
|
|
|
<!--
|
|
|
|
Playlist shuffling is disabled, when the <shuffle /> element does not
|
|
|
|
exist or is commented out:
|
|
|
|
-->
|
|
|
|
<!-- <shuffle>1</shuffle> -->
|
|
|
|
<!--
|
|
|
|
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>
|
2004-07-18 23:12:31 -04:00
|
|
|
<svrinfodescription>This is a stream description</svrinfodescription>
|
2007-02-24 16:12:54 -05:00
|
|
|
<svrinfobitrate>200</svrinfobitrate>
|
2004-07-18 23:12:31 -04:00
|
|
|
<svrinfochannels>2</svrinfochannels>
|
|
|
|
<svrinfosamplerate>44100</svrinfosamplerate>
|
2007-02-24 16:12:54 -05:00
|
|
|
<!--
|
|
|
|
A missing or commented out <svrinfopublic /> element means no
|
|
|
|
advertising on YP for this broadcast:
|
|
|
|
-->
|
|
|
|
<!-- <svrinfopublic>1</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.
|
|
|
|
|
2007-11-04 08:09:08 -05:00
|
|
|
New <encdec /> sections can be added for new input/output formats.
|
|
|
|
|
|
|
|
Distorted audio, or audio playing at the wrong speed/pitch may be
|
|
|
|
caused by conflicting sample rates in the various <decode /> and
|
|
|
|
<encode /> sections, byte order (endianness) issues and mono input
|
|
|
|
files. See the documentation on the various de-/encoders for
|
|
|
|
the options that need to be used to create a consistent stream of
|
|
|
|
raw samples.
|
2007-02-24 16:12:54 -05:00
|
|
|
-->
|
2005-01-04 19:38:09 -05:00
|
|
|
<encdec>
|
2007-02-24 16:12:54 -05:00
|
|
|
<!--
|
|
|
|
Support for THEORA. Ogg Theora streams are created differently
|
|
|
|
with ffmpeg2theora, which does the complete reencoding on its
|
|
|
|
own. Therefore, we only supply a <decode /> element and let
|
|
|
|
ezstream pass through the resulting stream unaltered to Icecast.
|
|
|
|
-->
|
|
|
|
<format>THEORA</format>
|
|
|
|
<match>.avi</match>
|
2015-01-07 16:49:09 -05:00
|
|
|
<decode>ffmpeg2theora -x 192 -y 128 -a 0 -v 4 --title @M@ -o - @T@</decode>
|
2005-01-04 19:38:09 -05:00
|
|
|
</encdec>
|
|
|
|
<encdec>
|
2007-02-24 16:12:54 -05:00
|
|
|
<format>THEORA</format>
|
|
|
|
<match>.mpg</match>
|
2015-01-07 16:49:09 -05:00
|
|
|
<decode>ffmpeg2theora -x 192 -y 128 -a 0 -v 4 --title @M@ -o - @T@</decode>
|
2005-01-04 19:38:09 -05:00
|
|
|
</encdec>
|
2004-07-18 23:12:31 -04:00
|
|
|
</reencode>
|
|
|
|
</ezstream>
|