[vorbis-dev] new vorbisenc behaviour

Monty xiphmont at xiph.org
Wed Jan 2 00:48:21 PST 2002



On Tue, Jan 01, 2002 at 03:46:52PM +0000, David Burnett wrote:
> Just got around to compiling RC3 under beos and came across an
> anomaly when using managed bitrates.
> 
> I haven't changed the code for the beos encoder but I now get double
> the bitrates so 
> 
> vorbis_encode_init(&vi,mediaFormat.u.raw_audio.channel_count,(long)mediaFormat.u.raw_audio.frame_rate , -1, 128000, -1);
> 
> now gives me vorbis files that average around 325 - 350.

There was an API change; for bitrate managed modes to work (any mode
beign set up with vorbis_encode_init is now managed),
vorbis_bitrate_addblock and vorbis_bitrate_flushpacket must be used as
illustrated in encoder example.

Modes set up with vorbis_encode_init_vbr do not require the API
change, but using it for those modes as well will also work.

Sorry for the surprise, I should have announced this on the
development list.

Monty

--- >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