BaseParse.setAverageBitrate

void setAverageBitrate(uint bitrate)

Optionally sets the average bitrate detected in media (if non-zero), e.g. based on metadata, as it will be posted to the application.

By default, announced average bitrate is estimated. The average bitrate is used to estimate the total duration of the stream and to estimate a seek position, if there's no index and the format is syncable (see gstbase.base_parse.BaseParse.setSyncable).

Parameters

bitrateaverage bitrate in bits/second