[xiph-commits] r16535 - trunk/ezstream/examples

moritz at svn.xiph.org moritz at svn.xiph.org
Sun Aug 30 13:34:03 PDT 2009


Author: moritz
Date: 2009-08-30 13:34:03 -0700 (Sun, 30 Aug 2009)
New Revision: 16535

Added:
   trunk/ezstream/examples/ezstream-file_template.xml
Modified:
   trunk/ezstream/examples/Makefile.am
Log:
Add an example template configuration for ezstream-file.sh(1).


Modified: trunk/ezstream/examples/Makefile.am
===================================================================
--- trunk/ezstream/examples/Makefile.am	2009-08-30 19:41:59 UTC (rev 16534)
+++ trunk/ezstream/examples/Makefile.am	2009-08-30 20:34:03 UTC (rev 16535)
@@ -2,6 +2,7 @@
 
 examplesdir	 = @EXAMPLES_DIR@
 dist_examples_DATA = \
+	ezstream-file_template.xml \
 	ezstream_mp3.xml ezstream_reencode_mp3.xml \
 	ezstream_reencode_theora.xml ezstream_reencode_vorbis.xml \
 	ezstream_stdin_vorbis.xml ezstream_vorbis.xml \

Added: trunk/ezstream/examples/ezstream-file_template.xml
===================================================================
--- trunk/ezstream/examples/ezstream-file_template.xml	                        (rev 0)
+++ trunk/ezstream/examples/ezstream-file_template.xml	2009-08-30 20:34:03 UTC (rev 16535)
@@ -0,0 +1,53 @@
+<!--
+   EXAMPLE: Ogg Vorbis playlist stream with reencoding for use with
+            ezstream-file.sh(1)
+
+   This example streams a playlist generated by ezstream-file.sh(1) and
+   reencodes to Ogg Vorbis.
+ -->
+<ezstream>
+    <url>http://localhost:8000/vorbis.ogg</url>
+    <sourcepassword>hackme</sourcepassword>
+    <!--
+       Since the reencoding feature is enabled below, <format /> sets the
+       output format of the stream.
+     -->
+    <format>VORBIS</format>
+    <!--
+       To function as a template for ezstream-file.sh(1), the <filename />
+       configuration must be as follows:
+     -->
+    <filename>%FILENAME%</filename>
+    <!--
+      The usual, remaining configuration statements follow. See the other
+      examples and the documentation for details.
+     -->
+    <svrinfoname>My Stream</svrinfoname>
+    <svrinfourl>http://www.oddsock.org</svrinfourl>
+    <svrinfogenre>RockNRoll</svrinfogenre>
+    <svrinfodescription>This is a stream description</svrinfodescription>
+    <svrinfobitrate>88</svrinfobitrate>
+    <svrinfoquality>1.5</svrinfoquality>
+    <svrinfochannels>2</svrinfochannels>
+    <svrinfosamplerate>44100</svrinfosamplerate>
+    <reencode>
+        <enable>1</enable>
+        <encdec>
+            <format>FLAC</format>
+            <match>.flac</match>
+            <decode>flac -s -d --force-raw-format --sign=signed --endian=little -o - "@T@"</decode>
+        </encdec>
+        <encdec>
+            <format>MP3</format>
+            <match>.mp3</match>
+            <decode>madplay -b 16 -R 44100 -S -o raw:- "@T@"</decode>
+            <encode>lame --preset cbr 128 -r -s 44.1 --bitwidth 16 - -</encode>
+        </encdec>
+        <encdec>
+            <format>VORBIS</format>
+            <match>.ogg</match>
+            <decode>oggdec -R -b 16 -e 0 -s 1 -o - "@T@"</decode>
+            <encode>oggenc -r -B 16 -C 2 -R 44100 --raw-endianness 0 -q 1.5 -t "@M@" -</encode>
+        </encdec>
+    </reencode>
+</ezstream>


Property changes on: trunk/ezstream/examples/ezstream-file_template.xml
___________________________________________________________________
Added: svn:eol-style
   + native



More information about the commits mailing list