Live streams

Recording

A record stream is recorded by its sender: cut into files by time, buffered on its disk, uploaded to Kymoscope or your own storage. The same settings for every sender.

A stream declared record is recorded by the program that sends it: the collector, the Python package, the Assetto Corsa and Le Mans Ultimate plugins, or a browser camera. The sender cuts the recording into files, keeps them on its own disk until they are stored, and uploads them to Kymoscope or to your project’s own storage. Every sender follows the same rules with the same settings; only the spelling changes with its config format. The files stay end-to-end encrypted: your browser decrypts them. Live is never held up by recording.

Record a stream

  1. In the sender’s config, set the stream’s mode to record (examples below). Leave the rest out to take the defaults.
  2. Start the sender. Its first lines say what it applies, for example Recording files: every 1h → Kymoscope (buffer 2 GB).
  3. In the app, press Cloud in the left rail and pick the stream: the file being written is there already, and grows as the sender uploads it.
collector.yaml
streams:
  - name: Customer A DCS
    mode: record
    split_every: 1h              # optional: from the declared rate when left out
    buffer_max_mb: 2048          # optional (also top-level, for every stream)
    sources:
      - {name: Customer A DCS, type: opcua, url: opc.tcp://dcs.customer.local:4840, tags: tags.csv}
Python (kymoscope 1.1)
with LiveStream(API_KEY, "Rig A", mode="record", hz=1000, channels=8, state_path="kymoscope-state.json",
                split_every="1h", buffer_path="kymoscope-buffer", buffer_max_mb=2048) as stream:
    ...
KymoscopeLiveTelemetry.ini (AC and LMU plugins)
[Kymoscope]
Mode=record
SplitEvery=1h
BufferMaxMB=2048
Browser SDK (0.10)
// a data stream declares its period; the browser SDK records cameras (BrowserRecorder)
const data = new LivePublisher({ /* ... */ profile: { mode: 'record', hz: 100, channels: 8, bytes_per_sec, splitEvery: '1h' } })
const recorder = new BrowserRecorder({ streamId: camera.streamId, parentStreamId: data.streamId,
  call: (b) => camera.recordingUpload(b), seal: (k, p) => camera.seal(k, p), bufferMaxMB: 2048 })

A stop ends the current file: the collector’s trigger turning false, a plugin entering the pits or the menu, Python’s stream.pause_recording(), or the sender closing. Each sender’s own page has the details: Site collector (and Record by trigger below), Publishing streams (Python and the plugins) and Cameras.

Record by trigger

A collector stream can record only from a start condition to a stop condition. A condition is a channel, a comparison (> >= < <= == !=) and a number, for example Speed > 5; all: or any: combine several.

collector.yaml (one stream)
streams:
  - name: Customer A test rig
    mode: record
    trigger:                     # only from start to stop is recorded, a file each run
      start:
        all:                     # every condition true (any: at least one)
          - Speed > 5
          - Gear >= 1
      stop: Speed < 1
      start_after: 5s            # optional: the start must hold this long
      stop_after: 90s            # optional: the stop must hold this long
    sources: ...
KeyMeaning and default
startRequired. Recording starts when it becomes true.
stopRequired. Recording stops when it becomes true.
start_afterOptional. The start must hold this long before recording starts; a shorter blip starts nothing. Values from the wait are not stored.
stop_afterOptional. The stop must hold this long before recording stops; a shorter dip keeps it going. Values from the wait are stored.

Durations are written 500ms, 30s, 2min, 1.5h, or a plain number of seconds. Each start to stop is a file of its own (cut further by split_every); live goes on while the trigger is off. What backfill sends is kept only while the trigger is on.

The standard settings

The same five settings in every sender, each in its own config format:

SettingMeaningDefaultini (plugins)yaml (collector)PythonJS (browser SDK)
modelive or recordRequiredModemodemode=mode:
split everyHow often a recording is cut into a new fileFrom the declared rate (below)SplitEverysplit_everysplit_every=splitEvery:
buffer maxLocal disk space for files not stored yet, in MB2048 (2 GB)BufferMaxMBbuffer_max_mbbuffer_max_mb=bufferMaxMB:
storageHow to reach the project’s own storage, when it has oneNoneStorageFolder or StorageEndpoint, StorageBucket, … storage:storage=storage:
retention daysOwn storage only: days Kymoscope lists a fileKeptRetentionDaysretention_daysretention_days=retentionDays:
  • Durations are 1m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h or 24h. Any other value stops the sender with a line naming the key.
  • In the collector the settings go on each stream; buffer_max_mb may also be top-level, for every stream (the older buffer: max_mb still works).
  • In JS, mode and splitEvery go in the stream’s profile; the others are options of BrowserRecorder, which records a camera.
  • storage and retention days are only read when the project records to its own storage (see Record to your own server); otherwise they are ignored.

Files: cut by time

A recording is cut into files by its period only, never by size, and the cuts fall on the clock of the sender’s machine: with 1h at 00:00, 01:00, 02:00 and so on, with 24h at midnight. So the file of a given hour or day is easy to find. Each file is one row in Cloud.

Leave the period out and the sender picks the longest step whose file stays under about 150 MB at the rate the stream declares. 150 MB is only how the default is chosen: a longer period you set yourself may give larger files, which is fine.

The stream sendsDefault period
1.5 KB/s (about 150 tags at 1 Hz)24h (about 130 MB a day)
40 KB/s1h (144 MB an hour)
45 KB/s30m (1 h would be 162 MB)
More than 150 MB a minute1m

Files cut by the period chain on: the app knows each one continues the one before, draws the chain in Cloud, and opens consecutive files as one dataset (Open as one, below). A stop starts a new chain.

Outages and the local buffer

Each piece of a file (up to a minute of data) is written to the sender’s disk first, then uploaded, and deleted locally once Kymoscope has confirmed it. Through a network outage, or a restart, the pieces wait on disk and go out oldest first when the connection is back, so the recording has no gap.

SenderWhere the buffer is
CollectorEach stream’s folder under state_dir.
Pythonbuffer_path/rec (default ~/.kymoscope/buffer).
AC and LMU pluginsThe KymoscopeRecordings folder next to the plugin.
Browser (camera page, SDK)The browser’s private storage for the site, on this device. What is not stored when the tab closes goes at the next start.

When the buffer reaches its buffer max, the oldest pieces are dropped to make room and the sender says so in its log. Give it room for the longest outage you expect: a 40 KB/s stream fills 2 GB in about 15 hours.

Find and open recordings

  1. In the workspace, press Cloud in the left rail.
  2. Under Projects, pick a stream. Type in the filter to find a project or stream by name.
  3. Pick a range: Today, Last 7 days, Last 30 days, or Custom with From and To.
  4. Coverage shows one row per day: each bar is a file, each pin a mark. Under Recordings the files are grouped by stream and day, newest first, with their times, size and storage.
  5. Tick files (or click bars) and press Open N recordings: each opens as its own dataset, with absolute time on the X axis.
  6. To read several consecutive files of a stream as one, tick them and press Open as one.

What you select stays in the Selected strip at the top of the window while you browse other streams and projects, so you can open the same session of two cars, or two shifts of two lines, together. × removes one; Clear removes them all. Once open, the dataset’s Cycles button cuts it into cycles.

A file in your own storage opens from where the storage is reachable, usually your network. A folder is chosen once in Chrome or Edge, the first time you open one of its files (Choose the folder).

Keep, export, rename, trash

ActionWhat it does
KeepA switch on each file. A kept file is never deleted by age, and still counts in your storage. Its cameras are kept with it.
ExportThe recording as one file: CSV or MF4 (ASAM MDF 4). Every channel, full resolution.
RenameGives the recording your own name. Clear the name to go back to the automatic one (stream, day and start).
TrashMoves it to the trash, where it can be restored for 30 days. In the trash (the Trash button at the bottom of Cloud), Delete forever removes one recording now, with its cameras, and Empty trash removes every one you may delete. Neither can be undone.

Storage, days and when it is full

Your plan sets, for data and for video separately, how many GB you keep in Kymoscope and for how many days (see Limits and usage). Preferences → Usage shows both.

  • Days: files older than your plan’s days are deleted, except the ones you Keep.
  • GB full: recording stops and live goes on. The sender says so in its log, the stream’s row in the app says so, and the owner gets a notice and an email.
  • When full, delete oldest: a switch per record stream in Preferences → Usage (its owner or a project admin). On, the stream’s oldest files are deleted to make room, except kept ones, and recording goes on. Off by default.
  • Notices: one when your storage reaches 80 % (“Cloud storage is 80 % full (12 of 15 GB)…”), and one per stream 7 days before its first file is deleted by age, so you can keep the files you need.

A project that records to its own storage uses none of this: its files don’t count in your plan’s GB or days. See Record to your own server.

Cameras and plugins

  • Cameras cut their files together with their data stream’s, so a camera file covers the same stretch as the data file beside it; each starts at a keyframe. A camera records only when its data stream records. Video counts in the plan’s video storage, apart from the data. See Cameras.
  • AC and LMU plugins record only while the car is driven: one file per stint, from leaving the pit lane or garage to entering the pit lane, the garage or the menu, cut further by SplitEvery. Live never stops.

Where the files go

The project decides, not the sender. By default its files go to Kymoscope. On Enterprise, a project admin can set Project Settings → Storage to an S3 bucket or a folder on your servers; from then on the project’s senders write there. A sender then needs the way in (storage): until it has it, it says “This project records to <name>: set storage in the sender’s config” and keeps the files in its buffer.

collector.yaml
streams:
  - name: Customer A DCS
    mode: record
    storage:
      s3: {endpoint: https://minio.customer.local:9000, region: us-east-1, bucket: recordings, prefix: kymoscope,
           access_key_id: env:S3_WRITE_KEY, secret_access_key: env:S3_WRITE_SECRET}
    # or a folder: storage: {folder: '\\server\recordings'}
    retention_days: 365          # optional: Kymoscope lists its files this long
    sources: ...

Step by step for MinIO and a shared folder: Record to your own server.

Marks

Every collector stream has a channel mark. It is 0, and 1 for a single sample when someone marks the stream. It is stored and plotted like any channel, so you can chart it, alert on it, or start a cycle on it.

  1. Watch the stream live in the workspace.
  2. Press MARK at the right of the top bar. It marks the live stream on view.
  3. The bar says Marked with the time. If the collector isn’t connected, it says nothing was marked.

Anyone who can watch the stream can mark it, viewer accounts included. In Cloud, marks show as pins on Coverage. A machine signal can mark too: set mark_tag on a collector source and a rise of that channel marks the stream.

collector.yaml
streams:
  - name: Reactor 1 DCS
    mode: record
    sources:
      - name: Reactor 1 DCS
        type: opcua
        url: opc.tcp://dcs.customer.local:4840
        tags: tags.csv
        mark_tag: MarkButton     # a rise of this channel marks the stream

Automate it

  • What records, how often files are cut and where they go are all in each sender’s config (the settings above), so a deployment is a config file.
  • The sender’s start line and log say where files go and every stop; feed the log to your monitoring (for the collector, also its health stream).
  • Marks from the process: mark_tag on a source (above).
  • Working with the data elsewhere: export a recording as CSV or MF4 (Keep, export, rename, trash, above).
  • An assistant can write the settings for you: see Kymoscope MCP.