VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker or buy PlayOn and record Netflix! :)
+ Reply to Thread
Results 1 to 9 of 9
Thread
  1. Image
    [Attachment 43811 - Click to enlarge]
    i use a script with "McTemporalDenoise" and i can crop only to the power of 2
    Crop(2,0,-0,-0)
    Crop(4,0,-0,-0)
    Crop(8,0,-0,-0)

    if i try to crop "Crop(6,0,-0,-0)" it gives me an error (and 6 is exacly what i need the others ones are too much or to less)

    i need to delete a black bar.

    any way around this?
    Last edited by zanzar; 22nd Nov 2017 at 09:52.
    Quote Quote  
  2. Dinosaur Supervisor KarMa's Avatar
    Join Date
    Jul 2015
    Location
    US
    Search Comp PM
    Maybe crop after MCTemporalDenoise.

    #Like this
    MCTemporalDenoise()
    Crop(6,0,-0,-0)
    Quote Quote  
  3. Originally Posted by KarMa View Post
    Maybe crop after MCTemporalDenoise.
    yea it works but it works in a weird way if a place it after,leaving black lines on this side...

    why doesnt it work? with this "mod 4" message?
    Quote Quote  
  4. It's not now much you crop, it's how much is left. What's left must be mod 4 -- ie, the width and height must be integer multiples of 4.
    Quote Quote  
  5. Originally Posted by jagabo View Post
    It's not now much you crop, it's how much is left. What's left must be mod 4 -- ie, the width and height must be integer multiples of 4.
    so no matter what i do cropping by 6 wont work?
    Quote Quote  
  6. Originally Posted by zanzar View Post
    so no matter what i do cropping by 6 wont work?
    Read what he said. Crop by 4 and the remaining 2 after denoising. Or use a different denoiser.
    Quote Quote  
  7. Resizers can crop by any amount, even fractional pixels. Of course, to crop by 6 and keep mod-4, something has to give. You can either repeat the right-most 2 pixels, or stretch the image a tiny bit.
    Code:
    ## crop left side by 6 while keeping output mod-4
    
    ## test clip
    BlankClip(width=320-20, height=240-20, pixel_type="YV12")
    
    ## circle to check aspect ratio
    Subtitle("n", font="Marlett", size=Height, align=2, text_color=$808000) 
    
    ## multi-colored borders to test cropping
    AddBorders(2, 2, 2, 2, color=$00ffff) 
    AddBorders(2, 2, 2, 2, color=$0)
    AddBorders(2, 2, 2, 2, color=$ffff00)
    AddBorders(2, 2, 2, 2, color=$0)
    AddBorders(2, 2, 2, 2, color=$00ffff)
    
    ## cropping with resizer
    Spline64Resize(Width-4, Height, 6, 0, Width-6, 0)  ## stretches by 2 pixels
    #Spline64Resize(Width-4, Height, 6, 0, Width-4, 0)  ## shifts left and repeats the right-most 2 pixels
    return Last
    Quote Quote  
  8. Originally Posted by raffriff42 View Post
    You can either repeat the right-most 2 pixels, or stretch the image a tiny bit.[code]## crop left side by 6 while keeping output mod-4
    I much prefer BorderControl when I have to keep a few pixels on one or more sides:

    Crop(4,0,0,0)###Crop 4 from left
    BorderControl(XLS=2,XLSF=2)###BorderControl the remaining 2 pixels of black on the left side


    With only 2 pixels being added from nearby and being blurred, you don't even know anything has happened. To each his own. Maybe zanzar might like to give it a try. Or not.
    Quote Quote  
  9. pretty neat.
    Quote Quote  



Similar Threads