[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?
+ Reply to Thread
Results 1 to 9 of 9
-
Last edited by zanzar; 22nd Nov 2017 at 08:52.
-
Maybe crop after MCTemporalDenoise.
#Like this
MCTemporalDenoise()
Crop(6,0,-0,-0) -
-
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.
-
-
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
-
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.
Similar Threads
-
Non standard video size crop
By Pewpew in forum EditingReplies: 4Last Post: 1st May 2017, 11:48 -
Can we 'crop' a video like we do an image?
By seymoria in forum EditingReplies: 9Last Post: 20th May 2014, 08:50 -
How to crop and fix this 16:9 video?
By brassplyer in forum RestorationReplies: 10Last Post: 24th Jan 2014, 12:30 -
MENCODER: how to crop 32 lines from up as virtualdub nulltransform crop?
By marcorocchini in forum Newbie / General discussionsReplies: 7Last Post: 17th Dec 2013, 15:58 -
Best quality and speed video denoisers 2011
By mammo1789 in forum RestorationReplies: 146Last Post: 8th Apr 2013, 06:01