[vorbis] vbr / cbr / abr API calls
Akos Maroy
darkeye at tyrell.hu
Sat Aug 3 04:16:35 PDT 2002
Hi,
Maybe this is documented somewhere, if so, please send me a link to the
documentation.
My question is: how to set up different (VBR, CBR, ABR) modes when
calling the Ogg Vorbis API?
Currently I do:
CBR:
ret = vorbis_encode_setup_managed( &vorbisInfo,
getInChannel(),
getOutSampleRate(),
-1,
getOutBitrate() * 1000,
-1)
|| vorbis_encode_ctl( &vorbisInfo, OV_ECTL_RATEMANAGE_AVG, NULL)
|| vorbis_encode_setup_init( &vorbisInfo);
<p>ABR:
ret = vorbis_encode_init( &vorbisInfo,
getInChannel(),
getOutSampleRate(),
-1,
getOutBitrate() * 1000,
-1 );
VBR:
ret = vorbis_encode_init_vbr( &vorbisInfo,
getInChannel(),
getOutSampleRate(),
getOutQuality() );
<p>Are these calls correct?
What effect do the max_bitrate, min_bitrate parameters have in the CBR
and ABR modes?
When measuring performance, it seems that the ABR mode takes a lot more
(about twice) processing power than VBR of even CBR. why is that?
Thanks,
<p>Akos
<p><p>--- >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-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
mailing list