Lynxx × Fora Soft

Live video, 30-day recording and playback for a monitoring platform

Published: Nov 24, 2026
Lynxx Live View: live camera stream from a construction site with camera list
Recording history with a gap, signed playback link and MP4 clip export
Legacy unit, 4K streaming unit, operator phone and drone in one video layer
Lynxx is a construction monitoring system: weatherproof camera units on building sites send images and video to the Lynxx servers, and project teams follow progress in a web portal. For Lynxx we designed and built Live View, the live video layer of the platform. It turns a camera on site into an always-on stream that project members and guests can watch in the browser, keeps a rolling 30 days of round-the-clock recording for cameras connected through the recorder, and lets project members scroll back through the recording, play a chosen moment and save clips.
Split of work between Fora Soft and Lynxx developers, and where the project stands

What we did

We worked inside Lynxx's existing backend next to Lynxx's own developers. They build the portal, the camera unit software, the database and the rest of the backend. We designed the video architecture, deployed the video server and the recorder, and wrote the recording history, playback and export service, the camera publish tokens and the stream quality presets. We also wrote the interface specifications that Lynxx's developers built their side from. We designed share-link access to live streams and started the implementation; Lynxx's developers completed it.

Where it stands: the video server and the recorder run on Lynxx's own server, the recorder since October 2026. The new streaming unit and camera control are the next stage.

Lynxx Technologies is based in Prague, Czechia. Its camera units hold the camera, a computer, power and networking in one IP-66 enclosure with a sensor of at least 24 megapixels; the enclosures, including the pan-tilt units, are made in Europe. Customers use the portal for project management, stakeholder collaboration, conflict resolution and project archiving. Lynxx reports typical audiences of 10 to 15 viewers per camera, with peaks of about 100 during events, and growth that comes from more cameras and more sites.
Lynxx portal: live view, cameras and recording timeline
The system works like this: each camera publishes into its own permanent room on a self-hosted video server, so the portal does not need to know what kind of camera it is showing. A separate recorder writes the camera's feed to disk as time-stamped segments. The Lynxx backend issues short-lived access tokens, tracks whether each camera is online, and serves the recording history and clip export.
How Lynxx Live View works: camera on site, recorder and backend
The hardest part of Live View is showing very different sources the same way: a legacy camera unit, a new 4K streaming unit with a hardware encoder, and the operator's phone or a drone feed in moderated sessions, all on construction-site LTE/5G links that drop and recover. The system also had to stay affordable at 24/7 recording, keep video out of third-party clouds where a customer's policy requires it, and give a camera unit or an anonymous guest no more access than it needs.
Who uses the platform: project member, moderator, guest and camera unit

Who uses the platform

  • Project members are signed-in portal users from construction companies, project owners and their stakeholders. They watch live streams, browse recordings and save clips for the projects they have access to.
  • A moderator is a project member who runs a scheduled moderated session: the moderator controls the camera while the others watch and chat.
  • Guests are outside viewers without a portal account. A guest opens a share link or an embed on the customer's own website and can only watch.
  • A camera unit is the enclosure on site. Each unit signs in to the backend with its own account and publishes one camera's video.

In this text, a viewer is anyone watching a stream, member or guest. The video server is the self-hosted LiveKit server, the recorder is the MediaMTX service that writes video to disk, and the backend is the set of Lynxx services behind the portal.

Highlights

  • Designed the Live View architecture and costed it per camera and per server before anything was built.
  • Deployed a self-hosted video server (LiveKit) with an entry point for non-browser sources on Lynxx's own server, so hardware encoders reach viewers through the same video layer as the legacy unit and phones.
  • Built 30-day continuous recording that does not depend on the video server and skips costly round-the-clock transcoding, with a history service that shows where footage exists, signed playback links and clip export to the media library.
  • Showed how to carry a 4K camera for a measured 0.25 server processor cores instead of an estimated 7 or more: the encoder produces the 1080p browser stream itself, the server passes it through untouched, and the recording keeps 4K.
  • Built short-lived, single-room publish tokens, so a camera unit can publish without holding the video server's master key, and designed share-link revocation that disconnects guests who are already watching.
Live camera stream with highlights: 30-day recording, 4K for 0.25 cores, publish tokens, TURN on 443
Legacy unit, 4K streaming unit, operator phone and drone shown the same way

One video layer for every kind of camera

Every source arrives at the video server as the same kind of stream. The portal shows all of them the same way, and a new camera type is designed to need no frontend changes.

We deployed self-hosted LiveKit on Lynxx's server with deployment automation: the video server, TURN on port 443 so viewers behind strict corporate firewalls still connect, the event notifications from the video server to the backend, and the keys the backend uses to issue access tokens. We added the missing Ingress service, the entry point for sources that are not browsers: the recorder forwards each encoder's feed to it, and other sources can publish over the WHIP or RTMP protocols. The existing phone publishing path, room names and participant identities were kept as they were, so working features did not break.

The specification keeps Lynxx's existing moderated sessions and adds always-on streams on the same infrastructure:

  • A moderated session has a temporary room where the moderator controls the camera and the other participants watch and chat.
  • An always-on stream has a permanent room per camera that survives camera reconnects. Project members can watch it whether or not a session is scheduled, and the backend allows one moderated session per camera at a time.

For camera control we specified a single lock: taking control of a session also takes the camera's pan-tilt lock, so two people cannot steer one camera at the same time.

30-day continuous recording that does not depend on the video server

Round-the-clock recording runs on a separate, cheap path with no transcoding, and covers the cameras that publish through the recorder. We recommended this instead of recording 24/7 through LiveKit's own recording service (Egress), which would run a transcoding pipeline per camera around the clock and cost far more at cloud list prices. On the chosen path a MediaMTX recorder takes the encoder's feed directly, writes it to disk as time-stamped segments and forwards the live stream to the video server. The rolling retention window is 30 days by default and is set per camera.

We costed the design at Full HD with H.265: about 3 Mbit/s of site uplink and about 1 TB of storage per camera per 30 days, with one server enough for up to about 20 cameras. Recording in 4K needs more uplink and storage per camera.

Recordings stay on Lynxx's own storage by default, not in a third-party cloud, which suits customers whose data-residency rules forbid storing video in a third-party cloud. S3-compatible object storage remains an option per customer where policy allows it.

Continuous recording with per-camera retention, uplink and storage estimates
Recording history timeline with a gap, signed playback link and clip export

Recording history that shows where footage exists

For a camera and a time range, the history service tells the portal which stretches are recorded and where the gaps are. We measured the recorder's real behaviour before writing the specification:

  • The recorder can start a new file only at a full video frame (a keyframe), so even an uninterrupted stream shows holes of about 1.2 to 1.6 seconds between files.
  • The recorder version we measured did not list the segment that was still being written.

The history service therefore merges holes shorter than a tolerance, 3 seconds by default, into one continuous stretch and reports only longer holes as gaps. While the recorder is receiving the camera's stream, the service extends coverage up to the live moment. If the camera has just come back after an outage, coverage starts from the moment it returned, so the outage still shows as a gap. The merging logic is tested against the recorder's raw output captured during the measurement.

Playback uses signed links. The backend creates a link bound to one recording and one time window of up to 4 hours; the link is valid for 10 minutes by default. The web server in front of the recorder checks the signature itself, without asking the backend. Video plays over plain HTTPS with seeking, so scrubbing through recordings puts no load on the backend or the video server. A request whose window falls entirely inside a gap is refused with the gap's boundaries; a window that only touches a gap plays the recorded part.

A fully recorded stretch of up to 10 minutes can be exported as an MP4 clip and filed in the project's media library like any other item, with a note of where it came from. If the stretch crosses a gap, the export is refused and the response lists the gaps. Recordings are kept for the camera's retention period; a clip saved to the media library stays there.

Before serving history, playback or export, the backend checks that the camera belongs to the customer and project in the request.

4K cameras at a fraction of the server cost

We measured both ways of preparing live video for browsers on the real server images and documented the decision. The results:

  • When the server transcodes, the measured cost is 1.7 processor cores at 720p and 60 fps and 3.9 cores at 1080p and 60 fps. Extrapolated to 4K, one camera needs about 7 cores at 30 fps and 13 to 14 at 60 fps, and the planned 5-camera pilot would need 35 to 70 cores.
  • When the encoder produces the browser stream and the server passes it through, a 4K camera at 60 fps costs a measured 0.25 cores and the whole pilot about 2.

In the recommended setup the encoder produces two streams: 4K H.265, which the recorder stores, and 1080p H.264, which the recorder forwards to the video server and browsers receive untouched. This adds no transcoding delay and lets the encoder use a higher-quality H.264 mode than the basic one server transcoding is limited to.

Server transcoding stays available as a fallback. Presets for 720p60, 1080p60, 4K30 and 4K60 are kept in configuration, and switching between the two modes is a configuration change, not a code change.

Server processor cores per 4K camera: transcoding versus passing the encoder stream through
Share link with a watch-only token and a camera publish token for one room

Secure access for camera units and guests

Before our work, a camera unit could publish only by holding the video server's master key, which lets its holder create access for any room. We added a backend endpoint that gives a unit a short-lived token (10 minutes by default) for publishing to its own camera's room only. The unit asks for the token with its own account, and the backend refuses a unit that is not registered for that camera. A unit that uses these tokens no longer needs the master key, which then stays only in the backend and on the video server. The legacy unit software, which Lynxx maintains, holds the key until it switches.

Guests who open a share link or a public embed get a watch-only token for one camera's room, valid for 60 minutes by default, and are not shown in the room's participant list. The video server checks such a token only when the guest connects, so we designed revocation to disconnect guests who are already watching, and Lynxx's developers finished the implementation:

  • When a link is deactivated, deleted or expires, or one visit is revoked, the backend removes that link's guests from the room at once.
  • A sweep every 60 seconds removes any guest the first step missed, and also guests whose link owner has lost access to the project.
  • Camera units and signed-in project members are not affected.

Online status rules for every camera

The portal shows whether each camera is live, driven by the video server's events. We defined these events and the status rules in the specification of the link between the video server and the backend. A camera goes online as soon as it starts publishing and offline only after a 60-second grace period, so a short encoder hiccup or a reconnect does not make the status flicker. Before marking a camera offline, the backend checks that the room really has no video left. After a restart it re-checks every active camera, so the status is corrected after outages of the service itself. Status changes are pushed to the portal as they happen.

Camera list with live, reconnecting and offline statuses
Zoom camera block, test protocol and standalone HDMI-to-IP encoder

Camera hardware and encoder selection

For the new streaming unit we prepared the hardware and encoder specification and a test protocol for three quality profiles. We recommended a standalone HDMI-to-IP encoder next to the zoom camera block, sending H.265 over SRT. It takes the small on-site computer out of the video path, survives reboots of the on-site computer and reconnects by itself after network drops. In tests the unit streamed 4K at 30 fps in H.265 and 1080p at 60 fps in H.264 into Lynxx's server.

We also specified the zoom and focus control of the camera block over its serial interface, tied to the same control lock as pan and tilt.

Technical Implementation

🖥 Platforms
Web portal, self-hosted video server, on-site camera units (Raspberry Pi / Jetson)
⚙️ Backend
Kotlin, Ktor, Koin, PostgreSQL, Exposed, Flyway, Redis, Maven
🎥 Video server
LiveKit (self-hosted SFU, TURN, Ingress, Egress), WebRTC, WHIP
📼 Recording and streaming
MediaMTX, RTMP, SRT, H.265, H.264, FFmpeg
🔐 Access
JWT, HMAC-signed URLs
🐳 Infrastructure and tests
Docker Compose, Testcontainers
Lynxx: Live View, 30-day recording, self-hosted LiveKit