Developers

JSON export formats

Versioned, documented files for spreadsheets, scripts and club analysis systems.

Video Marker exports three JSON files. All of them are plain UTF-8 JSON, pretty-printed, and share the same envelope so an importer (for example sportclubpro) can recognise them with one check.

File schema value Purpose
*-markers.json coach-video-marker/markers Key moments with name, tags, note, link and clip window
*-line-changes.json coach-video-marker/line-changes Floorball line shifts with durations and a per-line summary
*-session.json coach-video-marker/session Everything, for re-opening in the tool later

Machine-readable JSON Schemas (draft 2020-12): markers.v1.schema.json and line-changes.v1.schema.json. Full example files: markers and line changes.

Shared conventions

  • Envelope. Every file starts with schema, version, exportedAt, generator, timeBase and video.
  • Versioning. version is an integer (currently 1). New optional fields can be added without bumping it. Renaming, removing or changing the meaning of a field bumps it. Importers should check schema and version and ignore fields they do not know.
  • Time. All *Seconds values are seconds from the start of the YouTube video (timeBase: "video"), as numbers with at most two decimals. They are not the game clock. Periods are recorded separately so the game clock can be reconstructed if needed.
  • Timestamps. exportedAt is ISO 8601 in UTC, e.g. 2026-11-24T18:03:12.512Z.
  • IDs. Marker ids are short random strings, stable within a session (they survive export and re-import). Line ids are L1, L2, … and stay the same when a line is renamed.

The video block (identical in every file)

"video": {
  "provider": "youtube",
  "id": "dQw4w9WgXcQ",
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "title": "SSV – Classic, 24.11.2026",
  "durationSeconds": 4210.5
}

durationSeconds is null if the player had not reported it yet. The session file carries only provider, id and title.

Markers: coach-video-marker/markers

{
  "schema": "coach-video-marker/markers",
  "version": 1,
  "exportedAt": "2026-11-24T18:03:12.512Z",
  "generator": "Video Marker",
  "timeBase": "video",
  "video": { "provider": "youtube", "id": "dQw4w9WgXcQ", "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "title": "SSV – Classic", "durationSeconds": 4210.5 },
  "clipSettings": { "leadSeconds": 5, "lagSeconds": 10, "maxClipSeconds": 30 },
  "markers": [
    {
      "index": 1,
      "id": "m1k9x2abc",
      "timeSeconds": 200.5,
      "name": "Breakout from own corner",
      "tags": ["breakout", "#12"],
      "note": "Look at the support from the centre.",
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ&t=200s",
      "clip": {
        "startSeconds": 195,
        "endSeconds": 211,
        "durationSeconds": 16,
        "embedUrl": "https://www.youtube.com/embed/dQw4w9WgXcQ?start=195&end=211&rel=0"
      }
    }
  ]
}
Field Type Notes
clipSettings.leadSeconds / lagSeconds number Seconds before and after the mark used for clips at export time
clipSettings.maxClipSeconds integer Always 30. If lead + lag exceeds it, both are scaled down in proportion
markers[] array Sorted by timeSeconds. All markers are exported, selected or not
index integer 1-based position after sorting
id string Stable marker id
timeSeconds number The moment MARK was pressed (after any nudging)
name string May be empty
tags string[] Free text, trimmed, de-duplicated. Player numbers are usually written #12
note string May be empty
url string Watch link starting at the mark (whole seconds)
clip.startSeconds / endSeconds integer Clip window, clamped to the video. endSeconds - startSeconds ≤ 30
clip.embedUrl string Embed link that plays only that window

Line changes: coach-video-marker/line-changes

{
  "schema": "coach-video-marker/line-changes",
  "version": 1,
  "exportedAt": "2026-11-24T18:03:12.512Z",
  "generator": "Video Marker",
  "timeBase": "video",
  "video": { "provider": "youtube", "id": "dQw4w9WgXcQ", "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "title": "SSV – Classic", "durationSeconds": 4210.5 },
  "lines": [
    { "id": "L1", "name": "Line 1" },
    { "id": "L2", "name": "Line 2" },
    { "id": "L3", "name": "Line 3" }
  ],
  "shifts": [
    {
      "index": 1,
      "lineId": "L1",
      "lineName": "Line 1",
      "period": 1,
      "startSeconds": 62.3,
      "endSeconds": 118.9,
      "durationSeconds": 56.6,
      "startUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ&t=62s"
    }
  ],
  "summary": [
    {
      "lineId": "L1",
      "lineName": "Line 1",
      "shiftCount": 7,
      "totalSeconds": 402.1,
      "averageSeconds": 57.44,
      "longestSeconds": 81.2,
      "shortestSeconds": 31.5
    }
  ]
}
Field Type Notes
lines[] array Every configured line, in button order, including lines with no shifts
shifts[] array Only finished shifts, sorted by startSeconds. A line still on the floor at export time is left out; press Stop first
shifts[].period integer 1, 2, 3, or 4 for overtime
shifts[].startSeconds number When the line came on
shifts[].endSeconds number When the next line came on, or when Stop was pressed
shifts[].durationSeconds number endSeconds - startSeconds, in video time. Includes stoppages unless the coach pressed Stop
summary[] array One entry per line in lines, computed from shifts

How shifts are recorded: pressing a line button ends the open shift at the current video time and starts a new one for that line. Pressing the line that is already on does nothing. Stop ends the open shift without starting another (period breaks, timeouts, long stoppages). Gaps between a Stop and the next line are not counted for any line.

Session: coach-video-marker/session

Used to continue work later, because the site stores nothing. It holds video (provider, id, title), settings (leadSeconds, lagSeconds), post (title, commentary), markers[] (id, timeSeconds, name, tags, note), lines[] and shifts[] (lineId, period, startSeconds, endSeconds, where endSeconds is null for a line still on the floor). For integrations, prefer the markers and line-changes files: the session format is meant for the tool itself.