Hi, I'm trying more and more to get rid of Avisynth and switch to Vapoursynth, but for some filters/scripts in Avisynth I really haven't found any alternatives/ports.
Does anyone know ports for:I know some of these filters/scripts are rather old, but I use them from time to time and would prefer not to having Avisynth just for these few.
- AutoAdjust (https://forum.doom9.org/showthread.php?t=167573)
- SmoothLevels/SmoothCurve (https://forum.doom9.org/showthread.php?t=154971)
- HDR AGC (https://forum.doom9.org/showthread.php?t=93571)
- ChannelMixer (http://avisynth.nl/index.php/ChannelMixer)
- amDCT (https://sites.google.com/site/amdctfilter/)
- MosquitoNR (https://forum.doom9.org/showthread.php?t=167582)
- Camcorder color denoiser (this is a VirtualDub filter) -> slow, but working port: https://github.com/DomBito/VapourSynth-CCD
- Checkmate (http://avisynth.nl/index.php/Checkmate)
- DeStripe (https://forum.doom9.org/showthread.php?t=154863)
- DeScratch (http://avisynth.org.ru/descratch/descratch.html)
Cu Selur
Ps.: Note that I loading a Avisynth filter in Vapoursynth isn't really an options since I'm often using Linux (which is why Vapoursynth is really interesting) and I haven't found a way to get it working without running Vapoursynth and Avisynth with Wine (which isn't really stable; or in a VM).
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 9 of 9
Thread
-
Last edited by Selur; 12th May 2021 at 11:04. Reason: removed DeDot -> https://github.com/dubhater/vapoursynth-dedot
users currently on my ignore list: deadrats, Stears555 -
Hello.
I have vapoursynth x64 portable and cannot find a compatible HDR AGC (or perhaps AutoAdjust if it did a similar thing).
How did you go ? If you could not find something, what did you use instead ? -
SmoothLevels is in havsfunc.py
You can use curves in Y, Cb,Cr or R,G,B curves with vapoursynth curve
Channelmixer variations should be possible with ShufflePlanes and Expr , but it would be nice if someone wrote a helper function -
SmoothLevels is in havsfunc.py
Cu Selurusers currently on my ignore list: deadrats, Stears555 -
Okay, the SmoothLevels is not that good, due to:
- 'SmoothLevels: Ecurve=0 is unusable at the moment due to missing sin operator in Expr' when Lmode != 0 or protect -1
- no 'show' parameter
Cu Selurusers currently on my ignore list: deadrats, Stears555 -
Tried ChannelMixer for vapoursynth, following wiki calculations for pixel, but RGB values does not match avisynths ChannelMixer() output. Is that right? Not sure why.
Code:import vapoursynth as vs from vapoursynth import core def channel_mixer(rgb, RR=100.0, RG=0.0, RB=0.0, GR=0.0, GG=100.0, GB=0.0, BR=0.0, BG=0.0, BB=100.0): """ example for pixel calculations: R=146 G=36 B=44 print('new R =', round(0.01*RR*R + 0.01*RG*R + 0.01*RB*R, 0)) print('new G =', round(0.01*GR*G + 0.01*GG*G + 0.01*GB*G, 0)) print('new B =', round(0.01*BR*B + 0.01*BG*B + 0.01*BB*B, 0)) """ if not rgb.format.color_family == vs.RGB: raise ValueError('channel_mixer: input clip must be RGB color_family') planes = [core.std.ShufflePlanes(rgb, planes=p, colorfamily=vs.GRAY) for p in [0,1,2]] R = core.std.Expr(planes[0], expr = f'0.01 {RR} * x * 0.01 {RG} * x * + 0.01 {RB} * x * +') G = core.std.Expr(planes[1], expr = f'0.01 {GR} * x * 0.01 {GG} * x * + 0.01 {GB} * x * +') B = core.std.Expr(planes[2], expr = f'0.01 {BR} * x * 0.01 {BG} * x * + 0.01 {BB} * x * +') return core.std.ShufflePlanes([R,G,B], planes=[0,0,0], colorfamily = vs.RGB) clip = core.avisource.AVISource("video.avi") rgb = core.resize.Point(clip, format=vs.RGB24, matrix_in_s = '170m') #it could be any RGB even float RGBS clip_out = channel_mixer(rgb, RR=100.0, RG=20.0, RB=-5.0, GR=0.0, GG=100.0, GB=0.0, BR=-20.0, BG=0.0, BB=100.0) clip_out.set_output()
Similar Threads
-
Can i use AviSynth plugins in vapoursynth?
By zanzar in forum Newbie / General discussionsReplies: 16Last Post: 13th Feb 2019, 08:37 -
Avisynth equivalent plugins for vapoursynth
By zanzar in forum Newbie / General discussionsReplies: 4Last Post: 4th Feb 2019, 11:58 -
Help transitioning from avisynth to vapoursynth.
By zanzar in forum Newbie / General discussionsReplies: 10Last Post: 3rd Feb 2019, 16:50 -
Debading method (Vapoursynth to avisynth)
By frank_zappa in forum RestorationReplies: 2Last Post: 3rd Nov 2017, 12:26 -
What filters/processes are involved in Dan Isaac's HD2SD avisynth filter?
By katieburchett in forum Authoring (DVD)Replies: 2Last Post: 9th Sep 2015, 10:23