This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Bad x264 rc_lookahead value
#3
I read x264 code and I insist, rc_lookahead value is relevant regardless of mbtree status. In your second link (encoder.c L1108+), there is nothing that overrides lookahead value to zero if mbtree is disabled.

To have more evidence, please search for "i_lookahead" in ratecontrol.c and pay attention to the logic flow. If i_lookahead is zero, then all size prediction of future frame is skipped and it fallbacks to reactive logic at line 2330+ (mere example, there are others "bad" fix-ups for this insane case of no lookahead). You can add debug print there to verify this that lookahead is used properly regardless of mbtree status.

Furthermore, if you look at many commercial blu-rays, SEI data always have rc_lookahead > 0, regardless of mbtree. Example: https://forum.blu-ray.com/showpost.php?p...tcount=377
Reply


Messages In This Thread
Bad x264 rc_lookahead value - by rubdub - 17.02.2025, 11:33
RE: Bad x264 rc_lookahead value - by Selur - 17.02.2025, 16:08
RE: Bad x264 rc_lookahead value - by rubdub - 18.02.2025, 13:26
RE: Bad x264 rc_lookahead value - by rubdub - 18.02.2025, 17:29
RE: Bad x264 rc_lookahead value - by Selur - 18.02.2025, 19:03
RE: Bad x264 rc_lookahead value - by rubdub - 19.02.2025, 09:03
RE: Bad x264 rc_lookahead value - by Selur - 19.02.2025, 15:57
RE: Bad x264 rc_lookahead value - by Selur - 19.02.2025, 18:08
RE: Bad x264 rc_lookahead value - by rubdub - 20.02.2025, 13:56

Forum Jump:


Users browsing this thread: 3 Guest(s)