obtaining auto-crop detection 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
dennisqwilson
Posts: 2
Joined: Fri Jan 27, 2023 9:53 am

obtaining auto-crop detection values

Post by dennisqwilson »

Handbrake newbie here, though I'm an intermediate-level ffmpeg scripter. Is there any way, using HandbrakeCLI, to output the "autocrop" black bar detection readings to a text file? I have no need to do any further processing, just read the cropping values. Thanks.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: obtaining auto-crop detection values

Post by mduell »

HandBrakeCLI --input yourfile.foo -t 0 | grep autocrop > outfile.txt
dennisqwilson
Posts: 2
Joined: Fri Jan 27, 2023 9:53 am

Re: obtaining auto-crop detection values

Post by dennisqwilson »

Thank you so much. I should have mentioned that I work in Windows, but I'll see if I can't modify your command line to work with "findstr" instead of grep and report back.
nathanz99
New User
Posts: 1
Joined: Sat Dec 16, 2023 3:36 am

Re: obtaining auto-crop detection values

Post by nathanz99 »

HandBrakeCLI.exe -i video.mkv --scan

Usually I use powershell to parse the output messages.
Post Reply