[x264-devel] commit: Add ability to adjust ratecontrol parameters on the fly ( Jason Garrett-Glaser )

git version control git at videolan.org
Mon Feb 15 10:10:43 CET 2010


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Fri Jan 29 02:40:41 2010 -0800| [f555cf3758f46f3c4f7a2f05094b16f8f3c25a27] | committer: Jason Garrett-Glaser 

Add ability to adjust ratecontrol parameters on the fly
encoder_reconfig and x264_picture_t->param can now be used to change ratecontrol parameters.
This is extraordinarily useful in certain streaming situations where the encoder needs to adapt the bitrate to network circumstances.

What can be changed:
1) CRF can be adjusted if in CRF mode.
2) VBV maxrate and bufsize can be adjusted if in VBV mode.
3) Bitrate can be adjusted if in CBR mode.
However, x264 cannot switch between modes and cannot change bitrate in ABR mode.

Also fix a bug where x264_picture_t->param reconfig method would not always be frame-exact.

Commit sponsored by SayMama video calling.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=f555cf3758f46f3c4f7a2f05094b16f8f3c25a27
---

 encoder/encoder.c     |   56 +++++++++++++++++++-
 encoder/ratecontrol.c |  137 +++++++++++++++++++++++-------------------------
 encoder/ratecontrol.h |    2 +
 x264.h                |    7 ++-
 4 files changed, 126 insertions(+), 76 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/x264.git/?a=commitdiff;h=f555cf3758f46f3c4f7a2f05094b16f8f3c25a27


More information about the x264-devel mailing list