Page 1 of 1

obtaining auto-crop detection values

Posted: Fri Jan 27, 2023 10:06 am
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.

Re: obtaining auto-crop detection values

Posted: Sat Jan 28, 2023 12:01 am
by mduell
HandBrakeCLI --input yourfile.foo -t 0 | grep autocrop > outfile.txt

Re: obtaining auto-crop detection values

Posted: Sat Jan 28, 2023 4:02 am
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.

Re: obtaining auto-crop detection values

Posted: Sat Dec 16, 2023 3:40 am
by nathanz99
HandBrakeCLI.exe -i video.mkv --scan

Usually I use powershell to parse the output messages.