Video synchronization based on spatial representation between trajectory points and their background images