[x264-devel] commit: VFR/framerate-aware ratecontrol, part 2 (Jason Garrett-Glaser )
git at videolan.org
git at videolan.org
Mon Jan 10 22:01:04 CET 2011
x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Thu Dec 23 19:33:01 2010 -0500| [22bfd310abced4df0b11c9620b152e5cfe746d43] | committer: Jason Garrett-Glaser
VFR/framerate-aware ratecontrol, part 2
MB-tree and qcomp complexity estimation now consider the duration of a frame in their calculations.
This is very important for visual optimizations, as frames that last longer are inherently more important quality-wise.
Improves VFR-aware PSNR as much as 1-2db on extreme test cases, ~0.5db on more ordinary VFR clips (e.g. deduped anime episodes).
WARNING: This change redefines x264's internal quality measurement.
x264 will now scale its quality based on the framerate of the video due to the aforementioned frame duration logic.
That is, --crf X will give lower quality per frame for a 60fps video than for a 30fps one.
This will make --crf closer to constant perceptual quality than previously.
The "center" for this change is 25fps: that is, videos lower than 25fps will go up in quality at the same CRF and videos above will go down.
This choice is completely arbitrary.
Note that to take full advantage of this, x264 must encode your video at the correct framerate, with the correct timestamps.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=22bfd310abced4df0b11c9620b152e5cfe746d43
---
common/mc.c | 25 +++++-------------
common/mc.h | 2 +-
common/x86/const-a.asm | 1 -
common/x86/mc-a2.asm | 64 ++++++++++++++++++++++++-----------------------
common/x86/mc-c.c | 2 +-
encoder/ratecontrol.c | 15 ++++++-----
encoder/ratecontrol.h | 10 +++++++
encoder/slicetype.c | 42 ++++++++++++++++++++-----------
tools/checkasm.c | 45 ++++++++++++++++++---------------
9 files changed, 112 insertions(+), 94 deletions(-)
Diff: http://git.videolan.org/gitweb.cgi/x264.git/?a=commitdiff;h=22bfd310abced4df0b11c9620b152e5cfe746d43
More information about the x264-devel
mailing list