VideoHelp Forum
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Average video editor Sviests's Avatar
    Join Date
    Sep 2018
    Location
    USA,Sweden
    Search Comp PM
    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:
    Code:
    -filter:v "crop=out_w:out_h:x:y"
    out_w being width,out_h being height, x&y specifying the top left corner.

    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
    Quote Quote  
  2. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    Let FFmpeg do the math for you.

    in_w-342-286:in_h-206-176:342:206
    Quote Quote  
  3. Originally Posted by Sviests View Post
    I need to crop: left:342,top:206,right:286,bottom:176
    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"
    Quote Quote  
  4. Average video editor Sviests's Avatar
    Join Date
    Sep 2018
    Location
    USA,Sweden
    Search Comp PM
    Thanks guys!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!