From 0b31a1b57f9d5f4859698757ae999d810d3762fc Mon Sep 17 00:00:00 2001 From: moritz Date: Sun, 4 Nov 2007 13:09:08 +0000 Subject: [PATCH] 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 --- examples/ezstream_reencoding_example_mp3.xml | 24 ++++++++++++------- .../ezstream_reencoding_example_theora.xml | 9 ++++++- .../ezstream_reencoding_example_vorbis.xml | 18 ++++++++++---- 3 files changed, 37 insertions(+), 14 deletions(-) diff --git a/examples/ezstream_reencoding_example_mp3.xml b/examples/ezstream_reencoding_example_mp3.xml index 8a1c9d9..75f0eb7 100644 --- a/examples/ezstream_reencoding_example_mp3.xml +++ b/examples/ezstream_reencoding_example_mp3.xml @@ -29,9 +29,9 @@ http://www.oddsock.org RockNRoll This is a stream description - 56 - 1 - 220500 + 128 + 2 + 44100 @@ -48,7 +48,14 @@ the appropriate command line parameters of the encoders in the elements. - New encdec sections can be added for new input/output formats. + New 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 and + 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. --> @@ -63,8 +70,9 @@ --> MP3 .mp3 - madplay -o raw:- "@T@" - lame -r -x -b 56 -s 44.1 --resample 22.05 -a - - + + madplay -b 16 -R 44100 -S -o raw:- "@T@" + lame --preset cbr 128 -r -x -s 44.1 --bitwidth 16 - - VORBIS .ogg - oggdec -R -o - "@T@" - oggenc -r -q 1.5 --resample=44100 -t "@M@" - + oggdec -R -b 16 -e 0 -s 1 -o - "@T@" + oggenc -r -B 16 -C 2 -R 44100 --raw-endianness 0 -q 1.5 -t "@M@" - diff --git a/examples/ezstream_reencoding_example_theora.xml b/examples/ezstream_reencoding_example_theora.xml index d0b1bc3..d089316 100644 --- a/examples/ezstream_reencoding_example_theora.xml +++ b/examples/ezstream_reencoding_example_theora.xml @@ -49,7 +49,14 @@ the appropriate command line parameters of the encoders in the elements. - New encdec sections can be added for new input/output formats. + New 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 and + 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. --> @@ -64,8 +71,9 @@ --> MP3 .mp3 - madplay -o raw:- "@T@" - lame -r -x -b 56 -s 44.1 --resample 22.05 -a - - + + madplay -b 16 -R 44100 -S -o raw:- "@T@" + lame --preset cbr 128 -r -x -s 44.1 --bitwidth 16 - - VORBIS .ogg - oggdec -R -o - "@T@" - oggenc -r -q 1.5 --resample=44100 -t "@M@" - + oggdec -R -b 16 -e 0 -s 1 -o - "@T@" + oggenc -r -B 16 -C 2 -R 44100 --raw-endianness 0 -q 1.5 -t "@M@" -