Compound and stream nodes
Compound nodes store records of several fields per timestamp; stream nodes record audio and video as sessions.
Two special value types#
Most nodes store a single value per timestamp. Two value types go beyond that:
| Value type | Used for | What is stored |
|---|---|---|
| Compound | Values that belong together, such as x, y and z of a measuring point, or a log entry. | One record of several fields per timestamp. |
| Stream | Bytes that arrive continuously from a device, such as audio or video. | Sessions with a start, an end and the recorded data. |
You choose both like any value type in the Value type field of the dialog (see Editing nodes).
Compound nodes#
A compound node combines its fields into one record. The fields are its child nodes; a record is never half visible. For example, a node Position with the fields x, y and z stores one record of three numbers per timestamp.
Creating fields#
- Create a node with the value type Compound. It has no unit of its own; the unit field is locked.
- Open the context menu of the compound node and choose New › Field …. The dialog offers only value types for fields: Int, Long, Float, Double, Bool, String and Geo. Each field can have a description and, for numbers, a unit.
- Repeat for every field. A compound node has at most 32 fields (default).
The fields appear in the tree under their compound node in field order, with their own icon. Move up and Move down in a field's context menu change the order (with the Manage permission); in the text editor the order follows the order of the lines.
For fields:
- They inherit from the compound node the retention, the duplicate rule, the direction and the permissions, and only display them. You cannot change them on the field, and a field has no permission entries of its own.
- A field has no children and no links, and there are no commands or connections on fields or compound nodes.
- A compound node has only fields as children. Nodes cannot be moved, cloned or generated from a template under it.
- The node page of a field carries the badge Field.
Changing the value type and the schema#
The value type from or to Compound can be changed only while the node has no child nodes. With existing values you may
- add fields (earlier timestamps have no value there) and
- rename fields,
but not delete fields or change a field's value type. Without values everything is allowed. A field can be moved under another compound node only without values, and it cannot be cloned on its own. If you delete the compound node, its fields and values go with it.
Writing records#
A record is always written on the compound node, never on a field, as a JSON object with the field names as keys:
{ "x": 1.5, "y": 2.0, "z": -0.3 }Missing fields count as empty; unknown field names are rejected. The case of the names does not matter. All fields of a record are stored together. The duplicate rule applies per record: First wins leaves a record completely untouched as soon as the timestamp already exists in one field; Last wins replaces all fields. You can write through the ingest test (Write value … on the compound node, see The node page), the command line (loot write <path> '{"x":1.5}', see command line) or a data source whose data point has a matching schema.
The node page of a compound node#
Instead of a chart, the page shows the Latest records table with the timestamp and one column per field in field order, with the unit in the column heading. A field without a value stays empty, Boolean fields appear as true or false, geo fields in short form. With an open time window new records are appended live; with a fixed locator the table is titled Latest records up to locator. There is neither a chart nor a display unit for the whole record. Charts show single fields or, for 3D, scatter and bubble charts, the fields of one point (see Charts).
The Statistics in the Properties panel count field rows: a record with three fields counts three times.
Stream nodes#
A stream node accepts bytes that a device sends continuously and stores them in sessions. Unlike a file (value type Custom), which arrives complete as a whole, a stream has a start, running data and an end. A session is one recording from start to end.
Creating a stream node#
In the dialog choose the value type Stream and a format:
| Format | Content | Parameters |
|---|---|---|
| wav | Uncompressed audio (PCM). | Sample rate (Hz), Channels, Sample format: 8, 16, 24 or 32 bit (integer) or 32 bit (floating point). |
| raw | Raw bytes without structure. | Optionally Bytes per second, to compute the time axis. |
| mp4 | Fragmented MP4 (audio and video). | None; LooT recognises codec and resolution from the stream. |
With Segment duration (s, optional) you set after how many seconds LooT cuts the recording into a segment (empty: the server default, 30 s). Shorter segments reduce the lag of live displays but create more and smaller objects. Format and parameters apply to new sessions.
A stream node takes only incoming data (direction In), has no unit and no child nodes, and cannot be connected. The value type can be changed only without child nodes and without sessions. LooT does not transcode: for playback in the browser, H.264 with AAC is recommended. For mp4 LooT accepts only fragmented MP4; finished MP4 files you upload as a custom value.
Starting and ending recordings#
Recordings come from the device: the device starts a session through the device channel, sends data and ends it (see Data flow). On creation a stream node automatically gets two commands without parameters, Start stream and End stream; you trigger them in the Commands section of the node page, and the device carries them out (see The node page). There is no way to fill a stream without a device; "Write value …" is greyed out.
Normally at most one session runs at a time per node. A session ends when the device ends it, but also on connection loss, when the maximum duration or the permitted data rate is exceeded, on an error, or when the server stops. After a connection loss the device begins a new session. How long the segments are kept is decided by the node's retention class.
Viewing sessions#

The node page of a stream node shows the Sessions section. It names the format with its parameters and lists the latest 50 sessions, newest first:
| Column | Content |
|---|---|
| Start | Start time of the session. |
| State | running, ended, connection lost, maximum duration reached, data rate exceeded, error or server stopped. |
| Duration, Size | Length and amount of data. |
| Format, Codec | Format and, for mp4, codec and resolution. |
| Segments | Number of stored segments. |
| Notes | Warnings about the session; the tooltip names them. |
The list does not reload by itself: Refresh fetches new sessions and new segments of a running session. Older sessions than the latest 50 are shown by loot stream list --limit.
The stream player#
A click on a session selects it and shows the player below, plus a sentence about the excerpt:
- Without a fixed time window, player and download take the whole session. A fixed time window from the time bar (see Time) trims the session. The excerpt is segment-accurate: segments that touch it come in full. If the session lies outside the window, player and download take the whole session.
- Play starts playback only on your click. The browser plays wav recordings directly (up to 100 MB), mp4 runs as an HLS stream; for a running session playback goes up to the last stored segment, with a lag of about one segment. For raw there is no playback, only a note.
- If the browser lacks the required technology or rejects the codec, a note appears; the download remains possible.
Downloading#
Download saves the session (or the excerpt) as a file: wav with a header, raw as raw bytes, mp4 as a valid fragmented MP4. The download runs through the browser's memory and is limited to 512 MB. Larger sessions are saved straight to a file by loot stream download (see command line).
Limits#
- Data sources cannot feed stream nodes; streams cannot be assigned, and the ingest test blocks Send.
- Stream nodes do not take part in the data flow between nodes or in connections; later analyses such as the spectrum read the stored segments (see Analysis).
- In the Explorer you recognise stream nodes by their waveform icon; the Object Browser shows the format and state of the last session.