I want to rewrite/refactor this cropdetect code for ffmpeg in my helper cli, but...

@bearmine@gamepad.club

I want to rewrite/refactor this cropdetect code for ffmpeg in my helper cli, but my brain is in mush mode.