CONTINUUM CONTINUUM
Offset Detector · GuideHow to measure the video–sensor offset

Offset Detector guide

The Offset Detector measures how far the video clock is from the sensor clock. You mark the same moment (for example the end of the SPPB sit-to-stand) in the video and in the pelvis data, and the tool works out the difference. That number goes into the Video Annotator's Offset (s), so the annotated movements land at the right place in the sensor data.

Why there is an offset

The sensors take their clock from the session computer (OMGui). The videos take theirs from the iPhone. The two clocks are never exactly the same, and the iPhone also stores the start of each clip rounded to the whole second.

offset = (Rec. start + time in the video) − sensor time

Open the files

Open continuum-tools.pages.dev/offset-detector in Chrome or Edge. Nothing is uploaded: the files are read directly from your computer.

First time: choose your Data folder. Click 📁 Choose Data folder (top right) and select the CONTINUUM Data folder (the one with VIDEOS and EUROBENCH_DATA). It is remembered, also by the Video Annotator. Then videos open in Data/VIDEOS, the subject is recognised from the video's SUBJECT_XX folder, and the sensor files are found by themselves. (Chrome / Edge; the first time each day the browser may ask to allow the site to view the folder.)
  1. Video: click Load video… and choose a clip with a clear movement, for example the SPPB sit-to-stand. Rec. start is filled in as in the Video Annotator: from the recording folder name when it holds the start time (e.g. 2026-10-13 12-07-14), otherwise from the video file; check it, and type it if it is empty.
  2. Sensors: click Load sensor data…. If the video came from VIDEOS/SUBJECT_XX, the session's EUROBENCH_DATA/SUBJECT_XX/SESSION_YY/CLINICAL/ files (acceleration.csv, velocity.csv, events.yaml) load directly. Otherwise the file dialog opens in Data/EUROBENCH_DATA: select those three files together (Ctrl+click). Use the full session files, not the split ones. A one-hour session takes a few seconds to load.
  3. The angular velocity (velocity.csv) is shown in a second plot and is often the clearest signal for sit-to-stand. Sensor is pelvis by default; the wrists can be chosen too.

Find the movement in the sensor data

Before any event is marked, the tool does not know the offset, so the plot may not show the right moment. The easiest way to find it: load the session's events.yaml together with the sensor data (see above; it is found by itself when the subject is known). The plot jumps straight to the SPPB sit-to-stand (its Clinical Log window, shaded, with 5 s on each side), and the Trial list jumps to any other trial.

Without events.yaml, type a clock time in Go to and press Enter, for example the trial start written in the Clinical Log. The plot then shows 15 s on each side of that time.

In the plotDoes
Mouse wheelZoom in / out around the mouse
DragMove earlier / later
ClickSet the sensor mark (snaps to the nearest sample)
+ −Zoom in / out
Fit to videoShow the sensor time covered by the whole video (±10 s), using the offset measured so far
◎ videoCentre the plot on the current video position

The x, y, z boxes choose which axes are drawn; norm adds the overall size of the signal. Hovering shows the clock time and the values under the mouse. The purple dotted line marks where the current video frame is on the sensor clock, using the offset measured so far: once you have one event, it follows the video as it plays.

Mark events

An event is one moment marked in both the video and the sensors. You can add as many as you like.

  1. Optionally type a Label (e.g. end STS, stand 3).
  2. Video: drag the slider under the video to get close, then go to the exact frame (, . step one frame, slow speeds help) and press v (Mark video at this frame (v)). The ‹ › buttons move it by one frame.
  3. Sensors: click the same moment in the plot. The ‹ › buttons move it by one sample (about 10 ms).
  4. The box below shows the offset of this event. Press Enter or Add event ⏎.

Added events appear in the Events table and as numbered green lines in the plot. ◎ jumps to an event in both the video and the plot; ✕ deletes it.

KeyDoes
spacePlay / pause
,   .One frame back / forward
←   →1 second back / forward
vMark the video at the current frame
EnterAdd the event

Read the result

The Offset panel shows the mean offset of all events, and with two or more events also the SD, median and range. In the table, Δ is how far each event is from the mean.

The events are not saved. They stay only while the page is open; copy the offset before closing it.

Use it in the Video Annotator

  1. Click Copy offset.
  2. In the Video Annotator, open the clip and paste the number into Offset (s) (Recording metadata).
  3. Do this for every iPhone clip of the session (same offset for all of them for now).

The annotator saves the offset in the _Info.yaml next to rec_start, and uses it for every event time; to correct it later, load the YAML files, change Offset (s) and export again. See the Video Annotator guide.

Choosing good events

Troubleshooting

ProblemWhat to do
The video is black, or says the browser can't play itiPhone videos are often HEVC (H.265). Convert the clip to H.264 (for example with ffmpeg), keeping the metadata so Rec. start is still read.
The plot does not show the movementType the trial's clock time in Go to, or zoom out (mouse wheel / −) and drag.
no "time" column… when loading the CSVChoose the EUROBENCH acceleration.csv (or velocity.csv) of the session.
Add event stays grey / the offset says needs Rec. startMark both the video and the sensors, and fill in Rec. start (YYYY-MM-DD HH:MM:SS).
The events disagree by more than ~0.2 sCheck each with ◎; zoom in on the plot and step frame by frame in the video before marking.

See also the Video Annotator guide and the Clinical Log guide.