Video infrastructure you host.
Upload, encode and stream encrypted HLS from servers you own. An open-source alternative to Mux and Cloudflare Stream.
$ curl -fsSL https://clipmux.com/install.sh | sudo shLinux with Docker. Postgres, Caddy and the dashboard come with it.





What this video went through
- 00:00Upload finished4 min 12 s, 1080p source
- 00:21Encoding startedModal, L4
- 01:03
video.asset.ready5 renditions, AES-128 - 02:40
video.asset.track.readyEnglish subtitles, whisper.cpp - 02:52
video.asset.track.readyChapters, Claude
Shown with example times until the demo recording is published; then the player streams it from media.clipmux.com and these rows come from its own event history.
Add video to your app in four steps
Uploads, webhooks and signed playback with the Node SDK. The browser never sees an API key or a signing key.
The handler is a plain Fetch handler, so it also runs in SvelteKit, Remix, Bun, Deno and Cloudflare Workers.
Any other language
import time
import jwt # pip install "pyjwt[crypto]"
def playback_token(
playback_id: str,
signing_key_pem: str,
kid: str,
viewer_id: str | None = None,
audience: str = "v",
ttl: int = 900,
) -> str:
"""A token for a signed playback ID, signed with your app's signing key.
signing_key_pem is CLIPMUX_SIGNING_KEY and kid is CLIPMUX_SIGNING_KID.
audience is "v" to play, or "t" for the poster. viewer_id, when given,
counts unique viewers; ClipMux keeps only a keyed hash of it.
"""
now = int(time.time())
claims = {"sub": playback_id, "aud": audience, "iat": now, "exp": now + ttl}
if viewer_id:
claims["vid"] = viewer_id
return jwt.encode(claims, signing_key_pem, algorithm="ES256", headers={"kid": kid})
npm i @clipmux/node @clipmux/uploader @clipmux/player
npx @clipmux/node init --server https://video.example.comChange where videos are stored, encoded or served. Your code stays the same.
Storage, encoding and delivery each sit behind an adapter. Pick a piece on each track.
Storage: This server
Videos are stored on the server’s own disk, next to Postgres. The simplest start; move to a bucket later without re-encoding.
Leaves your servers: nothing.
Encoding: This server’s GPU
The built-in worker uses NVENC or VAAPI when it finds a GPU, and the CPU when it doesn’t. ffmpeg runs under Landlock and seccomp.
Leaves your servers: nothing.
Delivery: ClipMux
The built-in handler checks tokens, derives keys and serves HLS straight from the server, behind Caddy.
Leaves your servers: nothing.
export const POST = clipmuxHandler({
upload, // who may upload
playback, // who may watch
asset, // a verified webhook
})Encrypted before it’s stored
Every output is AES-128 fMP4 HLS. Stored files, cached copies and leaked segment URLs are all ciphertext.
00000000 9f 3a c1 7e 52 08 d4 e6 b1 0c 7f 29 e8 44 a3 5d 00000010 c6 71 2b f0 98 1e 6a d3 47 bc 05 e9 3f 82 ad 14 00000020 5e d8 63 0a f7 b4 29 c5 1d 86 ee 3b 70 9a 42 cf 00000030 08 f1 b6 4d 2c 95 7a e3 61 d0 3e a8 17 5b c9 84
AES-128 ciphertext. The key is derived when a signed viewer asks, and is never stored.
Your backend signs playback tokens
Short-lived ES256 tokens, signed locally with no call to ClipMux. Playback IDs are public or private, and revocable. Signed playback
Keys are derived at delivery
Content keys come from one secret held outside the database. They are never written to storage. How encryption works
Encoders never hold storage credentials
A worker gets URLs signed for its one job. Modal, RunPod or a PC at home never see your bucket keys. Security model
ffmpeg runs in a sandbox
Landlock and seccomp, worker file names treated as untrusted, routes default-deny, and two-factor sign-in for the owner. Security checklist
What it isn’t
This deters copying. It isn’t DRM: anyone who can watch a video can record their screen. What encryption does and doesn’t do
Everything from upload to analytics
One Go binary and Postgres, with a dashboard you’ll actually use, light and dark, on a laptop or a phone.


Hand it to your coding agent
Install the ClipMux skills, or point your agent at the guide the SDK ships. Every docs page is also plain Markdown.
Read https://clipmux.com/agents.md, then add ClipMux uploads, webhooks and signed playback to this app.
$ npx skills add visheshgubrani/clipmuxllms.txtAn index of every pagellms-full.txtAll the docs in one fileopenapi.jsonThe integration API, OpenAPI 3.1/docs/….mdAny page as Markdown
Run it on your own server
$ curl -fsSL https://clipmux.com/install.sh | sudo sh- Linux on amd64 or arm64
- Docker with Compose v2
- Ports 80 and 443 free
- Two DNS names: one for the dashboard, one for media
ClipMux serves Edural’s course videos in production.
Coming from Mux or Cloudflare Stream? The migration guides map each concept across and say what ClipMux doesn’t have; the limitations page lists the rest.
AGPL-3.0 for the server. MIT for everything your apps embed: the SDK, the uploader, the player and the Worker.
Built on FFmpeg, Shaka Packager, whisper.cpp, Video.js, PostgreSQL and Caddy.