VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 7 of 7
Thread
  1. Does AviSynth has any filter that allows me to blur certain objects in video? I'm asking this because I there are some disgusting scenes that I want to make invisible.
    Quote Quote  
  2. Crop+Blur+Overlay
    Quote Quote  
  3. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    Also, options for if the object moves around ? eg when talking some people sway their head or walk around.
    Need not be solely avisynth based.
    Quote Quote  
  4. The object is on the ground, but the screen moves.
    Quote Quote  
  5. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    :thumbsup:
    Quote Quote  
  6. Here's an example:

    Code:
    ##########################################################################
    #
    #  Blur a rectangular portion of the frame.
    #
    #  x,y = top left corner of the box
    #  w,h = size of the box, width, height
    #  blur_factor = how much to blur, bigger for more blur
    #
    ##########################################################################
    
    function BlurBox(clip v, int x, int y, int w, int h, int "blur_factor")
    {
        blur_factor = Default(blur_factor, 1)
        sx = Max(v.width / blur_factor * 2, 12) # Spline36Resize() requires at least 12 pixels wide
        sy = Max(v.height / blur_factor * 2, 12) # Spline36Resize() requires at least 12 pixels high
        w = w / 2 * 2 # force even for YV12, YUY2
        h = h / 2 * 2 # force even for YV12
    
        Spline36Resize(v, sx, sy)
        Blur(1.0)
        Spline36Resize(v.width, v.height)
        Spline36Resize(w,h,x,y,w,h) # alternate for Crop(x/2*2, y/2*2, w, h), allows odd x,y values
        Overlay(v, last, x, y)
    }
    
    ##########################################################################
    
    
    ColorBars(width=854, height=480, pixel_type="YV12").Trim(0,299)
    
    Trim(0,99)\
    ++Animate(100,199, "BlurBox", last,200,300,100,100,20,  last,600,300,100,100,20).Trim(100,199)\
    ++Trim(200,0)
    Frames 100 to 199 will have a blurred box move across the screen.
    Last edited by jagabo; 26th Oct 2019 at 13:08.
    Quote Quote  



Similar Threads