Thanks, you reposted my script? didn't change anything?
Why letterbox? PadInwards is only a crop() and addborders() line.
I added another check to avoid evaluating borders of 4 pixels for every frame, I will keep updating in its original
thread.
Code:
FalPos = FalPos ? ((x1-pad > 2 || x2-pad > 2 || y1-pad > 2 || y2-pad > 2 )
\ ? ((AverageLuma(L4) < thr2) || (AverageLuma(R4) < thr2) || (AverageLuma(T4) < thr2) || (AverageLuma(B4) < thr2)
\ ? true : false) : false) : false