digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD Cropping issue? (http://www.digitalfaq.com/archives/encode/8338-kvcd-cropping-issue.html)

bigggt 02-25-2004 08:10 PM

KVCD Cropping issue?
 
Lately the last couple of days i have come accross a few scripts with this in them

Code:

crop(24,80,672,416,align=true)
Can i use this or do i have to replace with something like this
Code:

BicubicResize(512, 352, 1/3, 1/3, 11, 0, 698, 480)
Becuase when ever i use just the crop line i get

You cannot use crop to enlarge or a shift a clip

BTW I RTFM and still didn't understand :D

Dialhot 02-26-2004 04:37 AM

Crop is fro cropping (i.e. cutting) the picture to get a smaller one.

The values are : Crop(x,y,width,height).
(X,Y) are the coordinates of the upper/left corner of the rectangle you want to cut. (width,height) are the dimensions of this rectangle.

Now, if you have a picture that is (100,100) pixels, you can't crop it with (20,20,90,90) because if you start yo cut at the point (20,20) you only have 80 pixels that left on the right, and the same under the cutting point. Do you understand ?

Imagine you are cutting a piece of paper with a blade. You will see that you can't enlarge the piece of paper :-)

In other words, the value you used (28,80,672,416) aren't compatible with the actual size of your picture. To be valid, the source must be at least (28+672,80+416) pixels. That is a minimal resolution of the source of (700,496). DO you have this ? I don't think so.

Note that in the bicubic line, the 4 last parameters are in fact a cropping.
So "BicubicResize(512, 352, 1/3, 1/3, 11, 0, 698, 480)" is equivalent to "Crop(11, 0, 698, 480).BicubicResize(512, 352, 1/3, 1/3)".

bigggt 02-26-2004 05:55 PM

Thanx Phil ,believe it or not i do actually understand :D ,i thought i was getting the error forn using crop but it was actually just the numbers that i was using(i just copied and pasted)

BTW thanx for putting it into easy terms that i could understand

Dialhot 02-26-2004 06:07 PM

You're welcome.


All times are GMT -5. The time now is 04:31 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.