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 3rd October 2022, 15:49   #1  |  Link
OvejaNegra
ekTOMBE STUDIOS
 
OvejaNegra's Avatar
 
Join Date: Dec 2005
Location: Cuba
Posts: 254
cg encoding - erase dithering on dark areas of the picture - or clip to zero

hi,
I have the following problem, i'm trying to encode some cg generated clips with x265.

Some of those clips have some amount of banding, so i used

Code:
f3kdb(dither_algo=2,keep_tv_range=true)
that solves the problem of bandind, but also creates dithering / grain on the dark / black areas of the picture.

There is nothing on those areas, this is cg, there is no dark detail, only pure black on the shadows or in any other similar area.

f3kdb puts dither there and that makes the encodes bigger.

someone could say, well, just lower aq. that solves part of the problem, lowering aq (0.4 - 0.6 - 0.8) in fact makes gives less
bits to dark areas and that makes the encodes smaller, but the higher quantizer on the dark areas, converts the dither to some uggly dark patches, that i find very distracting.

I cant find any option on x265 to clip / ignore the pixels on the dark areas. so i'm thinking if i'ts possible with avisynth, erase the dither on those areas or simply clip all the values to black (no more noise, just black).

Is that posible?
thanks
__________________
So, it works or not???
OvejaNegra is offline   Reply With Quote
Old 3rd October 2022, 16:02   #2  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
You can try GradFun3plus(thr=0.25, radius=10, mask=2, smode=0,UV=1)
https://github.com/Dogway/Avisynth-S...dFun3plus.avsi
kedautinh12 is offline   Reply With Quote
Reply

Tags
avisynth, banding, dithering

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 17:45.


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