Getting Conservative Cropping Values

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
DrXenos
Bright Spark User
Posts: 278
Joined: Sat Mar 16, 2013 1:19 pm

Getting Conservative Cropping Values

Post by DrXenos »

Description of problem or question:
I'd like to be able to get the conservative cropping mode values a priori like you can in the Windows GUI. But I don't know if I'm doing it wrong or if it's just not possible (in which case I will submit a request on GitHub).

Steps to reproduce the problem (If Applicable):
I've tried dumping the JSON created by HandBrake for both auto and conservative cropping modes on a Blu-ray I know that generates different values for each (at least the Windows GUI does). The resulting JSON is identical.

So, is these even possible or does the scan just ignore the --crop-mode option?

Thanks for your time.

Command Line:

Code: Select all

HandBrakeCLI.exe --json --title 0 --input "Disc" > d:\scan1.txt 2>&1
HandBrakeCLI.exe --json --title 0 --crop-mode conservative --input "Disc" > d:\scan2.txt 2>&1

HandBrake version (e.g., 1.0.0):
20231018071745-43c78c3d5-master



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10 Pro 10,0,19045 (22H2)



HandBrake Activity Log ***required*** (see How-to get an activity log)

Scans are too large for forum, so I attached them. Scan 1 is with cropping mode auto. Scan 2 is with cropping mode conservative. The JSON part is identical.
Attachments
scan2.txt
(203.41 KiB) Downloaded 170 times
scan1.txt
(203.6 KiB) Downloaded 176 times
mduell
Veteran User
Posts: 8207
Joined: Sat Apr 21, 2007 8:54 pm

Re: Getting Conservative Cropping Values

Post by mduell »

Which of the many playlists in your disk image are you looking at?
DrXenos
Bright Spark User
Posts: 278
Joined: Sat Mar 16, 2013 1:19 pm

Re: Getting Conservative Cropping Values

Post by DrXenos »

There are a few that will have different cropping for auto vs conservative in the GUI.
Titles 21 (01002.mpls), 26 (01007.mpls), and 29 (01010.mpls) are a examples.

Thanks.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: Getting Conservative Cropping Values

Post by s55 »

the --crop-mode doesn't do anything during the scan since both sets of values are always populated on the JSON return.

conservative == loosecrop
DrXenos
Bright Spark User
Posts: 278
Joined: Sat Mar 16, 2013 1:19 pm

Re: Getting Conservative Cropping Values

Post by DrXenos »

s55 wrote: Wed Mar 06, 2024 5:18 pm the --crop-mode doesn't do anything during the scan since both sets of values are always populated on the JSON return.

conservative == loosecrop
Oh, nice, thank you!!
DrXenos
Bright Spark User
Posts: 278
Joined: Sat Mar 16, 2013 1:19 pm

Re: Getting Conservative Cropping Values

Post by DrXenos »

Just a follow up: this works great. Plus, I love the way you guys have implemented it, so a double scan is unnecessary.

Thanks.
Post Reply