You don't need 22 players, you're over-complicating it. You need the deepest outfield player on each side, a wide field lens and as high a frame rate as possible. The tracking part is easy.
No, you're over-simplifying it. You need to be able to track in three dimensions otherwise it's impossible to judge whether it is entirely in line or not. That's precisely the reason you need so many cameras for goal line technology which in principle is just about one fixed line, and they then need calibrating.
Just the ball tracking for cricket or tennis too needs multiple cameras calibrated to follow that, which don't always pick up properly, and which cannot operate outside their narrow field. This is why you can't use Hawkeye to work out low catches after taking the edge, even though it nominally should be tracking the ball path.
If you want to advocate a camera following the line of the last defender, that's fine. But it doesn't help because it can't possibly do anything other than follow.