Log in

View Full Version : Debanding


SPiKA
2nd June 2020, 04:13
Hello!
I'm trying to do an encode of the S1 of Psycho-Pass.
Some scenes have heavy banding and blocking (source is BD).

I can get rid of the banding using some filters like f3kdb and/or GradFun3, but they do add "static" grain.
The thing is... static noise looks unnatural on moving scenes...

Is there a way to add fine "moving" grain?

Encoding settings are (x265):
--preset slow --crf 15.0 --output-depth 10 --no-sao --bframes=8 --psy-rd=2 --psy-rdoq=5 --aq-mode=3 --deblock=-1:-1


Sample clip (source):
https://www.mediafire.com/file/f4ll8krxg351ifc/sample.mkv/file

Sample screenshot:
https://ibb.co/QnsxNhv

kedautinh12
2nd June 2020, 05:49
First, you use debanding with no add grain
f3kdb(range=12, y=60, cb=40, cr=40, grainy=0, grainc=0)
Second, you use f3kgrain to add grain
f3kgrain(temp=50) # reduce temp can reduce static grain
Or you can use this script https://github.com/realfinder/AVS-Stuff/blob/master/avs%202.5%20and%20up/F3KDB_s.avsi to add adaptive grain
F3KDB_3_adg() # F3KDB_3_adg F3KDB_3 with adaptive grain

Boulder
2nd June 2020, 08:49
I think dynamic_grain=true is what switches on non-static grain in (neo_)f3kdb. The default is false.

real.finder
2nd June 2020, 11:40
you may like try my edit of GrainFactory3 and GrainFactory3mod that has new use_sAverageLumaMask bool

Forteen88
2nd June 2020, 18:13
Try setting an even higher --psy-rdoq value if you like a noisy picture.

SPiKA
2nd June 2020, 23:58
Using:
f3kdb(range=12, y=60, cb=40, cr=40, grainy=0, grainc=0)
f3kgrain(temp=50)
and --psy-rdoq 8

I was able to get:
https://www.mediafire.com/file/l8doulstri3q0zi/s.encoded.mkv.mkv/file
https://ibb.co/JrfzT4f


Hmmm... I guess it looks good enough (?)
But I'll try a few other suggestions before encoding the whole series.
Thanks to everyone so far!

kedautinh12
3rd June 2020, 01:14
Using:
f3kdb(range=12, y=60, cb=40, cr=40, grainy=0, grainc=0)
f3kgrain(temp=50)
and --psy-rdoq 8

I was able to get:
https://www.mediafire.com/file/l8doulstri3q0zi/s.encoded.mkv.mkv/file
https://ibb.co/JrfzT4f


Hmmm... I guess it looks good enough (?)
But I'll try a few other suggestions before encoding the whole series.
Thanks to everyone so far!

Replaced with neo-f3kdb can make more speed

tormento
4th June 2020, 13:55
I have read on some other thread that light debanding can improve compressibility.

Any serious opinion from you all on that?