MultiCam Boards Documentation > MultiCam Documentation > MultiCam DirectShow Reference > Reference Guide > Interfaces > IESFCompression > IESFCompression::SetAverageBitrate

IESFCompression::SetAverageBitrate

HRESULT SetAverageBitrate(
  long lValue
);

lValue

[in] Target bit rate value.

Sets the target bit rate of the compressed media stream when constant bit rate (CBR) is enabled.

The bit rate setting is available only if the following conditions are met:

Be aware that, when the output format is set to AUTO, the media type is decided only when the filter is connected. The media type can be selected through the output format setting.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code

Description

S_OK

No error.

VFW_E_FILTER_ACTIVE

Video quality cannot be changed while the filter is running.

E_FAIL

Video quality setting is not applicable. See notes above.

E_INVALIDARG

The argument is out of range.

Requirements

Header

ESFilter.h

Library

ESFilter.dll

MultiCam

5.0 or later

See also

Compression

Bit Rate Control

DX50 with PICOLO Diligent

MP4S with PICOLO Diligent

IESFCompression::GetAverageBitrate

IESFCompression::GetAverageBitrateRange

IESFCompression::GetBitrateControl

IESFCompression::SetBitrateControl