View Full Version : Crop on the bottom
Blue Star
6th January 2008, 11:50
I Want to Cut (Crop) 4 or 8 pixels on the bottom and maybe replace with a black border.
I can't understand. When I crop it's only on the left and on the top.
Can anyone help me?
Here are the script:
AviSource("P:\movie.avi") # Open 704x576
Spline36Resize(684,576) # Resize to 684*576
Crop(4,0,680,576) # Cut 4 pixels left
AddBorders(16,0,24,0) # Add borders more on the right
J_Darnley
6th January 2008, 12:16
Have you tried:
Crop(left, top, -right, -bottom)
The negative values for crop on the right and bottom sides will always remove that many pixels otherwise you need to work out the final dimensions of the image and use those for the right and bottom values.
neuron2
6th January 2008, 12:23
I Want to Cut (Crop) 4 or 8 pixels on the bottom Crop(0, 0, -0, -4) # crop 4 from bottom
Crop(0, 0, -0, -8) # crop 8 from bottom
Blue Star
6th January 2008, 12:44
Crop(0, 0, -0, -4) # crop 4 from bottom
Crop(0, 0, -0, -8) # crop 8 from bottom
How should I put it in to my script or is it impossible to use my old script and crop from the bottom?
buzzqw
6th January 2008, 12:53
AviSource("P:\movie.avi") # Open 704x576
Spline36Resize(684,576) # Resize to 684*576
Crop(0, 0, -0, -8) # Cut 8 pixels bottom
AddBorders(16,0,24,0) # Add borders more on the right
BHH
Blue Star
6th January 2008, 13:23
Thanks!
Can I have it like that:
AviSource("P:\movie.avi") # Open 704x576
Spline36Resize(684,576) # Resize to 684*576
Crop(4, 0, -0, -12) # Cut 12 pixels bottom
AddBorders(16,0,24,12) # Add borders more on the right and 12 bottom
Or what happened when 680,576 is gone?
buzzqw
6th January 2008, 13:48
Crop(4, 0, -0, -12)
this will cut 4 pixel at top and 12 at bottom, not only at bottom...
but.. why crop/cut 12 pixel at bottom and then add it
AddBorders(16,0,24,12)
BHH
Blue Star
6th January 2008, 14:45
Crop(4, 0, -0, -12)
It is 4 pixel at left and 12 at bottom I think!
buzzqw said: but.. why crop/cut 12 pixel at bottom and then add it
AddBorders(16,0,24,12)
I cut it because there are noise at the bottom. And then I add border because I want the resoloution 720x576. But the noise at the bottom disappear on the tv but I want a PC copy of the movie without the noise.
The movie is captured with my capture card. If I just convert to mpeg2 and burn the movie, the picture on the TV is wrong. Thats because I Resize to 684x576 and add borders on the left and right.
buzzqw
6th January 2008, 15:03
good point, this trick is often use to get perfect black bar
BHH
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.