View Single Post
Old 8th October 2013, 04:09   #4  |  Link
xkfz007
Registered User
 
Join Date: Sep 2013
Posts: 38
Buffer Size Increase

Quote:
Originally Posted by Dark Shikari View Post
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.
In x264 1-pass ABR, the initial value of the buffersize is:
Code:
abr_buffer = 2 * rcc->rate_tolerance * rcc->bitrate
Suppose the rcc->rate_tolerance equals 1.0. So the initial value is the twice the value of bits of first seconds. And the following size increases every second. I wander if it is reasonable to set the initial value of abr buffer as rcc->bitrate*1(the bits of first second), and increase the it by rcc->bitrate*1, which means for the first second the value is rcc->bitrate*1, second for rcc->bitrate*2, third for rcc->bitrate*3?
xkfz007 is offline   Reply With Quote