1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-12-04 14:46:31 -05:00

Improve the reencoding examples; more usable defaults and add more options

to create a more well-defined stream of raw samples.


git-svn-id: https://svn.xiph.org/trunk/ezstream@14093 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
moritz 2007-11-04 13:09:08 +00:00
parent deee4fa80f
commit 0b31a1b57f
3 changed files with 37 additions and 14 deletions

View File

@ -29,9 +29,9 @@
<svrinfourl>http://www.oddsock.org</svrinfourl> <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>56</svrinfobitrate> <svrinfobitrate>128</svrinfobitrate>
<svrinfochannels>1</svrinfochannels> <svrinfochannels>2</svrinfochannels>
<svrinfosamplerate>220500</svrinfosamplerate> <svrinfosamplerate>44100</svrinfosamplerate>
<!-- <!--
Prohibit the server to advertise the stream on a public YP directory: Prohibit the server to advertise the stream on a public YP directory:
--> -->
@ -48,7 +48,14 @@
the appropriate command line parameters of the encoders in the the appropriate command line parameters of the encoders in the
<encode /> elements. <encode /> elements.
New encdec sections can be added for new input/output formats. 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.
--> -->
<encdec> <encdec>
<!-- Support for FLAC decoding: --> <!-- Support for FLAC decoding: -->
@ -63,8 +70,9 @@
--> -->
<format>MP3</format> <format>MP3</format>
<match>.mp3</match> <match>.mp3</match>
<decode>madplay -o raw:- "@T@"</decode> <!-- Note: madplay uses host byte order for raw samples. -->
<encode>lame -r -x -b 56 -s 44.1 --resample 22.05 -a - -</encode> <decode>madplay -b 16 -R 44100 -S -o raw:- "@T@"</decode>
<encode>lame --preset cbr 128 -r -x -s 44.1 --bitwidth 16 - -</encode>
</encdec> </encdec>
<encdec> <encdec>
<!-- <!--
@ -72,8 +80,8 @@
--> -->
<format>VORBIS</format> <format>VORBIS</format>
<match>.ogg</match> <match>.ogg</match>
<decode>oggdec -R -o - "@T@"</decode> <decode>oggdec -R -b 16 -e 0 -s 1 -o - "@T@"</decode>
<encode>oggenc -r -q 1.5 --resample=44100 -t "@M@" -</encode> <encode>oggenc -r -B 16 -C 2 -R 44100 --raw-endianness 0 -q 1.5 -t "@M@" -</encode>
</encdec> </encdec>
</reencode> </reencode>
</ezstream> </ezstream>

View File

@ -49,7 +49,14 @@
the appropriate command line parameters of the encoders in the the appropriate command line parameters of the encoders in the
<encode /> elements. <encode /> elements.
New encdec sections can be added for new input/output formats. 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.
--> -->
<encdec> <encdec>
<!-- <!--

View File

@ -49,7 +49,14 @@
the appropriate command line parameters of the encoders in the the appropriate command line parameters of the encoders in the
<encode /> elements. <encode /> elements.
New encdec sections can be added for new input/output formats. 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.
--> -->
<encdec> <encdec>
<!-- Support for FLAC decoding: --> <!-- Support for FLAC decoding: -->
@ -64,8 +71,9 @@
--> -->
<format>MP3</format> <format>MP3</format>
<match>.mp3</match> <match>.mp3</match>
<decode>madplay -o raw:- "@T@"</decode> <!-- Note: madplay uses host byte order for raw samples. -->
<encode>lame -r -x -b 56 -s 44.1 --resample 22.05 -a - -</encode> <decode>madplay -b 16 -R 44100 -S -o raw:- "@T@"</decode>
<encode>lame --preset cbr 128 -r -x -s 44.1 --bitwidth 16 - -</encode>
</encdec> </encdec>
<encdec> <encdec>
<!-- <!--
@ -73,8 +81,8 @@
--> -->
<format>VORBIS</format> <format>VORBIS</format>
<match>.ogg</match> <match>.ogg</match>
<decode>oggdec -R -o - "@T@"</decode> <decode>oggdec -R -b 16 -e 0 -s 1 -o - "@T@"</decode>
<encode>oggenc -r -q 1.5 --resample=44100 -t "@M@" -</encode> <encode>oggenc -r -B 16 -C 2 -R 44100 --raw-endianness 0 -q 1.5 -t "@M@" -</encode>
</encdec> </encdec>
</reencode> </reencode>
</ezstream> </ezstream>