VideoHelp Forum
+ Reply to Thread
Results 1 to 9 of 9
Thread
  1. 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.

    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).
    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
    Quote Quote  
  2. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    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 ?
    Quote Quote  
  3. Sorry, but at least afaik there are no ports or alternatives to AutoAdjust, SmoothLevels/SmoothCurve, HDR AGC.
    On sources where I really need them I use Avisynth.

    Cu Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  4. 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
    Quote Quote  
  5. SmoothLevels is in havsfunc.py
    @poisondeathray: thanks for the info!

    Cu Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  6. 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 Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  7. 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()
    Quote Quote  
  8. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    Thanks !

    Any news on descratch and especially deflicker ?
    Quote Quote  
  9. no
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!