Impact Factors
The main factors influencing the rs/es rate relationship are as follows:
This algorithm will not be affected by these factors, realize the adaptive control of the code rate.
ES encoder
For ES encoders: When the encoder starts, the RS layer gives a suggested value for the ES bitrate based on the input RS bitrate setting value, and then the encoder updates the ES bitrate at a certain frequency (each time the RS-encoded interface is called/per frame/GOP, based on the test results and actual needs).
RS Encoder
For RS Encoder: The problem is to adopt a strategy to update the relationship between rs/es bitrate, adaptive algorithm to take the actual data of the statistical values to update.
programme I
For a period of time after the encoder is started, the following method is taken to calculate the relationship between the Rs/es code rate:
Wherein, the RS length of the first packet group is expressed, indicating the RS length of the group I
After a certain period of time to take the following ways to update the relationship between Rs/es code rate:
Among them, the larger the update factor, the greater the impact of recent statistical values. Values and n values need to be determined by testing and actual needs.
Scenario Two
Updated directly with the nearest N statistics:
something
This algorithm is directly denied, because ES bitrate is best determined from the beginning, if the subsequent adjustment, it may cause the ES encoder error.
RS Bitrate Control adaptive algorithm