can someone please create a crop() function in avisynth ?
i'm pulling my hair out. now matter how many times i have to crop something through avisynth (rare occasions) i can't remember how to set up, calculate, add, subtract, or what the f..k, and its driving me crazy. anyway. i am looking for a crop that works exactly the way virtualdub does it. that is the way i remember always.
you can explain it all you want to me till the cows come home. i don't use it all the time in avisynth. its rare. i forget, and the logic (someone once told it that is the proper way to crop) i don't care about logic. i only care about how i do it in the way i easily recall..the virtualdub way.
thank you.
+ Reply to Thread
Results 1 to 6 of 6
-
-
It is the same as VirtualDub except you have to use negative values for the right and bottom. What's so hard about that?
Code:Crop(4,2,-6,-8)
Last edited by jagabo; 14th Oct 2013 at 22:15.
-
it is too frustrating to get the numbers correct. whenever i have to do it, it is not the same, even or odd number, 2/4/8 bouderies, and so on. from my experience, it takes too many tries to figure it out, by then i just give up and dump the file in virtualdub, crop it in an instant and then frameserve it into avisynth and encode it. it does not have to be perfect. i'm not picky like i used to be. but, nevermind. i gave up again and dump it into virtualdub and took care of it. i can't be bother, yet again. i was trying to do something real quick and i lost my mind, got mad, and...anyway, forget about it, nobody's gonna do it anyway. thanks.
-
If you want to use odd numbers convert to RGB. That's how VirtualDub does it. What a whiner!
-
The rules are simple to remember:
YUV 4:2:2 (eg YUY2) requires even values along the width because the chroma planes are half the width of the luma plane -- ie, you can't have half a pixel in the chroma planes.
YUV 4:2:0 (eg YV12) requires even values along both the width and height because the chroma planes are half the width and height of the luma plane. Again, you can't have half pixels in the chroma planes. In addition, interlaced YUV 4:2:0 requires mod 4 for the height because the chroma planes are 1/4 the height of the luma plane.
Similar Threads
-
Help with avisynth crop commands
By Bully9 in forum Video ConversionReplies: 9Last Post: 5th Dec 2012, 15:42 -
AVISynth function to darken an area
By kinglerch in forum EditingReplies: 13Last Post: 9th Apr 2012, 17:26 -
AviSynth: No function named LeakKernelDeint
By user2008 in forum Video ConversionReplies: 4Last Post: 23rd May 2010, 16:42 -
AVIsynth: is there such a function like repeat/until or for/next ?
By vhelp in forum EditingReplies: 4Last Post: 8th May 2010, 05:20 -
AviSynth function to add SUP subtitles?
By MilesAhead in forum SubtitleReplies: 11Last Post: 3rd Feb 2010, 13:16