Skip to content

C203 Lesson 3: Clocks Across Devices

A wrist camera that moves independently of the head, a room camera on a tripod and a second wearer’s glasses cannot share a wire with the head rig. Each counts time from its own crystal. This lesson covers the methods that put separate devices on one clock before or during recording; lesson 4 covers aligning recordings after the fact. The full treatment is on Syncing Several Devices and PTP and Network Time Sync.

See also the glossary’s synchronisation section.

Term Meaning
Time domain The clock a timestamp was taken on; timestamps from different time domains cannot be compared directly
PTP (IEEE 1588) A protocol that synchronises clocks over Ethernet by exchanging timestamped messages
Grandmaster clock The root time source of a PTP network
PHC PTP hardware clock: a clock on the network card itself
Hardware timestamping The network card stamps packets as they cross the wire, rather than the operating system
NTP Network Time Protocol; chrony is one implementation
SMPTE timecode A label on every frame of hours, minutes, seconds and frames, standardised as SMPTE ST 12
LTC Linear timecode: SMPTE timecode carried as an audio-band signal

The field guide groups how published rigs share time across devices into six patterns (Six patterns in published rigs):

Pattern How time is shared Main limit
One clock on one device One trigger and one clock drive every sensor on the board Only covers sensors wired to that board
Shared timecode or sync device A timecode generator or sync box supplies the same time to every recorder A receiver or sync input on every device
One host records every camera A phone or headset records its own camera and USB wrist cameras, logging arrival times Arrival timestamps; cameras free-run at different rates
Network or radio between devices Devices exchange time or data packets over Wi-Fi or radio Aligns clocks, not exposures
Visual event at start and end Every camera films the same QR video or LED clock Needs operator discipline; recovery when it fails
Latency matching at inference Each stream is shifted by its measured delay before the policy sees it Delays must be re-measured when the setup changes
Six ways published rigs share time across devices Six small panels. One: one clock on one board, which triggers every sensor wired to it, as on RoboCap; it only covers sensors on that board. Two: a shared timecode generator or sync box feeding every recorder, as in Ego-1K and Nymeria; every device needs an input for it. Three: one host, such as a phone or headset, records its own camera and USB cameras, as EgoKit does; it logs arrival times while the cameras free-run. Four: devices exchange time packets over Wi-Fi or radio, as Aria's TICSync and SubGHz do; this aligns clocks, not exposures. Five: every camera films the same visual event, a QR code or LED clock, at the start and end, as in Ego-Exo4D and RocSync; it depends on operator discipline. Six: latency matching, where each stream is shifted by its measured delay before a policy sees it, as in UMI, DexUMI and HoMMI; the delays must be re-measured whenever the setup changes. One clock, one board e.g. RoboCap board + clock limit: only sensors wired to it Shared timecode e.g. Ego-1K, Nymeria timecode limit: an input on every device One host records all e.g. EgoKit host USBUSB limit: arrival times, free-running Network or radio e.g. Aria TICSync, SubGHz time packets over Wi-Fi or radio limit: clocks, not exposures Visual event, start and end e.g. Ego-Exo4D, RocSync limit: operator discipline Latency matching e.g. UMI, DexUMI, HoMMI shift each stream by its measured delay limit: re-measure on any change
The six patterns published rigs use to share time across devices, each with a published example (the examples are tabled on Syncing Multiple Devices). Only the first, one trigger and one clock on one board, aligns exposures by construction; network and radio sync align clocks, and visual events and latency matching align streams after the fact.

The decision mostly follows one question from Sync Methods Compared: are the sensors on one rig you can wire, on separate devices you control, or on cameras you cannot modify? Lesson 2 covered the first. This lesson covers the second. Lesson 4 covers the third, and the visual events every set-up should add anyway.

PTP exchanges timestamped messages with a master clock and corrects both the offset and the rate of every other clock on the network (How PTP disciplines a network of clocks).

The PTP delay request-response exchange Two timelines running down the page, the master clock on the left and a camera's clock on the right. The master sends a Sync message at time t1 on its clock; the camera receives it at t2 on its own clock. In two-step mode a Follow_Up message then carries the exact value of t1. The camera sends a Delay_Req at t3; the master receives it at t4 and returns t4 in a Delay_Resp message. With all four timestamps the camera computes the mean path delay as ((t2 minus t1) plus (t4 minus t3)) divided by 2, and its offset from the master as ((t2 minus t1) minus (t4 minus t3)) divided by 2, then corrects its clock. The calculation assumes the delay is the same in both directions; any asymmetry, for example a switch that queues packets for varying times, turns into offset error. Master clock Camera clock t1 t2 t3 t4 Sync Follow_Up (carries t1) Delay_Req Delay_Resp (carries t4) time mean path delay [(t2 − t1) + (t4 − t3)] / 2 camera offset from master [(t2 − t1) − (t4 − t3)] / 2 Assumes the delay is equal both ways. Any asymmetry, such as a switch queuing packets for varying times, becomes offset error.
The IEEE 1588 delay request-response exchange. Four timestamps, two taken on each clock, give both the path delay and the camera's offset from the master, which the camera then corrects. The maths assumes the delay is the same in both directions, which is why non-PTP switches that queue packets unevenly show up as offset error.

Its accuracy depends on where packets are timestamped, because the protocol computes each clock’s offset from the send and receive times of its messages, assuming the delay is the same in both directions; operating-system delay that varies from packet to packet breaks that assumption and becomes offset error. Red Hat: “Hardware PTP support provides better accuracy since the NIC can time stamp the PTP packets at the exact moment they are sent and received while software PTP support requires additional processing of the PTP packets by the operating system” (Hardware timestamping and the network). It adds: “When used in conjunction with hardware support, PTP is capable of sub-microsecond accuracy, which is far better than is normally obtainable with NTP”, and non-PTP switches “will often cause an increase in jitter or introduce an asymmetry in the delay resulting in synchronization inaccuracies” (RHEL 7: Configuring PTP using ptp4l). PTP needs Ethernet, so it suits fixed cameras and recording computers around a capture space more than worn devices.

On Linux, PTP runs with linuxptp. Three programs do most of the work (Linux recording PCs with linuxptp):

  • ptp4l runs PTP on a network port. Its manual: -H selects hardware timestamping, “This is the default time stamping”; -S selects software timestamping; -m prints messages to standard output (ptp4l(8)).
  • phc2sys copies time between the network card’s clock and the system clock, which is what most recording software stamps frames with. Red Hat: “The phc2sys program is needed only with hardware time stamping, for synchronizing the system clock to the PTP hardware clock on the network interface card”.
  • pmc, the “PTP management client”, queries a running ptp4l.

Two cautions. Red Hat: “Do not run more than one service to set the system clock’s time at the same time”. And a PTP network agrees with itself, not necessarily with the world: Basler notes that if no device follows world time, “the network will operate in the arbitrary timescale mode (ARB)” (Basler). To line PTP-stamped video up with devices on other clocks, feed the grandmaster from GPS or NTP, or add a visual sync event every device sees (PTP time is not wall-clock time).

GigE Vision cameras can use PTP for common timestamps and, with scheduled action commands, for exposure at a set future time. The vendor figures and Basler’s lock-check procedure are on Enabling and verifying PTP on GigE Vision cameras.

Many small computers and switches have no PTP support. chrony, an NTP implementation, is then the practical choice, and on a local network it can do better than NTP’s reputation: with “local hardware timestamping, good network switches, and even shorter polling intervals, a sub-microsecond accuracy and stability of a few tens of nanoseconds might be possible” (chrony FAQ). Without them, accuracy depends on network jitter: in chrony’s own simulated comparison, a client’s error was 35 ± 8 µs with 10 µs of jitter and 1603 ± 447 µs with 10 ms of jitter. A capture space usually serves time from one of its own machines; the field guide gives the chrony.conf directives.

Clock sync of either kind aligns the computers’ clocks. It does not align when a USB camera actually exposed: if frames are stamped on arrival, the USB and operating-system delays from lesson 2 remain.

SMPTE timecode labels every frame: “Each frame shall be identified by a unique and complete address consisting of an hour, minute, second, and frame number” (SMPTE ST 12-1:2014). Small generators attached to each camera keep every device on a shared source; published datasets such as Assembly101 and HOT3D synchronised their cameras this way (Shared timecode or a sync device). Three properties matter (SMPTE timecode):

  • Frame-level resolution. Timecode says which frame, not where within it.
  • Drop-frame counting. At 29.97 fps, counting as if it were 30 fps drifts by about 3.6 s per hour, which drop-frame mode corrects by skipping frame numbers.
  • A start stamp is not a clock. A file that stores timecode once, at the start, drifts with the recorder’s own clock.

Tentacle Sync recommends a timecode device over a one-off QR sync for long days: “So for long running shoots it’s always better to attach a SYNC E directly to the GoPro” (Tentacle Sync).

GPS timecode suits outdoor capture. GoPro Labs firmware’s GPS time sync updates the camera’s clock “If there is a good GPS signal”, and writes the timecode track at the end of capture; GoPro’s stated accuracy is “In limited testing, sync is typically within a frame or two, but your precision my vary” (GoPro Labs: GPS time synchronization).

  • Network or radio. Project Aria’s Gen 1 TICSync over Wi-Fi is reported as “better than 1ms on average after approximately 45 seconds warm-up” (About TICSync); Gen 2 broadcasts a SubGHz radio signal from a host pair of glasses (If you use Project Aria glasses). Aria glasses are research devices, an entry point rather than the current shape of capture rigs, but many public datasets use them.
  • Lab Streaming Layer measures each computer’s clock offset repeatedly and “employs the clock filter algorithm of the Network Time Protocol (NTP)”; it cannot see delays inside devices, which have to be measured separately (Kothe et al., 2025; Lab Streaming Layer).
  • One host records every camera. EgoKit plugs USB wrist cameras into the phone or headset that records the head view, and writes “a log.txt listing per-frame timestamps for post-hoc alignment”. Its authors name timing as open work, and their workaround is to have the cameras film “a millisecond-level timer displayed on a webpage” (Yu et al., 2026).

Every clock method leaves exposures unaligned

Section titled “Every clock method leaves exposures unaligned”

All of these align clocks, timestamps or start commands. None makes free-running cameras expose together, so two cameras on perfectly synchronised clocks can still expose up to half a frame apart: 16.7 ms at 30 fps (From a shared clock to simultaneous exposure). Lesson 4 shows how to measure the remaining error and interpolate across it when the pipeline needs sub-frame timing.

  1. Your room cameras and recording PC run ptp4l with hardware timestamping, but the recording software stamps frames with the system clock. What is missing?
  2. Why might a PTP network’s time disagree with a GoPro whose clock was set from a phone?
  3. A camera stores its SMPTE timecode once, at the start of each file. What happens over a long take?
  4. Your wrist camera is a USB camera on the same phone that records the head view. Which pattern is this, and what limits it?
  5. Your devices are all on chrony with good local hardware. Can you skip the start-and-end sync events?
  1. phc2sys, to copy the network card’s clock into the system clock (with hardware timestamping, ptp4l steers the card’s clock, not the system clock).
  2. Without a grandmaster that follows world time, a PTP network runs on an arbitrary timescale. Feed the grandmaster from GPS or NTP, or add a visual event both see.
  3. The file’s frames drift with the recorder’s own clock after that one stamp.
  4. One host records every camera. Its timestamps are arrival times on the host’s clock, with USB and OS jitter, and the cameras free-run at different rates.
  5. No. Clock sync aligns clocks, not exposures, and a visual event at both ends is also how you check the result and recover when a device misbehaves.