Log in

View Full Version : how do you crop in cce?


tomos
8th January 2003, 03:08
i did a search, and the best thing i could find was a post with the contents of an avs script. it had this line:

crop(8,74,704,428)

my captures have a green line for a few pixels at the top and i want to crop my vid and resize it back to 720x576. i use dvd2svcd to compress my caps so i can put them on dvd. i know dvd2svcd lets you edit the avs file before loading cce and i figure i could just copy and paste something like the 'crop' line above in and add a resize one. but which of those numbers is which? i mean is '8' the left border or right? top/bottom or what?

i tried using tmpegenc since that was all i had left and that worked, but it took way longer to compress with just 2 passes and my brightness levels were totally screwed.

wmansir
8th January 2003, 11:44
The order is (left, top, width, height)

so, in your example, 8 pixels on the left are cut, and 74 from the top, the final cropped image has a dimension of 704X428. So if the input was PAL and had an original size of 720X576 we can see that 8 pixels were cut from the right also, and 74 from the bottom.

So, if you just want to cut a few lines (say 4) from the top of a 720X576 frame and then resize back to 720X576 you could write:

crop(0,4,720,572)
bicubicresize(720,576,0,.75) # or whatever resize funciton you like.

However, resizing will affect your image quality (and in this case aspect ratio). you might want to just try cropping and adding a small border to replace the cropped section.

crop(0,4,720,572)
AddBorders(0,4,0,0) #Here the values are simply left, top, right, bottom

If it's only a couple of lines you probably won't even see them on a TV, so you definitly shouldn't resize the picture for that. but cropping + addborder won't hurt anything.

tomos
8th January 2003, 13:32
cool, thanks. :)

djidjo
8th January 2003, 16:27
I always use FitCD, a great tool that will generate an AVS script with all the perfect crop and resizing for CCE. Try it. It might be a bit hard to master at the beginning but then you'll be amazed how powerful it is.

Djidjo

tomos
8th January 2003, 17:49
i used xmpeg to know how much to crop and it worked when i put those numbers into the avs.

i would like to take a look at that FitCD tho, where can i download it?

69Mws
8th January 2003, 17:53
well, try and visit the download section ;)

tomos
8th January 2003, 19:18
had a quick look but couldn't find it. went to google and got it from there.

only thing is i dont see the video i need to crop, so i dont know how much to crop by. i think i would have to pay for that feature with the fit2disk proggy or something.

i think i'll stick to xmpeg and notepad. that'll do. :D