Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link |
Registered User
Join Date: Sep 2013
Posts: 38
|
ABR Buffer Size of X264 Rate Control
In the abr mode of x264 rate control, a buffer is used. However, the buffer size is changing, which is increasing by step sqrt(fps value), such as sqrt(25), sqrt(30), sqrt(50). I do not understand the reason why the buffer size is variable, rather than a constant? Someone please give me some hints.
|
![]() |
![]() |
![]() |
#2 | Link |
x264 developer
Join Date: Sep 2005
Posts: 8,667
|
In 1-pass ABR, the goal is to hit an average bitrate for the whole video, without any constraints. The encoder does not know the length of the video, so the "buffer size" for this decision increases as it gets more and more frames. Ideally (as in 2-pass), the "buffer" would be the entire video.
As far as I can tell though, the sqrt is of the duration of the video so far, not the fps. |
![]() |
![]() |
![]() |
#4 | Link | |
Registered User
Join Date: Sep 2013
Posts: 38
|
Buffer Size Increase
Quote:
Code:
abr_buffer = 2 * rcc->rate_tolerance * rcc->bitrate |
|
![]() |
![]() |
![]() |
Tags |
rate control, x264 |
Thread Tools | Search this Thread |
Display Modes | |
|
|