Selur's Little Message Board
Can't find a filter or an effect to "reduce blue" - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: Can't find a filter or an effect to "reduce blue" (/thread-3277.html)

Pages: 1 2


Can't find a filter or an effect to "reduce blue" - Bartoloni - 27.06.2023

Probably i need to do this in post-processing with a video editor but i was hoping that can be done in Hybrid (i don't need to cut/edit this clip)
i have a VHS totally "blue" or "without" red ... probably a camcorder issue. or a wrong settings during recording (neon lights option)

this is a processed part using hybrid (deinterlaced, removegrain,crop,letterbox fillblackframes) http://www.wcn.it/wrongcolors.zip (MKV inside)


can be made some sort of script/code that can reduce the blue effect?

very thank you (i searched the forum but i found only general HUE and saturation tweaks)


RE: Can't find a filter or an effect to "reduce blue" - Selur - 27.06.2023

Grayworld, some LUT or Avisynths RGBAdjust might help.
Would need a small clip of the source to be give proper advice.

Cu Selur


RE: Can't find a filter or an effect to "reduce blue" - Bartoloni - 27.06.2023

very thank you for the help Selur Smile
this is a small clip from original footage: www.wcn.it/small.avi


RE: Can't find a filter or an effect to "reduce blue" - Selur - 27.06.2023

Instead of trying to manually adjust this (using RGBAdjust), look at:
Grayworld (median):
[Image: grafik.png]
Grayworld (mean):
[Image: grafik.png]
AutoWhite:
[Image: grafik.png]
ColorYUV-AutoWhite-AutoGrain (Avisynth):
[Image: Avisynth-Color-YUV-Auto-White-Auto-Grain.png]
and then try to clean it up.

Cu Selur


RE: Can't find a filter or an effect to "reduce blue" - Bartoloni - 27.06.2023

thank you Selur!


RE: Can't find a filter or an effect to "reduce blue" - Dan64 - 29.06.2023

Hello Selur,

   the "RGBAdjust" is an Avisynth filter. In Vapoursynth this filter is missing, instead of there is the filter "Auto white",  but I'm not sure that the behavior is the same.
   If this is not the case, it could be possible to add a filter equivalent to "RGBAdjust"  in Vapoursynth  ?

Thanks
Dan


RE: Can't find a filter or an effect to "reduce blue" - Selur - 29.06.2023

Sadly, atm. there is no port of RGBAdjust for Vapoursynth, so adding something similar isn't really possible.
Vapoursynth authors write: "RGBAdjust std.Lut Do the adjustment yourself with a lut", see: https://github.com/amichaelt/vapoursynth/blob/master/doc/avisynthcomp.rst
_Al_ posted a rough translation over at VideoHelp which could be used in a custom section.

Cu Selur

Ps.: did a quick test, extracting the attached zip into the vsscripts folder an using:
# requires colorformat RGB24
import rgbAdjust
clip = rgbAdjust.RGBAdjust(rgb=clip, r=1.0, g=1.0, b=1.0, a=1.0, rb=1.0, gb=1.0, bb=0.0, ab=0.0, rg=1.0, gg=1.0, bg=1.0, ag=1.0)
worked fine here. script: https://pastebin.com/MeVBYdqb
Note, that some other script need to be imported so that Hybrid automatically expands the sys.path, otherwise one would need to expand sys.path in the custom section too.


RE: Can't find a filter or an effect to "reduce blue" - Dan64 - 29.06.2023

Hello Selur,

    good to know that there is a working replacement.
    There is any hope that the filter "rgbAdjust.py" will be added as standard filter in the next version of Hybrid ?

Thanks,
Danilo


RE: Can't find a filter or an effect to "reduce blue" - Selur - 29.06.2023

There is always hope. (I wanted to add it a few weeks ago, but due to some emergency in the company I work at, I didn't have much free time lately an atm. I'm too lazy. + starting to search my things together for RockHarz next week. Smile)

Side note: The next public release will definitely include Custom script/filter additions, so one can even integrate stuff into the GUI even when Hybrid does not support them out of the box, by writing an .xml file (and providing the dlls&co).

Cu Selur


RE: Can't find a filter or an effect to "reduce blue" - Bartoloni - 30.06.2023

Working nice Smile