What is NukeVideo?
NukeVideo is an open-source, self-hosted video processing and delivery engine. It handles the core pipeline — uploading, encoding, packaging, and serving video via adaptive bitrate streaming — so you can integrate it into your own backend.
Why NukeVideo?
Most video solutions are either expensive SaaS products or full-blown platforms tightly coupled to their own frontend. NukeVideo takes a different approach: it provides just the video engine — upload, process, deliver — and stays out of the way so you can build your own product on top:
- Self-hosted — Your data stays on your servers.
- Scalable — Add worker (CPU or GPU) and proxy nodes as your needs grow.
- Flexible — Define custom encoding templates for any use case.
- Open source — Inspect, modify, and contribute to the codebase.
Architecture at a Glance
- Backend — Laravel 13 (PHP 8.4+; the images ship PHP 8.5). Queues run on Laravel Horizon (Redis).
- Admin panel — Vue 3 + TypeScript SPA. In production the API image serves it itself, on the API's own origin, so there is nothing separate to deploy.
- Databases — MariaDB 11 for application data and for bandwidth and usage analytics.
- Storage — Any S3-compatible service (AWS S3, MinIO, RustFS, iDrive e2). Transfers use s5cmd.
- Auth — Laravel Sanctum (SPA cookie sessions plus API bearer tokens).
Key Features
Distributed Encoding Pipeline
Upload a video and NukeVideo handles the rest — mirroring the original, planning keyframe-aligned chunks, and encoding those chunks in parallel across worker nodes with FFmpeg: x264, x265 and SVT-AV1 on CPU nodes, or Intel QSV and NVIDIA NVENC (H.264, HEVC, AV1) on GPU nodes. Audio is transcoded to AAC or Opus whole rather than in chunks, one job per audio rendition running alongside the video, and thumbnails and storyboards are generated.
Per-Title VMAF-Based CRF
Rather than using a fixed quality target for every video, the pipeline probes sample windows of the source, measures VMAF, and interpolates the CRF needed to hit a target VMAF per rendition. A template's maxrate is tightened against the source's own bitrate, scaled to the rendition, with headroom for peaks: the source's figure is an average over the whole file, and its heavy scenes run well above it. Simpler sources use fewer bits; complex ones get what they need.
Static CMAF Packaging
Encoded output is packaged once by shaka-packager into static CMAF: each output produces shared segments that serve both HLS and DASH from the same files. Subtitles are packaged alongside (WebVTT in fMP4 for DASH, plain WebVTT for HLS) and added to the same manifests. There is no on-the-fly repackaging — the manifests and segments are prepared ahead of time and stored on S3.
Encoding Templates
Define reusable encoding configurations with custom video/audio streams, resolutions, bitrates, and codecs. Apply them to any video with a single API call.
Self-Hosted Delivery
Packaged content reaches viewers through proxy nodes you run: a custom nginx build that validates Akamai-style stream tokens, serves the pre-packaged CMAF from S3 with AWS auth, and caches each video once across the fleet (manifests for 30 seconds). Viewers reach them through CDN domains you own, whose DNS records and TLS certificates the API keeps on its own.
See CDN & Delivery for the details.
Analytics & Monitoring
Track bandwidth consumption and per-video usage through built-in analytics, and monitor encoding progress and node health from the admin panel.
How It Works
Upload → S3 → Webhook → Encode (chunked) → Package (CMAF) → S3 → Deliver- A video file is uploaded straight to S3 via multipart upload (Uppy in the browser, each part signed by the API).
- A webhook notifies NukeVideo that a new file is ready.
- Worker nodes probe the source (per-title VMAF), split it into chunks, and encode them in parallel.
- shaka-packager builds static CMAF (shared HLS + DASH segments, plus subtitles) and the result is synced to S3.
- Content is delivered via self-hosted proxy nodes, gated by token-based access control.