For example there is a line-filter for Vapoursynth in Hybrid called Darken GLSL A4k where you can use to darken lines. In theory shouldn't it be possible to de-darken with the same filter with negative values ? But it does not work with this filter for me.
So does someone know a de-darken filter?
+ Reply to Thread
Results 1 to 8 of 8
-
Last edited by Platos; 7th May 2023 at 16:08.
-
What do you mean it "does not work" ? In the GUI ?
If it's an anime4k glsl shader, you can edit the values in notepad for any glsl shader, save it under a new descriptive name
Negative values "work" for line darken shader strength , but they can blur the lines - it makes sense because line darkening filters also tend to darken and thicken the lines
Another approach is to use a line mask, and composite a "lightened" version (such as with levels) using overlay -
Yes, i meant the gui from hybrid.
Ah ok, i thought it just would evenly make the line a bit less dark. But maybe i try it somehow.
Ok, mask would also be an option. For masks i need 2 sources, right? Im not sure anymore. -
Yes, Hybrid uses Anime4K_Darken_*.glsl, but Hybrid does only allow negative values, since - to me - that does not make sense for a darkening filter (https://imgsli.com/MTc2ODM5).
Using Levels with an EdgeMask while changing the gamma, seems to a better approach.
If you mess with the glsl file, make a copy of it and rename the copy, keep the original, otherwise Hybrids UI integration of the filter might not work.
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini -
Ah ok, yeah i mean if it looks so bad i will not try it xD
That seems just not to work good.
Maybe i have to try masking. I will have to look into this masking stuff. Is complicatet. -
The basic idea of masking is easy, you have two versions of a clip, for exampled a filtered and an unfiltered one.
Then you have a mask (either grayscale or black and white) which defines per pixel where and how much of the first version of the clip should be replaced by the second version.
Original:
Filtered:
Mask:
Filtered with Mask:
If the pixel is white (=1) in the mask, then the pixel in the 1st source will be replaced with the pixel in the 2nd source.
If the pixel is black (=6) in the mask, then the pixel in the 1st source will be kept.
If the pixel is gray (0 < x < 1) in the mask, then the pixel in the 1st source will be mixed with the pixel in the 2nd source.
Cu Selur
Ps.: The tricky part is creating the right mask that covers only the areas you want.Last edited by Selur; 8th May 2023 at 09:35.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
Ahh, ok, that's nice.
So which filter did you use for this masking ? negative value forDarken GLSL A4k ?Last edited by Platos; 8th May 2023 at 10:16.
-
Levels with gamma set to 1.5 and for the mask I used 'EdgeMask (Prewitt)'.
users currently on my ignore list: deadrats, Stears555, marcorocchini
Similar Threads
-
"code":400,"error":true,"message" on http://getwvkeys.cc
By johnsonkiss in forum Video Streaming DownloadingReplies: 14Last Post: 25th Jul 2024, 21:45 -
How to change "m3u8" to "json" and "ts" to "js" extension
By wowza in forum Newbie / General discussionsReplies: 6Last Post: 4th Mar 2023, 15:36 -
(subtitle edit) About "merge lines with same timecode"
By heisiheisi in forum SubtitleReplies: 5Last Post: 12th Oct 2020, 15:48 -
How to detect "lines" and drop of audio in VHS rip
By gybe in forum Capturing and VCRReplies: 3Last Post: 20th Aug 2019, 04:52 -
Why x264 "placebo" preset produce bigger file than "very slow"?
By aleaksunder in forum Video ConversionReplies: 21Last Post: 2nd Mar 2019, 07:25