libvorbisenc documentation

libvorbisenc release 1.1 - 20040709


declared in "vorbis/vorbisenc.h"

The ov_ectl_ratemanage2_arg structure is used with vorbis_encode_ctl() and the OV_ECTL_RATEMANAGE2_GET and OV_ECTL_RATEMANAGE2_SET calls in order to query and modify specifics of the encoder's bitrate management configuration.

struct ovectl_ratemanage2_arg {
  int    management_active;

  long   bitrate_limit_min_kbps;
  long   bitrate_limit_max_kbps;
  long   bitrate_limit_reservoir_bits;
  double bitrate_limit_reservoir_bias;

  long   bitrate_average_kbps;
  double bitrate_average_damping;

Relevant Struct Members

nonzero if bitrate management is active
Lower allowed bitrate limit in kilobits per second
Upper allowed bitrate limit in kilobits per second
Size of the bitrate reservoir in bits
Regulates the bitrate reservoir's preferred fill level in a range from 0.0 to 1.0; 0.0 tries to bank bits to buffer against future bitrate spikes, 1.0 buffers against future sudden drops in instantaneous bitrate. Default is 0.1
Average bitrate setting in kilobits per second
Slew rate limit setting for average bitrate adjustment; sets the minimum time in seconds the bitrate tracker may swing from one extreme to the other when boosting or damping average bitrate.

copyright © 2004 vorbis team

Ogg Vorbis

vorbisfile documentation

libvorbisenc release 1.1 - 20040709