Crop movie to fit screen from top to bottom of a screen

Discussion of the HandBrake command line interface (CLI)
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
macgyver2004
Posts: 9
Joined: Wed Oct 16, 2013 7:38 am

Crop movie to fit screen from top to bottom of a screen

Post by macgyver2004 »

In commandline I would like to set the crop parameters that
when encoding any film it will fill all the screen and if needed it will cut from left and fight.
Like there are movies that are very wide and they have black bars on top and bottom.
I would like to get rid of those bars through crop and recode 1080p->720p.

Woodstock
Veteran User
Posts: 3666
Joined: Tue Aug 27, 2013 6:39 am

Re: Crop movie to fit screen from top to bottom of a screen

Post by Woodstock »

You will have to set up manual cropping values, because the automatic crop tries to preserve the aspect ratio.

rollin_eng
Veteran User
Posts: 3469
Joined: Wed May 04, 2011 11:06 pm

Re: Crop movie to fit screen from top to bottom of a screen

Post by rollin_eng »

You would need to write a script to scan the file first, then you could parse out the auto-cropping and aspect ratio. You could then use the results to calculate your cropping.

In short, not easy.

Post Reply