cropdetect

ffmpeg -i "${INPUT_VIDEO}" -vf cropdetect -f null -

The output will be something like:

[Parsed_cropdetect_0 @ 0x556af7cd4cc0] x1:96 x2:671 y1:0 y2:431 w:576 h:432 x:96 y:0 pts:566784 t:44.280000 crop=576:432:96:0             

Take the crop=, and pass it as a video filter.

ffmpeg -i "${INPUT_VIDEO}" -vf crop=567:432:96:0 "${OUTPUT_VIDEO}"