在版本https://hg.videolan.org/x265/rev/e29a82632d1e中添加了滑动窗口的概念,原理是利用当前帧之前的20帧信息平均值用于判断当前帧是否过于复杂,或者前多帧是否为静止帧。以防止当前帧编码后出现下溢。
rc: use a sliding window to calculate moving avg SatdCost for ABR Reset logic contains improvements for detection of scene changes within Rate Control to stabilize qp and prevent extreme spikes in bitrate. Removes the blockiness or distortions in the frames that a streak of low-detailed frames and prevents vbv from overreacting at the points of scene cuts.