Full-frame motion detection - where to start?

You can’t track the camera. You can only track what it sees and from that figure out if the camera has moved and then somehow calculate how much.