[icecast] vorbis_encode_init() bitrate arguments - offtopic

Michael Smith msmith at labyrinth.net.au
Wed Feb 20 09:14:49 UTC 2002



At 09:49 AM 2/20/02 +0100, you wrote:
>Hi,
>
>It's a bit offtopic for this list, but you might be able to help. For 
>libvorbis rc3, what is the correct bitrate parametrization for the call 
>vorbis_encode_init()?
>
>For rc2, it worked calling it the following way:
>
>vorbis_encode_init( &vorbisInfo,
>                     2,                     // two channels
>                     44100,                 // 44.1kHz
>                     -1,
>                     96000,                 // 96kb/s
>                     -1 );
>
>And this produced an Ogg Vorbis stream of about 80 kbps on average.
>
>But in rc3, the above call produces a circa 240 kbps Ogg Vorbis stream 
>(as reported by xmms). I tried putting 96000 in place of the -1 values, 
>and also putting 96 instread of 96000, but no luck.
>
>Any hints would be greatly apprieciated.

See the examples. If you initialise a managed mode (which this is), you
MUST use vorbis_bitrate_addblock() and vorbis_bitrate_flushpacket(). 

You SHOULD also give an option to set min/max, since they're now used,
and to use a VBR mode rather than the managed modes here.

Michael

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-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 Icecast mailing list