mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-11-03 04:17:18 -05:00
5125437d3f
scripts. git-svn-id: https://svn.xiph.org/trunk/ezstream@12710 0101bb08-14d6-0310-b084-bc0e0c8e3800
72 lines
2.9 KiB
XML
72 lines
2.9 KiB
XML
<!--
|
|
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.
|
|
-->
|
|
<ezstream>
|
|
<url>http://localhost:8000/theora.ogg</url>
|
|
<sourcepassword>hackme</sourcepassword>
|
|
<!--
|
|
Since the reencoding feature is enabled below, <format /> sets the
|
|
output format of the stream.
|
|
-->
|
|
<format>THEORA</format>
|
|
<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>
|
|
<svrinfodescription>This is a stream description</svrinfodescription>
|
|
<svrinfobitrate>200</svrinfobitrate>
|
|
<svrinfochannels>2</svrinfochannels>
|
|
<svrinfosamplerate>44100</svrinfosamplerate>
|
|
<!--
|
|
A missing or commented out <svrinfopublic /> element means no
|
|
advertising on YP for this broadcast:
|
|
-->
|
|
<!-- <svrinfopublic>1</svrinfopublic> -->
|
|
<reencode>
|
|
<!-- 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.
|
|
|
|
New encdec sections can be added for new input/output formats.
|
|
-->
|
|
<encdec>
|
|
<!--
|
|
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>
|
|
<decode>ffmpeg2theora -x 192 -y 128 -a 0 -v 4 --title "@M@" -o - "@T@"</decode>
|
|
</encdec>
|
|
<encdec>
|
|
<format>THEORA</format>
|
|
<match>.mpg</match>
|
|
<decode>ffmpeg2theora -x 192 -y 128 -a 0 -v 4 --title "@M@" -o - "@T@"</decode>
|
|
</encdec>
|
|
</reencode>
|
|
</ezstream>
|