[vorbis-dev] constant low-bitrate for streaming test

Michael Smith msmith at labyrinth.net.au
Thu Mar 15 00:59:44 PST 2001



At 09:09 AM 3/15/01 +0100, you wrote:
>On Thu, 15 Mar 2001 11:07:21 +1100, Michael Smith wrote:
>
>>Low bitrate low-quality modes are supported. Just feed it appropriate input
>>(e.g. 22.1kHz mono - that should be around 30-40 kbps, at a guess, if you
>>also select a low-bitrate mode using -b).
>
>I cannot pipe a raw pcm with 22.1khz mono into oggenc, this is also a
>problem with some tools. (I do encoding of line-in signals).

You can if you put a wav header on it (the wav header need not have correct 
data-length/etc. in it, which is good since you obviously couldn't give them
in your case). You can even fake it and just add a 44-byte 'header' which 
simply specifies it as a given samplerate/number of channels, all the rest can
be constant bytes. Or just modify oggenc to have different defaults for raw
mode (this is simple, you just need to modify two numbers (audio.c:raw_open() - 
change the sample rate and number of channels here).

Or pipe your raw pcm through sox before it gets to oggenc, to get it to put 
the header on there automatically.

Michael

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list