Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#9901 | Link |
|
Donor
![]() Join Date: Jun 2024
Location: South Africa
Posts: 679
|
Makes sense. Its somewhat different tools and ranges yield different-looking artefacts as a side effect, and x265's implementation of these tools may not be the gold standard. qcomp was helping, but as you said, just shifting around or pumping up the bits.
SVT-AV1 can give a better picture at the frame level, but going in the temporal direction, particularly with grain, we're walking on shaky ground. The HDR fork does better, but changes the appearance of the grain, making it coarser. |
|
|
|
|
|
#9902 | Link | |
|
Moderator
![]() Join Date: Jan 2006
Location: Portland, OR
Posts: 5,134
|
Quote:
|
|
|
|
|
|
|
#9903 | Link |
|
Registered User
Join Date: Aug 2024
Location: Between my two ears
Posts: 958
|
I found that x265's SAO performs better or less bad in 12bit mode some time ago... maybe worth take a look.
But I cannot really understand that part of the code, and since AV1 has better filter(s) and better open source implementation(s), I'm not very motivated
Last edited by Z2697; 6th January 2026 at 18:41. |
|
|
|
|
|
#9904 | Link | ||
|
Donor
![]() Join Date: Jun 2024
Location: South Africa
Posts: 679
|
Quote:
Quote:
![]() Jokes aside, I've found some success with aq-mode 4 these past few days. So far, it's working well. |
||
|
|
|
|
|
#9905 | Link | |
|
Registered User
Join Date: Aug 2024
Location: Between my two ears
Posts: 958
|
Quote:
I mean the SAO mode decision, not the fps perform, you know. |
|
|
|
|
|
|
#9907 | Link |
|
Registered User
Join Date: Dec 2013
Location: Berlin, Germany
Posts: 541
|
Well you could give my gradient_with_noise sequence a try, with 10 and 12 bit, and check if its no longer blocking things up.
https://forum.doom9.net/showthread.p...76#post1949376 But I guess nothing did change. Last time I checked x265 had no real "mode decision" for SAO but only went by what it understands as "distortion". I remember debugging some large offenders and the numbers checked out, no bug there it seems.
__________________
My github... |
|
|
|
|
|
#9910 | Link | |
|
Registered User
Join Date: Aug 2024
Location: Between my two ears
Posts: 958
|
Quote:
I tested this same clip before, 12bit does not create same "blocky columns" as 10bit in the test, that's actually what I mean less bad. But this kind of content should use "no operation" mode I think? 12bit still doesn't do that. |
|
|
|
|
|
|
#9911 | Link | |
|
Registered User
Join Date: Dec 2013
Location: Berlin, Germany
Posts: 541
|
Quote:
That the clip does not exhibit the blocking at 12bit is interesting and probably worth investigating. Its strange that 8 and 10 bit pick the 'offset' mode and 12 bit does not. As for the optimal mode, it would be better if it were selected by real RD costs, that is, recon against source distortion with the (PSY-)RD distortion metric used everywere else.
__________________
My github... |
|
|
|
|
|
|
#9913 | Link | |
|
Registered User
Join Date: Sep 2002
Location: Italy
Posts: 191
|
Perhaps related to RD, I found an unwanted behavior in rd-refine option. The following screen is from Vinland Saga Season 1 Episode 16, source is blu-ray @34MBps
https://imgur.com/iwfhscB NOTE: the screen is taken via VirtualDub2 and the artifacts are present in software decoder, so probably it is not the same MV issue I described a few months ago in another thread. The flickering fire leads to fast moving gradient in a dark background, which is somewhat a worst case scenario for video encoding. There are a lot of similar random macroblocks in the whole scene, each last for 1 frames. Bat file used (Windows): Quote:
If rd-refine=1, artifacts appears both in 10 and 12 bit. With rd-refine=0 there are no wrong macroblocks. However rd-refine seems to give nice results in other scenarios. |
|
|
|
|
|
|
#9914 | Link |
|
Registered User
Join Date: Aug 2024
Location: Between my two ears
Posts: 958
|
That's a known issue, among some people.
https://github.com/Mr-Z-2697/x265-ex...2a4df2c730ad7a However my test result didn't favor rd-refine even if it's supposed to be fixed (if I'm lucky). However yet again I didn't test the ultimate single thread encoding like you do. I'll port that branch into a latest x265 and compile a test build for anyone that might be interested. https://pixeldrain.com/u/z9TjFxsh or https://workupload.com/file/kcWyHpU2rX3 Last edited by Z2697; 29th January 2026 at 02:58. |
|
|
|
|
|
#9915 | Link | |
|
Registered User
Join Date: Sep 2002
Location: Italy
Posts: 191
|
An update: it seems that the rd-refine problem is also related to the limit-tu option.
Test script used (all encodes with rd-refine=1, loop through limit-tu=%%j) Quote:
Macroblocks are evident with limit-tu =0 and 1. Less evident with 2, absent with limit-tu=3 or 4. Replacing with rd-refine=0, all tests present no "macroblocks" artifacts. EDIT: thanks Z2697 for your build, I'll give it a try as soon as I setup a proper framework (I'm used to ffmpeg and not familiar with x265.exe, but I guess it is not difficult) Last edited by hellgauss; 29th January 2026 at 17:36. |
|
|
|
|
|
|
#9916 | Link |
|
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,638
|
@Z2697
I took a look on your experimental repo, and see in your experiments the remove of distorstion chroma only for 444. Did test/check and finaly found that it produces better results ?
__________________
My github. |
|
|
|
|
|
#9918 | Link | |
|
Registered User
Join Date: Aug 2024
Location: Between my two ears
Posts: 958
|
Quote:
In theory, and in the way I assess chroma quality, it's better. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|