1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-11-03 04:17:18 -05:00

Update new example so that it can theoretically work

This commit is contained in:
Moritz Grimm 2015-05-21 18:50:22 +02:00
parent 404b03fa60
commit fb9c44f7fa

View File

@ -1,67 +1,159 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!--
EXAMPLE: A valid configuration that contains every configuration option
-->
<!-- Ezstream configuration root element -->
<ezstream> <ezstream>
<!--
Server configuration
-->
<server> <server>
<protocol></protocol> <!-- Transport protocol: HTTP, HTTPS -->
<hostname></hostname> <protocol>HTTP</protocol>
<port></port> <!-- Server address -->
<user></user> <hostname>127.0.0.1</hostname>
<password></password> <!-- Server port -->
<ca_dir></ca_dir> <port>8000</port>
<ca_file></ca_file>
<client_cert></client_cert> <!-- Login user -->
<client_key></client_key> <user>source</user>
<reconnect_attempts></reconnect_attempts> <!-- Login password (check file permissions, or everyone can see this) -->
<password>hackme</password>
<!--
Directory to use for server certificate verification in "hash format".
See openssl(1)/verify(1) for details:
-->
<ca_dir>/etc/ssl/certs</ca_dir>
<!--
CA bundle for both server certificate verification and building the
client certificate chain.
-->
<ca_file>/etc/ssl/certs/ca-certificates.crt</ca_file>
<!-- Client certificate (with public key) for authentication -->
<client_cert>/etc/ssl/ezstream.crt</client_cert>
<!-- Client private key for authentication -->
<client_key>/etc/ssl/private/ezstream.key</client_key>
<!-- Number of reconnection attempts, before giving up: -->
<reconnect_attempts>0</reconnect_attempts>
</server> </server>
<!--
Stream configuration
-->
<stream> <stream>
<mountpoint></mountpoint> <!-- Mount point on server -->
<name></name> <mountpoint>/stream.ogg</mountpoint>
<url></url>
<genre></genre> <!-- Various informational settings -->
<description></description> <name>Test Stream</name>
<quality></quality> <url>http://localhost:8000/</url>
<bitrate></bitrate> <genre>Beeps</genre>
<samplerate></samplerate> <description>Test tones and noise</description>
<channels></channels> <quality>1.5</quality>
<server_public></server_public> <bitrate>16</bitrate>
<format></format> <samplerate>44100</samplerate>
<encoder></encoder> <channels>2</channels>
<!-- Setting to allow stream to be listed in public YP directory -->
<server_public>No</server_public>
<!-- Stream format: Vorbis, MP3, Theora -->
<format>Vorbis</format>
<!-- Encoder name (defined below) to use for (re)encoding -->
<encoder>OggEnc-Q1.5</encoder>
</stream> </stream>
<!--
Media configuration
-->
<media> <media>
<type></type> <!-- Media type: autodetect, file, playlist, program, stdin -->
<filename></filename> <type>autodetect</type>
<shuffle></shuffle>
<stream_once></stream_once> <!-- Input file or program name -->
<filename>playlist.m3u</filename>
<!-- Setting to shuffle playlists -->
<shuffle>Yes</shuffle>
<!-- Setting whether to stream input indefinitely or only once -->
<stream_once>No</stream_once>
</media> </media>
<!--
Metadata configuration
-->
<metadata> <metadata>
<program></program> <!-- Program to query for metadata instead of from media files -->
<format_str></format_str> <!-- <program>metadata.sh</program> -->
<refresh_interval></refresh_interval>
<normalize_strings></normalize_strings> <!-- Metadata format -->
<no_updates></no_updates> <format_str>@a@ - @t@</format_str>
<!-- Interval for additional metadata refreshes (-1 for none) -->
<refresh_interval>-1</refresh_interval>
<!-- Setting to clean up extraneous whitespace -->
<normalize_strings>Yes</normalize_strings>
<!-- Setting to suppress all metadata udpates -->
<no_updates>No</no_updates>
</metadata> </metadata>
<!--
Decoder configurations
-->
<decoders> <decoders>
<decoder> <decoder>
<name></name> <!-- Decoder name -->
<program></program> <name>OggDec</name>
<file_ext></file_ext> <!-- Program and options -->
<!-- ... --> <program>oggdec -R -b 16 -e 0 -s 1 -o - @T@</program>
<!-- File extensions to use this decoder for -->
<file_ext>.ogg</file_ext>
<file_ext>.oga</file_ext>
</decoder>
<decoder>
<name>MadPlay</name>
<program>madplay -b 16 -R 44100 -S -o raw:- @T@</program>
<file_ext>.mp3</file_ext>
</decoder>
<decoder>
<name>Flac</name>
<program>flac -s -d --force-raw-format --sign=signed --endian=little -o - @T@</program>
<file_ext>.flac</file_ext>
</decoder> </decoder>
<!-- ... -->
</decoders> </decoders>
<!--
Encoder configurations
-->
<encoders> <encoders>
<encoder> <encoder>
<name></name> <!-- Encoder name -->
<format></format> <name>OggEnc-Q1.5</name>
<program></program> <!-- Output stream format -->
<format>Vorbis</format>
<!-- Program and options -->
<program>oggenc -r -B 16 -C 2 -R 44100 --raw-endianness 0 -q 1.5 -t @M@ -</program>
</encoder>
<encoder>
<name>Lame-CBR128</name>
<format>MP3</format>
<program>lame --preset cbr 128 -r -s 44.1 --bitwidth 16 - -</program>
</encoder> </encoder>
<!-- ... -->
</encoders> </encoders>
</ezstream> </ezstream>