]> git.videolan.org Git - x264.git/commit
Add support for single-frame VBV, improve compliance
authorJason Garrett-Glaser <darkshikari@gmail.com>
Fri, 25 Sep 2009 23:23:52 +0000 (16:23 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 7 Oct 2009 00:23:53 +0000 (17:23 -0700)
commitdb518eae22e57b37c806625685faba2f2a857f88
tree5c15a020c19c11cadd891cb4c2fe76c5a8df15b4
parent496d79dfcb90066f0254e07d593471f2c885a153
Add support for single-frame VBV, improve compliance
This allows both constant-framesize and capped-framesize encoding.
Literal constant framesize isn't actually supported yet due to the lack of
filler support.
Example with 30fps video: --vbv-bufsize 200 --vbv-maxrate 6000 will ensure that
no frame is ever larger than 200 kilobits.

One example use-case of this is for zero-delay streaming where bandwidth costs
need to be minimized.  If every frame is smaller than 200 kilobits and the
client has a 6 megabit connection, every single frame can be instantly sent
to the client and handled without any decoder-side buffer.

Fix a mistake in VBV calculation--this may have caused the VBV to be slightly
non-compliant in some situations without x264 realizing it.
Add primitive prediction handling for rows with quantizers lower than their
reference.  This slightly improves VBV in CBR mode.
Various other minor improvements to VBV, mostly to make single-frame VBV work.

Commit sponsored by a media streaming company that wishes to remain anonymous.
encoder/ratecontrol.c
encoder/slicetype.c