rd-refine will cause some glitch in some encoded frames.

Issue #630 new
Z created an issue

The combination is:

--max-tu-size <32

--vbv-maxrate and --vbv-bufsize with arbitrary value (so it not need to be effective, just need to be there?)

--rd-refine (with --rd 5 of course, but --rd 5 alone is fine.)

--limit-refs <2

--weightb

Other parameters may make it worse or better, but it is believed that the combination above is the key leading to this bug. (the strikethrough parameters are just fell into this category)

Test source and two example encoding command line is included. The glitch will mostly appear in frame 427~431.

Images contain results from different “other parameters“.

Based on more testing and discussion in links mentioned in comments, rd-refine is the only one real key to this bug.

Comments (12)

  1. Z reporter

    I tried to do something and there’s more testing needed, if it works I’ll create a PR.

    As for speed and quality,my testing shows it makes encoding a little slower, but improves quality rather than the opposite. (this opposite effect may be just a weird result in this single testing)

    Because traditional metrics are not so good at revealing the glitch reported, manual examinations are required.

    https://bitbucket.org/mister-z/x265_git/commits/8d78b0fa48d09f0f2b5a58372d573a4711a432fa

  2. Log in to comment