don't understand crop

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
mitchino
Posts: 3
Joined: Tue Sep 22, 2015 7:05 pm

don't understand crop

Post by mitchino »

I have a 1980 x 1020 movie.

I need to produce a 1280 x 720 version, easy - just change the size in the picture settings, making sure keep aspect ratio is checked.

I also need to produce a cropped top and bottom version at 1280 x 540, so 90 pixels off top and 90 off bottom. I put these values into the cropping boxes and leave the width and height at 1280 x 720 but uncheck the keep aspect ratio box. The movie comes out at 1280 x 720, but has been stretched vertically.

So I then leave the crop values at 90 top and bottom, but change the width and height values to 1280 x 540. The movie comes out at 1280 x 540, but it's been stretched horizontally.

How do I just take the 1280 x 720 version and crop away the top and bottom to make it 1280 x 540 without distortion?
User avatar
Ritsuka
HandBrake Team
Posts: 1655
Joined: Fri Jan 12, 2007 11:29 am

Re: don't understand crop

Post by Ritsuka »

You should leave "keep aspect ratio" enabled.
rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: don't understand crop

Post by rollin_eng »

Could you please post your logs, instructions can be found here:

viewtopic.php?f=6&t=31236
mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: don't understand crop

Post by mduell »

Don't uncheck keep aspect ratio if you want to keep the aspect ratio.
mitchino
Posts: 3
Joined: Tue Sep 22, 2015 7:05 pm

Re: don't understand crop

Post by mitchino »

So it works if I set the size to 1280x540, keep aspect ratio enabled as suggested by Ritsuka, and set the crop to 134 top and 134 bottom.

Great that it works, but how do the figures add up? Surely if I crop 134+134 = 268 from a 720 high image I get a 452 high image?
mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: don't understand crop

Post by mduell »

Crop is applied before resize, not after. You're cropping on the original 1920x1080 dimensions.
rony123
Posts: 3
Joined: Tue Mar 21, 2017 1:11 pm

Re: don't understand crop

Post by rony123 »

I am still confused!
DiseaseDrugs
Last edited by rony123 on Fri Jul 07, 2017 10:13 pm, edited 1 time in total.
mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: don't understand crop

Post by mduell »

Crop 134 off each side of 1080, so the height is 812.

Scale 1920x812 down to 1280 wide which gets you 540 height.
Post Reply