Skip to content
ES — View this page in SpanishEN

N° 02.03 — Case

Own product

Rev ff2c27c

Undisclosed product

My own product, in production: an ffmpeg video pipeline that never re-encodes.

Type
Own product
Disciplines
  • FS Full-stack development
  • AB Backend architecture
  • AP Process automation
Stack
TypeScript · Next.js · next-intl · Capacitor · Python · FastAPI · PostgreSQL · ffmpeg · Sentry

Diagram of the undisclosed product's pipeline: video comes in over the network, it's captured as MPEG-TS without re-encoding, it's remuxed to MP4 and kept in a cloud archive behind a login. A supervisor on a 10-second cycle restarts the capture without discarding what's recorded, and a real-time dashboard gets the status over WebSocket.
FIG. 01 — Plate generated by code from the case data

Summary

It's my own product, in production. For now I'm not publishing its name or screenshots, so this is just the engineering: an ffmpeg video pipeline, a Python backend and a web frontend with a mobile build.

The core technical decision is never to re-encode. Video and audio are copied exactly as they arrive, with no second round of compression: they're captured over MPEG-TS to survive packet loss, then remuxed to MP4 for the browser. If the connection blips, the capture reconnects and keeps writing the same file; if it stops while the source is still running, a ten-second cycle notices and starts a fresh capture without discarding anything already recorded.

On top of the pipeline sits a real-time dashboard, with each capture's status over WebSocket, and a cloud archive behind a login that isn't search-indexed.

The frontend is TypeScript with Next.js and next-intl, with a Capacitor mobile build on that same codebase; the backend is Python with FastAPI, PostgreSQL and ffmpeg.


01Problem

Video arrives over the network, and networks fail: a dropout can't leave a broken file or lose what's already recorded.


02Decision

Copy the video exactly as it arrives and never re-encode it.


03Architecture

  1. 01 Incoming video over the network
    • leads to 02 Untouched capture (MPEG-TS)
  2. 02 Untouched capture (MPEG-TS)
    • leads to 04 Remux to MP4
    • leads to 06 Real-time dashboard over WebSocket · status
  3. 03 Supervisor: 10-second cycle
    • leads to 02 Untouched capture (MPEG-TS) · restarts without discarding
  4. 04 Remux to MP4
    • leads to 05 Cloud archive behind a login
  5. 05 Cloud archive behind a login
  6. 06 Real-time dashboard over WebSocket
FIG. 02 — 6 nodes · 5 edges