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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd June 2020, 04:13   #1  |  Link
SPiKA
Registered User
 
Join Date: Nov 2006
Posts: 51
Debanding

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):
Code:
--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/f4ll8...ample.mkv/file

Sample screenshot:
https://ibb.co/QnsxNhv
SPiKA is offline   Reply With Quote
Old 2nd June 2020, 05:49   #2  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
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-St...p/F3KDB_s.avsi to add adaptive grain
F3KDB_3_adg() # F3KDB_3_adg F3KDB_3 with adaptive grain
kedautinh12 is offline   Reply With Quote
Old 2nd June 2020, 08:49   #3  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
I think dynamic_grain=true is what switches on non-static grain in (neo_)f3kdb. The default is false.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 2nd June 2020, 11:40   #4  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
you may like try my edit of GrainFactory3 and GrainFactory3mod that has new use_sAverageLumaMask bool
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 2nd June 2020, 18:13   #5  |  Link
Forteen88
Herr
 
Join Date: Apr 2009
Location: North Europe
Posts: 556
Try setting an even higher --psy-rdoq value if you like a noisy picture.
Forteen88 is offline   Reply With Quote
Old 2nd June 2020, 23:58   #6  |  Link
SPiKA
Registered User
 
Join Date: Nov 2006
Posts: 51
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/l8dou...d.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!
SPiKA is offline   Reply With Quote
Old 3rd June 2020, 01:14   #7  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Quote:
Originally Posted by SPiKA View Post
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/l8dou...d.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
kedautinh12 is offline   Reply With Quote
Old 4th June 2020, 13:55   #8  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
I have read on some other thread that light debanding can improve compressibility.

Any serious opinion from you all on that?
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:29.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.