# Why Synchronisation Matters

> What it means for cameras and IMUs to be in sync, how much timing error a capture rig can afford, and the vocabulary behind it: clock offset, clock drift in parts per million, exposure midpoint, rolling-shutter line time, latency and jitter. With worked examples.

Page: https://egocam.ai/sync/why-sync-matters/

A capture rig records several streams at once: cameras, an IMU, often audio, sometimes other devices worn by the same person or standing in the room. Every downstream step assumes it knows when each sample was taken. Stereo depth matches a left frame with a right frame. Visual-inertial tracking integrates the IMU between frames. Hand triangulation combines views of a hand that is moving. If the timing is wrong, all of these quietly get worse.

The [camera calibration guide](https://egocam.ai/calibration/camera-calibration/) and the [IMU calibration guide](https://egocam.ai/calibration/imu-calibration/) treat the time offset as part of calibration. This section goes further: what "in sync" means, how much error is acceptable, and every practical way to get there. This page sets out the terms and the numbers. The next pages cover [hardware sync](https://egocam.ai/sync/hardware-sync/), [software and visual sync](https://egocam.ai/sync/software-and-visual-sync/), and a [comparison of all the methods](https://egocam.ai/sync/sync-methods-compared/).

## Two meanings of "in sync"

People say *the cameras are in sync* and mean one of two different things.

**Synchronised exposure** means the cameras capture at the same instant. Their shutters open together, so frame 100 from one camera and frame 100 from another show the world at the same moment. This needs a shared trigger or frame-timing signal.

**Synchronised timestamps** means every sample carries a time from the same clock, or from clocks whose relationship is known. The frames may be taken at different moments, but you know exactly when each one was taken, so you can pair them or interpolate between them.

The two are independent. Meta's documentation for its Aria Gen 2 glasses describes a multi-device time alignment that puts every pair of glasses on a common time base, and then notes that playback alternates between devices: "This is expected and correct, because the host and client devices' RGB cameras are NOT trigger aligned by nature" ([Aria Gen 2 time alignment tutorial](https://github.com/facebookresearch/projectaria_tools/blob/main/examples/Gen2/python_notebooks/Tutorial_4_timestamp_alignment.ipynb)).

Timestamp sync without exposure sync leaves a residual error even if the clocks are perfect, because the frames themselves fall at different moments. The [RocSync](https://arxiv.org/abs/2511.14948) authors put it this way for clock-based methods: "the shutters themselves are not synchronized across cameras. As a result, residual misalignment of up to half a frame can remain even when pairing the closest timecodes between two video streams."

> **Diagram:** Two cameras at 30 frames per second whose frames start at different moments. A hand hits the table at 72 ms; camera A first shows it in the frame starting at 66.7 ms and camera B in the frame starting at 81.7 ms. Matching each event to the nearest frame leaves an error of up to one frame, 33 ms at 30 fps, unless the exposures themselves are synchronised.

## Terms used in this section

For the field guide's terms in one place, grouped by topic, see the [glossary](https://egocam.ai/reference/glossary/).

| Term | Meaning |
|---|---|
| Clock | A counter driven by an oscillator, usually a quartz crystal. Every camera, IMU and computer has its own. |
| Clock offset | The difference between two clocks' readings at the same instant. |
| Clock drift (skew) | The difference between two clocks' rates. With drift, the offset changes over time. |
| ppm | Parts per million. A rate error of 50 ppm means a clock gains or loses 50 µs every second. |
| Timestamp | The time a system attaches to a sample. Which instant it marks (start of exposure, end of readout, arrival at the computer) varies by device. |
| Exposure midpoint | The middle of the interval during which the sensor collects light. The usual best single instant to represent a frame. |
| Readout time | For a rolling-shutter sensor, the time taken to read every row of one frame, top to bottom. |
| Latency | A delay between when something happened and when it was timestamped. A constant latency is an offset. |
| Jitter | Random variation in that delay from sample to sample. |
| Phase | Where in its frame period a camera starts each frame. Two cameras at the same frame rate but different phase never expose together. |
| Hardware trigger | An electrical pulse that tells a camera when to capture. |
| Genlock | Locking a camera's frame timing to an external reference so that its frames start at chosen instants. |

## The error budget: how much timing error is too much

How much error a rig can tolerate depends on how fast things move in the image. The arithmetic is simple, and worth doing for your own rig.

### Worked example: a moving hand

Take a hand moving at 1 m/s. That speed is an assumption for the example, not a measured typical value; use the speeds from your own task.

| Timing error | Hand moves |
|---|---|
| 1 ms | 1 mm |
| 10 ms | 10 mm |
| 16.7 ms (half a frame at 30 fps) | 16.7 mm |
| 33.3 ms (one frame at 30 fps) | 33.3 mm |

Distance is speed times time, so the table is exact for that speed. If two cameras disagree by one frame at 30 fps, a triangulated fingertip can be off by several centimetres, which is larger than the fingertip.

### Worked example: a turning head

Head rotation moves the whole image at once. Assume a head turning at 100 °/s (again an example value) and a camera 1280 pixels wide with a 90° horizontal field of view and no distortion. The pinhole focal length is 640 / tan(45°) = 640 pixels, so near the image centre one degree is about 11 pixels.

| Timing error | Rotation | Image shift near the centre |
|---|---|---|
| 1 ms | 0.1° | about 1.1 px |
| 10 ms | 1° | about 11 px |
| 16.7 ms | 1.7° | about 19 px |
| 33.3 ms | 3.3° | about 37 px |

So a 1 ms error is about one pixel for this camera and motion, while a one-frame error is tens of pixels. Published examples make the same point at larger scale. [Olson (2010)](https://april.eecs.umich.edu/pdfs/olson2010.pdf): "Consider, for example, a robot rotating at a modest 90 deg/s that is observing an object 10 m away: a synchronization error of just 10 ms results in a projection error of 15.7 cm." [Faizullin, Kornilova and Ferrer (2021)](https://arxiv.org/abs/2107.02625) give a second: a "time offset of 10 milliseconds leads to rotation error of 3 degrees that corresponds to 50 cm shift between observations of an object located at 10 meter distance" for a platform turning at 5 radians per second.

The same arithmetic applies to stereo depth, as plain geometry. Stereo matching assumes the left and right images show the scene at one instant: depth comes from the horizontal shift (disparity) of a point between the two views. If the second camera exposes 1 ms after the first during this head turn, everything in its image has already moved by about 1.1 px. A horizontal shift of that kind adds straight onto the disparity and so biases the depth, and a vertical one pushes the match off the line where the matcher looks for it. One pixel of disparity is about a centimetre of depth at 0.65 m on RoboCap's front pair ([Mono vs Stereo](https://egocam.ai/camera-design/mono-vs-stereo/#what-a-second-camera-measures-depth-at-the-hands)), so on a similar camera even the 1 ms row of the table matters at arm's length. This is why the two cameras of a pair have to expose together, not just carry good timestamps.

### What timing errors do to tracking and 3D

Visual-inertial trackers fail outright when the camera–IMU offset is large and unmodelled. Testing on the EuRoC benchmark with artificial offsets, [Ling et al. (2018)](https://arxiv.org/abs/1810.05456) report: "OKVIS fails to track in sequence 2 ∼ 5 when the time offset is set to be 60 ms. We have tested different approaches under larger time offsets, such as 90 ms. However, neither OKVIS or VINS-Mono provides reasonable estimates."

Below that, an unmodelled offset degrades a tracker before it breaks it. The mechanism: visual-inertial odometry uses the IMU to predict the motion between two frames, and an offset makes that prediction describe a slightly different moment from the one the images show, so the two disagree by an amount that grows with how fast the head turns. [Qin and Shen (2018)](https://arxiv.org/abs/1808.00692v1) shifted the EuRoC IMU timestamps artificially and ran VINS-Mono with no temporal calibration: "The performance deteriorates dramatically when the time offset increases. The tolerance interval is only within 6 milliseconds." With the offset estimated online, accuracy no longer depended on it. Their full table, including OKVIS's trajectory error rising from 0.284 m at 5 ms to 2.805 m at 30 ms on one sequence, is on [Camera-IMU Time Offset](https://egocam.ai/calibration/camera-imu-time-offset/#how-much-offset-a-tracker-tolerates).

For multi-view hands, sub-frame timing helps even after frames are matched. RocSync triangulated 3D hands from cameras at 30 fps and found that interpolating to a common instant "reduced the mean Euclidean distance between poses from 26.07 mm without interpolation to 7.52 mm with interpolation" ([Meyer et al., 2025](https://arxiv.org/abs/2511.14948)).

## Clock offset and clock drift

Every device keeps time with its own oscillator, and no two run at exactly the same rate. The relationship between two clocks over a recording is, to a good approximation, a straight line:

time on clock B = (1 + drift) × time on clock A + offset

The **offset** is where the line starts. The **drift** is its slope minus one, usually given in parts per million. Measuring the offset once, at the start, removes the offset but not the drift.

### Worked example: how far 50 ppm drifts

A clock that is off by 50 ppm gains or loses 50 µs per second. Over an hour, that is 3600 × 50 µs = 180 ms.

| Rate difference | Drift per hour | Frames at 30 fps | Frames at 60 fps |
|---|---|---|---|
| 1 ppm | 3.6 ms | 0.11 | 0.22 |
| 20 ppm | 72 ms | 2.2 | 4.3 |
| 50 ppm | 180 ms | 5.4 | 10.8 |
| 100 ppm | 360 ms | 10.8 | 21.6 |

This matches a classic calculation from production sound. Writing about audio recorders with 50 ppm crystals, [Schneider (2009)](https://web.archive.org/web/2019/https://www.studiodaily.com/2009/09/keeping-audio-in-sync-wordclock-solutions/) worked out that "this equates to 5.4 frames per hour of drift". At 50 ppm, two 30 fps cameras drift half a frame apart in about 5.6 minutes.

The two clocks' errors add. [Fora Soft's guide to drift correction](https://www.forasoft.com/learn/audio-for-video/articles-audio/drift-correction-resampling-frame-drop) notes: "Consumer-grade crystals are typically rated at ±20 to ±50 ppm, so two ordinary devices can differ from each other by as much as 100 ppm in the worst case." For free-running timecode, the SMPTE standard sets a looser limit: a generator "without a reference" has a "frequency tolerance" of "±100 ppm" ([SMPTE ST 12-1:2014](https://pub.smpte.org/doc/st12-1/)).

### Measured drift on real devices

| Devices | Measured drift | Equivalent | Source |
|---|---|---|---|
| A microcontroller clock against the main (event camera) clock | "usually around 2 milliseconds per minute" | about 33 ppm | [TUM-VIE (Klenk et al., 2021)](https://arxiv.org/abs/2108.07329) |
| Most of 47 Android phone models | "less than 1.2 ms per minute" | under 20 ppm | [Akhmetyanov et al. (2021)](https://arxiv.org/abs/2107.00987) |
| Two eye-tracking glasses against the computer running LSL | fitted slopes of 0.99999247 and 0.99999221 | about 7.5 and 7.8 ppm | [Pupil Labs LSL relay guide](https://pupil-invisible-lsl-relay.readthedocs.io/en/latest/guides/device_sync.html) |
| Consumer headsets against motion capture | "can exceed 2 ms per minute for consumer-grade devices" | over 33 ppm | [Shu et al. (2025)](https://arxiv.org/abs/2512.07221) |

Sensors inside a device can be worse than its main clock. GoPro's [GPMF documentation](https://github.com/gopro/gpmf-parser) says the camera's audio and video share a crystal around 50 ppm, but "Camera internal sensors or data via a connected Bluetooth device, will have timing errors in the range ±1%." That is 10,000 ppm, which is why GoPro tells parsers to derive the IMU sample rate from sample counts against the video clock rather than trust the nominal rate.

### One sync point is not enough

Because of drift, a single sync at the start of a session decays. Tentacle Sync's guide to setting GoPro timecode by QR code warns: "Keep in mind that time drifting over the day depends on GoPros internal clock (unless you re-sync your GoPro)" ([Tentacle Sync](https://support.tentaclesync.com/hc/en-us/articles/6542891685393-Tentacle-Timebar-App-QR-code-GoPro-HERO-7-8-9-10-11-experimental)). GoPro's own [precision time page](https://gopro.github.io/labs/control/precisiontime/) says: "As the camera’s internal clock will drift slowly over time, use this QR Code just before your multi-camera shoot for the best synchronization."

The fix is two sync points, one at the start and one at the end, and a straight line between them. With two points you get both the offset and the drift, and every frame in between can be corrected.

> **Diagram:** Clock drift between two cameras over an hour. Sync readings at the start give an offset of about 1240 ms and readings at the end, sixty minutes later, about 1312 ms. A straight line through both gives the offset for every frame in between; 72 ms of drift in an hour means the clocks run 20 parts per million apart.

### Worked example: drift from two sync points

Suppose camera B reads 1240 ms ahead of camera A at the start of a recording and 1312 ms ahead 60 minutes later. The drift is (1312 − 1240) ms ÷ 3,600,000 ms = 20 × 10⁻⁶, or 20 ppm. Halfway through, at 30 minutes, the offset is 1240 + 72 × 0.5 = 1276 ms. If you had only used the starting offset, frames near the end would be 72 ms out, more than two frames at 30 fps.

The straight-line model assumes the clock rate stays steady. It does not, exactly: the [chrony FAQ](https://chrony-project.org/faq.html) notes that the stability of a computer's clock "mainly depends on the temperature sensitivity of the crystal oscillator and the maximum rate of the temperature change". Long sessions, or rigs that warm up on someone's head, benefit from more than two sync points, or from continuous sync.

## Which instant a timestamp marks

A frame is not captured in an instant. The sensor collects light for the exposure time, then the image is read out, processed and sent. A timestamp can mark any of these moments, and different devices choose differently.

The Linux video API makes the choice explicit. [V4L2's buffer flags](https://docs.kernel.org/userspace-api/media/v4l/buffer.html) distinguish "End Of Frame. The buffer timestamp has been taken when the last pixel of the frame has been received or the last pixel of the frame has been transmitted" from "Start Of Exposure. The buffer timestamp has been taken when the exposure of the frame has begun." The USB Video Class specification defines its presentation timestamp as "the source clock time in native device clock units when the raw frame capture begins" ([UVC 1.5](https://www.usb.org/document-library/video-class-v15-document-set)).

### Exposure midpoint

For motion, the instant that best represents a frame is the middle of the exposure. [Furgale, Rehder and Siegwart (2013)](https://furgalep.github.io/bib/furgale_iros13.pdf), the paper behind Kalibr, state that "The middle of the exposure time constitutes the ideal point to timestamp an image".

The reason is how a sensor records motion. A pixel adds up the light it receives over the whole exposure, so a moving point leaves a short streak, and for steady motion the centre of that streak is where the point was halfway through the exposure. The blur is symmetric about that centre, so a detector that locates the blurred feature by its centre reports the position at the mid-exposure instant. A timestamp at the start or the end of the exposure is then off by half the exposure time, and the error changes whenever the exposure does. In their experiments the images were stamped at the start of exposure, so the estimated camera–IMU offset grew with exposure time, as they expected: "fixed communication and filter delays plus half the exposure time".

### Worked example: cameras with different exposure times

Two cameras are triggered at exactly the same instant. One exposes for 1 ms, the other for 10 ms. Their exposure midpoints are 0.5 ms and 5 ms after the trigger, so the frames represent instants 4.5 ms apart, even though the trigger was perfect. With auto-exposure, the gap changes from frame to frame. The [hardware sync page](https://egocam.ai/sync/hardware-sync/#exposure-time-and-shutter-sync) covers the fix.

> **Diagram:** Two cameras triggered at the same instant but exposing for 1 ms and 10 ms. Their exposure midpoints, the instants the frames best represent, are 4.5 ms apart (top). Starting the longer exposure half its length earlier, as exposure-compensated triggering does, puts both midpoints at the same instant (bottom).

## Rolling-shutter line timing

Most CMOS sensors have a rolling shutter: they expose and read the image one row at a time. [Gyroflow's documentation](https://old-docs.gyroflow.xyz/tech/rollingshutter/) describes it plainly: "Rolling shutter artifacts are caused by camera sensors reading lines sequentially instead of simultaneously (global shutter)."

Each row therefore has its own capture time. If a frame's timestamp marks the first row, the last row was captured one readout time later. The readout time is the number of rows times the row time. One measured example: the authors of [Gaussians on Fire (2025)](https://arxiv.org/abs/2511.22459) observed a row readout time of 2.85 µs on their GoPro Hero 13 Black setup. In the phone experiment of [Ansari et al. (2019)](https://arxiv.org/abs/1812.09366), "it takes 3.3 ms to capture the fraction of the scene shown".

This matters for sync in three ways:

- **Different cameras, different readout.** Two cameras exposing their first rows together still disagree at their last rows if their readout times or scan directions differ.
- **Which row is *the* time.** A common approximation treats a rolling-shutter frame as a global-shutter frame taken at its middle row. [Ling et al. (2018)](https://arxiv.org/abs/1810.05456) approximate "the rolling-shutter images ... with global-shutter images captured at the ‘middle-row’ readout time".
- **Readout as a measuring tool.** Because each row is a separate moment, a fast-blinking light filmed by a rolling-shutter camera leaves bands whose position gives time to within microseconds. The [visual sync section](https://egocam.ai/sync/software-and-visual-sync/#led-and-light-flash-sync) uses this.

You can measure readout time yourself. Gyroflow: "One approach is by recording a rapidly flashing source of light with a known frequency or pulse width, and analyzing the resulting image." GoPro cameras record it: the GPMF track includes `SROT`, "Sensor Read Out Time" ([gpmf-parser](https://github.com/gopro/gpmf-parser)).

## Latency and jitter

Between the moment a sample is taken and the moment it is timestamped lies a delay. Its constant part is **latency**; its random part is **jitter**. They need different treatment.

The authors of the Lab Streaming Layer model an observed timestamp as the true time plus three terms: a fixed per-device delay (τ), the averaged clock offset between computers (OFS) and zero-mean noise (ε) ([Kothe et al., 2025](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12434378/)). The fixed delay can only be measured, never inferred from the stream itself: LSL "cannot itself learn or estimate whatever on-device delays within each recording device occurred".

- **Latency** shifts every sample by the same amount. It looks exactly like a clock offset, and is removed the same way, by calibrating it once. A real example: in TUM-VIE, a microcontroller timestamped both images and IMU samples, but "due to the IMU readout delay, there exits a constant offset of 4.77 milliseconds" ([Klenk et al., 2021](https://arxiv.org/abs/2108.07329)).
- **Jitter** scatters samples around their true times. It cannot be calibrated away, only reduced by timestamping closer to the sensor, or smoothed by fitting a model to many samples.
- **Drift** is neither. Fora Soft gives a good test: "A slow, monotonic slide is always a clock mismatch, never network jitter."

Jitter is worst when a computer stamps data on arrival. Faizullin et al. measured a LiDAR whose packets arrive every 1328 µs: stamped by ROS on arrival, the period varied with a standard deviation of 82.64 µs and an extreme of 8931.40 µs, against 1.35 µs when a microcontroller stamped them ([Faizullin et al., 2021](https://arxiv.org/abs/2107.02625)). Transport settings matter too. Olson notes that the common FTDI USB-to-serial converter "artificially waits 16ms before transmitting data" by default, a latency timer that on Linux "can be reduced to 1 ms" ([Olson, 2010](https://april.eecs.umich.edu/pdfs/olson2010.pdf)).

Kalibr's [camera–IMU guide](https://github.com/ethz-asl/kalibr/wiki/camera-imu-calibration) shows what bad timestamps look like in practice: "a burst of IMU are send at a rate of 1ms with gaps of 6ms between (caused by sending messages in buffers and directly republishing them)." Its verdict: "If you have this, than likely your hardware is messed up and you will run into calibration problems."

## Sources

- Meta Project Aria: [Gen 2 device time alignment tutorial](https://github.com/facebookresearch/projectaria_tools/blob/main/examples/Gen2/python_notebooks/Tutorial_4_timestamp_alignment.ipynb).
- Meyer, J. et al. (2025). [RocSync: Millisecond-accurate temporal synchronization for heterogeneous camera systems](https://arxiv.org/abs/2511.14948). arXiv.
- Olson, E. (2010). [A passive solution to the sensor synchronization problem](https://april.eecs.umich.edu/pdfs/olson2010.pdf). *IEEE/RSJ IROS*.
- Faizullin, M., Kornilova, A. and Ferrer, G. (2021). [Open-source LiDAR time synchronization system by mimicking GNSS-clock](https://arxiv.org/abs/2107.02625). arXiv.
- Qin, T. and Shen, S. (2018). [Online temporal calibration for monocular visual-inertial systems](https://arxiv.org/abs/1808.00692v1). *IEEE/RSJ IROS*.
- Ling, Y. et al. (2018). [Modeling varying camera-IMU time offset in optimization-based visual-inertial odometry](https://arxiv.org/abs/1810.05456). *ECCV*.
- Schneider, P. (2009). [Keeping audio in sync: wordclock solutions](https://web.archive.org/web/2019/https://www.studiodaily.com/2009/09/keeping-audio-in-sync-wordclock-solutions/). StudioDaily (archived copy).
- Fora Soft. [Drift correction: resampling, frame drop, frame insertion](https://www.forasoft.com/learn/audio-for-video/articles-audio/drift-correction-resampling-frame-drop).
- SMPTE. [ST 12-1:2014, Time and Control Code](https://pub.smpte.org/doc/st12-1/).
- Klenk, S., Chui, J., Demmel, N. and Cremers, D. (2021). [TUM-VIE: The TUM stereo visual-inertial event dataset](https://arxiv.org/abs/2108.07329). *IEEE/RSJ IROS*.
- Akhmetyanov, A. et al. (2021). [Sub-millisecond video synchronization of multiple Android smartphones](https://arxiv.org/abs/2107.00987). *IEEE Sensors*.
- Pupil Labs. [Pupil Invisible LSL relay: time synchronization between two devices](https://pupil-invisible-lsl-relay.readthedocs.io/en/latest/guides/device_sync.html).
- Shu, Z., Bei, S., Li, L. and Chen, Z. (2025). [Spatiotemporal calibration and ground truth estimation for high-precision SLAM benchmarking in extended reality](https://arxiv.org/abs/2512.07221). arXiv.
- GoPro. [gpmf-parser and the GPMF specification](https://github.com/gopro/gpmf-parser).
- Tentacle Sync. [Tentacle Timebar app QR code and GoPro HERO 7–11](https://support.tentaclesync.com/hc/en-us/articles/6542891685393-Tentacle-Timebar-App-QR-code-GoPro-HERO-7-8-9-10-11-experimental).
- GoPro Labs. [Precision date and time (local)](https://gopro.github.io/labs/control/precisiontime/).
- Linux kernel documentation. [V4L2 buffers and buffer flags](https://docs.kernel.org/userspace-api/media/v4l/buffer.html).
- USB Implementers Forum. [USB Video Class 1.5 document set](https://www.usb.org/document-library/video-class-v15-document-set).
- Furgale, P., Rehder, J. and Siegwart, R. (2013). [Unified temporal and spatial calibration for multi-sensor systems](https://furgalep.github.io/bib/furgale_iros13.pdf). *IEEE/RSJ IROS*.
- Gyroflow. [Rolling shutter](https://old-docs.gyroflow.xyz/tech/rollingshutter/).
- Nazarenus, J. et al. (2025). [Gaussians on Fire](https://arxiv.org/abs/2511.22459). arXiv.
- Ansari, S., Wadhwa, N., Garg, R. and Chen, J. (2019). [Wireless software synchronization of multiple distributed cameras](https://arxiv.org/abs/1812.09366). *IEEE ICCP*.
- Kothe, C. et al. (2025). [The lab streaming layer for synchronized multimodal recording](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12434378/). *Imaging Neuroscience*.
- chrony. [Frequently asked questions](https://chrony-project.org/faq.html).
- Kalibr: [camera–IMU calibration](https://github.com/ethz-asl/kalibr/wiki/camera-imu-calibration), ETH Zurich ASL.
