Synch video frames with tracking data?

I’m curious about this too. It’s possible that it might require more low-level hardware access than regular webcam APIs provide though. You’d need to be able to know exactly when the camera exposes the frames and be able to tie the timestamp to each individual frame.