Hi everyone.
I need to crop a video from all sides (top,left,bottom and right), but there's a different # of pixels i need to crop from each side.
I usually use VideoRedo,however this time the cropping has larger number of pixels and it takes around 10 hours to finish it,which is a bit too long (my CPU is intel i7,btw).
I know ffmpeg can do it with "crop" filter:
out_w being width,out_h being height, x&y specifying the top left corner.Code:-filter:v "crop=out_w:out_h:x:y"
However i can't figure the correct input in this filter. I need to crop: left:342,top:206,right:286,bottom:176 (this is what i had in VideoRedo window)
I also tried HandBrake,however it also takes up to 10 hours to finish the job![]()
+ Reply to Thread
Results 1 to 4 of 4
-
-
It's just a little simple math: After cropping the remaining width of the image is in_w - left_crop - right_crop, the remaining height of the image is in_h - top_crop - bottom_crop, and you want the top left corner of the crop at left_crop, top_crop:
Code:-filter:v "crop=w=in_w-342-286:h=in_h-206-176:x=342:y=206"
Similar Threads
-
Colors warping/wrapping around on sides?
By killerteengohan in forum RestorationReplies: 6Last Post: 11th Mar 2018, 20:28 -
cropping the sides to make fullscreen
By anime12345 in forum Video ConversionReplies: 5Last Post: 12th Nov 2015, 18:58 -
how add padding to the sides of a video ?
By dcaro in forum EditingReplies: 10Last Post: 13th Aug 2015, 12:10 -
Any ffmpeg GUI that has a video preview cropping?
By imdaman in forum EditingReplies: 2Last Post: 12th Jul 2015, 00:57 -
FFMPEG Crop Command Not Cropping
By lindylex in forum ffmpegX general discussionReplies: 2Last Post: 2nd Dec 2013, 17:03