QR, LED and Flash Sync
Current multi-camera head rigs trigger their own cameras from one electrical signal (see hardware sync and current capture rigs). Visual sync is for everything a wire does not reach. Recent public examples: EgoKit records a headset or phone with two USB wrist cameras that share no trigger line, and its authors’ workaround is “to let the three cameras simultaneously capture a millisecond-level timer displayed on a webpage” (Yu et al., 2026). The Universal Manipulation Interface (UMI) syncs the GoPros on two handheld grippers with a QR code (Chi et al., 2024). RocSync synced over 25 cameras in operating rooms, including head-worn Aria glasses, GoPros, iPhones and an infrared tracker, with an LED clock (Meyer et al., 2025).
The idea is the same in every case. Show every camera something whose time is known, find the frames where each camera saw it, and you have each camera’s clock offset; do it twice and you also have its drift. The overview of these methods, with the table of QR error sources, is on software and visual sync; the accuracy of every method side by side is on sync methods compared. This page goes into how each visual method works and what its published tests actually measured.
Visual sync methods at a glance
Section titled “Visual sync methods at a glance”| Method | How it encodes time | Published result | Shows exposure length? | All cameras must see it at once? |
|---|---|---|---|---|
| QR code read by the camera | Camera firmware reads a QR code and sets its clock | GoPro’s own figure, “<50 ms”, as cited by RocSync; UMI states ±1/60 s | No | No |
| QR code or timer decoded from footage | Cameras film a screen showing the time; frames decoded afterwards | Depends; see the accuracy limits | No | No |
| Light switched on and off | A sudden change in scene brightness | 3.09 px stereo error at 30 fps in RocSync’s ideal single-lamp test | No | Yes |
| Random-blink LED (ROOLS) | One LED blinks a random on/off sequence | “up to subframe interval precision” (Zhao and Chen, 2009) | No | Yes, while it blinks |
| Blink-coded infrared markers | Each LED blinks an ID and a shared timecode | Used to calibrate camcorders in time and space (Yamazoe et al., 2004) | No | No |
| LED clock (RocSync) | A ring of 100 LEDs stepping every millisecond, plus a binary counter | “1.34 ms RMSE” against hardware sync (Meyer et al., 2025) | Yes | No |
| Rolling-shutter LED strips | LED strips switched in sequence; the row where brightness changes gives sub-frame time | “approximately 15 µs” for their setup (Nazarenus et al., 2025) | Yes, with a characterised sensor | Yes, for those cameras |
The stereo errors in this table and below come from one RocSync experiment, described in the GoPro test. They are reprojection errors in pixels, not times, and only compare methods within that test.
QR timecodes and screen timers
Section titled “QR timecodes and screen timers”There are two different workflows, and they fail in different ways.
The camera reads the code
Section titled “The camera reads the code”GoPro Labs firmware lets a camera read settings and commands from QR codes. One of them sets the clock: “Once you’ve scanned this code with your GoPro, it will have the time and date locked in - accurate to the nearest second” (GoPro Labs walkthrough). For multi-camera work GoPro offers an animated version on its precision date and time page.
Tentacle Sync’s Timebar app shows a timecode QR code that the camera reads so that it “synchronizes its internal timecode generator to the displayed time”; the timecode is then stored as metadata in the video files. HERO 12 and 13 do this with stock firmware (“GoPro HERO 12 and 13 supports this QR code timecode out of the box”), though setting the frame rate by QR still needs Labs firmware; HERO 7 to 11 need Labs firmware, and Tentacle marks that article “experimental”. Tentacle also compensates for the camera’s reaction time: “GoPros have a latency between “seeing” the QR-code and writing it to the internal clock. We can compensate this gap by sending an offset along with the TC” (Tentacle: HERO 7–11, Tentacle: HERO 12/13).
UMI uses this workflow for its two-gripper setup. Its authors write that GoPro Labs firmware “recognizes the global timestamp encoded in the QR code and calibrates its internal clock with ±1/60 second accuracy” (Chi et al., 2024).
What this gives you is a clock set once. Three limits follow:
- The setting is coarse. RocSync quotes GoPro’s documentation as stating “a synchronization accuracy of <50 ms when using their dynamic QR codes”.
- The clock then drifts. RocSync: “GoPro [17] reports that their cameras develop a noticeable time offset as a result of drift 60–90 minutes after synchronization.” Tentacle: “Keep in mind that time drifting over the day depends on GoPros internal clock (unless you re-sync your GoPro). So for long running shoots it’s always better to attach a SYNC E directly to the GoPro.”
- Shutters are not aligned. Timecode is per frame, so “residual misalignment of up to half a frame can remain even when pairing the closest timecodes between two video streams” (Meyer et al., 2025).
Outdoors, GoPro cameras with GPS can set their clocks from satellite time instead; see GPS timecode.
You decode the code from the footage
Section titled “You decode the code from the footage”Any camera can film a screen, including webcams, phones and headsets that cannot read QR codes. Film a screen showing the time at the start and the end of each recording, decode every frame where the time is readable, and fit a straight line through the readings; the comparison page has a prompt for the decoder. EgoKit’s millisecond webpage timer is the plain-text version of the same thing.
The same trick measures a camera pipeline’s latency rather than its clock. UMI films “a rolling QR code on the computer monitor that displays the current system timestamp for each video frame”, subtracts the decoded time t_display and the known display latency l_display from the time each frame arrived at the computer t_recv, and gets the camera system’s end-to-end latency: l_camera = t_recv − t_display − l_display (Chi et al., 2024). UMI masks the QR code out of the live preview on the same monitor, “To prevent multiple detections of QR codes”.
The screen’s refresh rate, display latency, exposures that straddle a change and rolling shutter all limit this method. They are set out in the accuracy limits table. Because display latency is the same for every camera that films the same screen, it cancels when you compare cameras with each other, but not when you compare them with the computer’s clock; that is why UMI calibrates l_display separately.
Light flashes
Section titled “Light flashes”A light switching on reaches every camera in the room at once. Pupil Labs checks the sync of two eye-tracking glasses this way: the glasses were placed “in front of a light source, the eye cameras facing towards the light”, and the light was switched “on and off four times” (Pupil Labs LSL relay guide). Their script sums each frame’s pixel values, so each switch shows up as a step.
RocSync tested a refined version, “cross-correlating the gradient of average global illumination between the two cameras”. It gave 3.09 px stereo error at 30 fps and 1.11 px at 60 fps, close to the LED clock without interpolation. The authors stress that this was the best case: “this experiment represents an ideal scenario for light-based synchronization, with a single ceiling-mounted lamp that turns on and off nearly instantaneously.” In real rooms “many lights do not switch on instantaneously, and in large environments such as operating rooms, the ceiling illumination often consists of multiple physical light sources that do not activate at exactly the same time” (Meyer et al., 2025).
A clap combines a visual event with a sound, but sound is slow: in RocSync’s words, “even a 5-meter difference introduces a 15 ms discrepancy in time of arrival”. The software sync page covers audio.
Blinking LEDs and coded markers
Section titled “Blinking LEDs and coded markers”A light that blinks a long, non-repeating pattern gives many sync points, not one.
- Random on-off light source (ROOLS). Zhao and Chen (2009) drive one LED with a random binary signal: “The captured binary-valued sequences are then matched and the temporal offset of the cameras is computed up to subframe interval precision.” They describe it as “suited for synchronization in both laboratory and outdoor environments”.
- Blink-coded markers. Yamazoe et al. (2004) placed many infrared LED markers in a scene. Each blinks its own ID and a shared timecode, changing state at “29.97 Hz to match the video signals”, in a 30-bit code that lasts one second (20 bits of ID, 10 of timecode). Because every marker blinks the same timecode, cameras that see different markers still share time.
The RocSync LED clock
Section titled “The RocSync LED clock”A blinking LED needs many frames to say what time it is, and cannot show how long the shutter was open. RocSync’s LED clock shows both in a single frame (Meyer et al., 2025).
The board
Section titled “The board”The clock is a 25 × 25 cm circuit board with:
- A ring of 100 LEDs, red and infrared, one lit at a time, advancing every millisecond: “The step duration of 1 ms was chosen to provide millisecond-level accuracy, while the use of 100 LEDs ensures correct operation for exposure times of up to 100 ms”, “supporting frame rates from 10 to 1000 fps”.
- A binary counter of 16 positions that “increments with each full rotation of the ring”, so it counts 100 ms steps. That gives “unique timestamps with millisecond precision for up to 109 minutes” (2^16 × 0.1 s = 6553.6 s, about 109 minutes).
- A central ArUco marker, a square fiducial pattern that is easy to detect, plus four corner LEDs to refine the board’s position in the image. “One corner includes an additional IR LED to resolve rotation ambiguity in infrared videos where the ArUco marker is not visible.”
- A 32-bit RISC-V microcontroller “with an external temperature-compensated crystal oscillator (TCXO) for precise timekeeping”, on battery.
The board is wrapped in matte black film to cut reflections and has “an estimated cost of approximately US$20 per unit”.
Reading the exposure window
Section titled “Reading the exposure window”“Because camera shutters are not instantaneous, light is integrated over the exposure period (typically a few milliseconds), causing several adjacent LEDs to appear illuminated in a single frame. The first and last LED in this arc correspond to the start and end of the exposure window, respectively”.
As an illustration of the arithmetic (our example, not one from the paper): if the counter reads 12 and the lit arc runs from LED 40 to LED 57, the exposure started at 12 × 100 + 40 = 1240 ms on the clock and ended at about 1257 ms, so it lasted about 17 ms.
RocSync fits each camera’s clock to the exposure start, not the midpoint: “We assume that the start of the exposure is always aligned with the regular frame interval, while automatic exposure control only affects the end.”
The decoding pipeline
Section titled “The decoding pipeline”The operator shows the clock to each camera in turn, for a few seconds, at the start and end of a recording; the cameras never need to see it at the same time. The pipeline then runs six steps: find the ArUco marker, rectify the board coarsely from its corners, locate the corner LEDs, refine the rectification from them, decode the ring and counter, and fit timestamps. It rejects frames at three points:
- “a frame is rejected if the detected ArUco marker occupies less than 0.2% of the image area”, because the LEDs are then too small to tell apart;
- a frame is rejected if the corner LEDs “deviate from their expected positions by more than a specified threshold”;
- “a frame is rejected if the ring does not display a single illuminated sector or if the sector crosses the counter boundary, as this indicates the counter changed during the exposure”.
Finally, “robust RANSAC regression” combines the timestamps from all decoded frames “by fitting a linear function and computing the global offset and drift of the video”. The model is T = α · t + β for each camera, where t is the camera’s own frame time, T is clock time, β the offset and α the rate. With a single sync point, RocSync sets α = 1, “which assumes that the camera’s local clock has no drift”.
Accuracy against hardware sync
Section titled “Accuracy against hardware sync”RocSync’s ground truth was two Azure Kinect DK cameras joined by a sync cable, “facing opposite directions”, at 1920 × 1080 and 30 fps “with a fixed exposure time of 8.33 ms”. The clock was shown to one camera for about 5 seconds, then after 2 minutes to the other, at about 150 cm; the cycle was repeated 5 minutes later, giving “five independent 14-minute recordings”. The RMSE between the two cameras’ recovered timestamps was 0.38, 1.30, 1.94, 1.73 and 1.37 ms, mean 1.34 ms, against a frame period of 33.3 ms.
The authors “attribute the residual error primarily to the rolling shutter of the Kinect’s RGB sensor”: the ring’s LEDs sit on different image rows, so the decoded time depends slightly on where the clock is in the frame and which LEDs are lit. “To reduce this artifact, the clock can be held at a greater distance from the camera”.
RocSync’s GoPro test: QR, light, audio and LED compared
Section titled “RocSync’s GoPro test: QR, light, audio and LED compared”Two GoPros (a Hero 12 and a Hero 10) about 1 m apart recorded at 60 fps with a fixed 1/480 s exposure, their clocks set by GoPro Labs QR code just before recording. A checkerboard was moved quickly in front of both. Because a misaligned pair calibrates badly, the stereo reprojection error measures the sync. Mean over five runs, at 30 fps / 60 fps:
| Method | Error (px) |
|---|---|
| LED clock with interpolation | 1.02 / 0.95 |
| LED clock, nearest frame | 3.07 / 1.11 |
| Light switched on and off | 3.09 / 1.11 |
| Audio (clap) | 11.34 / 13.91 |
| Audio with interpolation | 12.90 / 14.64 |
| QR timecode | 54.60 / 55.14 |
The QR timecode result is large because the clocks were set once by QR and then each camera ran on its own. With interpolation, the LED clock “achieves nearly the same error at 30 fps as at 60 fps”.
In the field
Section titled “In the field”In surgical recordings “using more than 25 cameras”, “Out of 73 total recordings, only one instance failed synchronization. This was associated with the Aria glasses worn by the lead surgeon. The failure was not due to our method, but rather to frame drops in the recordings from the Aria glasses.” A straight-line fit between two sync points assumes no frames are lost in between; see dropped frames.
Rolling-shutter LED strips
Section titled “Rolling-shutter LED strips”A rolling shutter reads rows one after another (see rolling-shutter line timing), so the row at which a light changes tells you when, within the frame, it changed. Gaussians on Fire uses this to sync three GoPro Hero 13 Black cameras recording fire at 400 Hz, 1280 × 720.
Their board is an ESP32 microcontroller driving 21 pins. Sixteen drive a frame counter: “The frame counter is displayed using 15 white LEDs, which represent the frame number in Gray code. An additional LED is employed to resolve the inherent ambiguity of the Gray code, preventing frame errors that could otherwise reach up to one frame.” Gray code is a binary count in which consecutive numbers differ by one bit, so a change mid-exposure cannot produce a wildly wrong reading. The other five drive LED strips: “we exploit the pronounced rolling shutter effect present in most CMOS consumer cameras by sequentially toggling a series of five COB LED strips.”
Their precision is an estimate, not a measurement: the row time (about 3 µs) times how precisely the brightness edge can be located (about 5 px) gives “a temporal precision of approximately 15 µs”. They observed a row readout time of 2.85 µs on their setup. 15 µs is about 1/170 of the 2.5 ms frame interval at 400 Hz.
The method needs a characterised sensor (“For a fully characterized sensor, detecting the image points where the LED strip brightness changes allows us to directly determine the exposure time”), and the strips must be in view of every camera.
Reaching sub-frame accuracy by interpolation
Section titled “Reaching sub-frame accuracy by interpolation”Knowing each frame’s time precisely does not by itself align the frames. Two free-running 30 fps cameras still expose up to half a frame apart (33.3 / 2 = 16.7 ms). Once each frame has a sub-frame timestamp, you can interpolate to a common instant.
Interpolate detections. Detect 2D points, such as checkerboard corners or hand joints, in each camera’s frames on either side of the target time, and interpolate their image coordinates to that time before triangulating. RocSync tested this with four GoPro Hero 12 cameras at 30 fps and 1/240 s shutter, in a simulated surgical scene with manually annotated 2D hand poses. Over six moments of fast hand motion, the mean triangulation error was “4.4 px when using interpolation, compared to 8.8 px when using the nearest-frame synchronization strategy” (per-moment values ranged up to 20.85 px without interpolation). Triangulating one moment separately from two camera pairs, “sub-frame synchronization reduced the mean Euclidean distance between poses from 26.07 mm without interpolation to 7.52 mm with interpolation” (Meyer et al., 2025).
Interpolate images. When a method needs whole images, a video frame interpolation model can synthesise each camera’s view at the common instant. RocSync applied the method of Jin et al. to make temporally aligned frames and reconstructed the scene with MASt3R: “the interpolated frames produce noticeably higher-quality reconstructions with fewer” artifacts, and a fast-moving hammer that the nearest-frame reconstruction missed was “mostly reconstructed using sub-frame interpolation”.
Prompts you can give an AI
Section titled “Prompts you can give an AI”These prompts ask for code you can check yourself; read the output before trusting it.
Decode an LED clock
Section titled “Decode an LED clock”Write a Python script with OpenCV that decodes an LED sync clock in the firstand last 20 seconds of a video. The board has a central ArUco marker (dictionaryand ID given as arguments), four corner LEDs at known board coordinates, a16-LED binary counter that counts 100 ms steps, and a ring of 100 LEDs, one litper millisecond. For each frame: detect the marker, reject the frame if itcovers less than 0.2% of the image, rectify the board with a homography fromthe marker and then from the corner LEDs, threshold each LED, and reject frameswhere the ring shows more than one lit arc or the arc crosses the 99-to-0 wrap.Convert the first lit LED and the counter to a clock time in ms. Read eachframe's presentation timestamp from the container with PyAV (do not use frameindex times nominal period). Fit clock_time = alpha * pts + beta with RANSAC andreport offset, drift in ppm, residuals and the number of frames used at each end.Interpolate hand keypoints to a common time
Section titled “Interpolate hand keypoints to a common time”I have 2D hand keypoints (21 per hand) per frame from several cameras, eachframe with a timestamp already mapped to a common clock, plus calibratedprojection matrices. Write a Python function that, for a list of target times,linearly interpolates each camera's keypoints between the two frames thatbracket the target time (skip a camera if either frame is missing a detectionor the gap is longer than 1.5 frame periods), then triangulates each joint withDLT from the cameras that remain and reports the reprojection error per joint.Compare against using each camera's nearest frame.Measure a camera pipeline’s latency with a screen
Section titled “Measure a camera pipeline’s latency with a screen”Write two Python scripts. The first shows a full-screen window that redraws a QRcode with the current time.monotonic_ns() on every display refresh, and logseach draw time. The second reads a live camera pointed at that screen, recordsthe arrival time of each frame on the same clock, decodes the QR code, skipsframes where decoding fails, and reports the distribution of arrival time minusdisplayed time. Explain that this includes the display's own latency, which mustbe measured separately and subtracted, as the UMI paper does.Sources
Section titled “Sources”- Yu et al. (2026). EgoKit: Towards unified low-cost egocentric data collection with heterogeneous devices. arXiv.
- Chi, C. et al. (2024). Universal Manipulation Interface: In-the-wild robot teaching without in-the-wild robots. RSS.
- Meyer, J. et al. (2025). RocSync: Millisecond-accurate temporal synchronization for heterogeneous camera systems. arXiv.
- GoPro Labs. Walkthrough and features, precision date and time and GPS time synchronization.
- Tentacle Sync. Timebar app QR code and GoPro HERO 7–11 and GoPro 12/13.
- Pupil Labs. Pupil Invisible LSL relay: time synchronization between two devices.
- Zhao, Q. and Chen, Y. Q. (2009). High-precision synchronization of video cameras using a single binary light source. Journal of Electronic Imaging 18(4).
- Yamazoe, H., Utsumi, A., Hosaka, K. and Yachida, M. (2004). Geometrical and temporal calibration of multiple cameras by using LED markers for image synthesis. ICAT.
- Nazarenus, J. et al. (2025). Gaussians on Fire. arXiv.