Self-hosted · MIT-licensed · Multi-tenant

Open-source video hosting and streaming

Upload videos, transcode them to adaptive HLS and play them in an embeddable player on your own sites. Your buckets, your domains, your viewers.

Why OpenStream

Courses, product demos and marketing videos belong on your own sites. Not behind someone else's branding, tracking or recommendations. OpenStream keeps every file in buckets you control, plays it only where you allow, and tells you who actually watched.

How it works

From upload to analytics

  1. 01

    Upload

    Drop in an MP4 or MOV of up to 20 GiB. Uploads are resumable, so a dropped connection picks up where it left off.

    MOV
    launch-film.mov4.2 GiB · 0%

    Resumable upload

  2. 02

    Transcode

    Every video becomes adaptive HLS in the qualities you pick, with a poster and seek previews. Runs on any CPU, or faster on a GPU.

    1080p5.0 Mbps
    720p2.8 Mbps
    480p1.4 Mbps
    360p0.8 Mbps

    Adaptive HLS · poster · seek previews

  3. 03

    Play

    Paste one embed code on your site. Only the sites you allow can play your videos, and signed links can make them expire.

    3:20 / 10:34
    • aurora-pictures.testallowed
    • blog.aurora-pictures.testallowed
    • someone-else.examplerefused
  4. 04

    Measure

    See views, watch time, completion and retention for every video, along with the devices and sites your viewers watch on.

    Views0
    Average view5m 28s
    Completion0

    Views per day · last 30 days

Features

Everything between the upload and the view

01Libraries

Every video, ready in every quality

  • Group videos into libraries, each with its own qualities, player style and allowed sites.
  • Pick a thumbnail from any frame, or upload your own image.
  • Thumbnail previews while viewers scrub through a video.
A library with processed videos

02Analytics

Real viewing data, not guesses

  • Views, watch time and completion over the last 7, 30 or 90 days.
  • See exactly where viewers stop watching.
  • Devices and sites, without tracking individual viewers.
Library analytics with daily views, top videos, devices and sites

03API and webhooks

Built for your backend

  • Up to 25 named keys per library, with the access you choose for each.
  • Signed webhooks for every upload and processing step, retried until they arrive.
  • A documented API with a ready-made TypeScript client.
Library API keys and playback security

04Organizations

Multi-tenant from day one

  • Members, invitations, ownership transfer and scheduled deletion.
  • Use your own S3-compatible storage, with credentials kept encrypted.
  • An activity log of every change and who made it.
The organization activity log
20 GiB

Maximum upload size

4

Qualities, from 360p to 1080p

25

API keys per library

100%

Open source, MIT-licensed

Security

Your media, behind your rules

Tenant isolation

Every organization sees only its own data, and each API key works only on its own library.

Secrets at rest

API keys are hashed, and storage credentials and webhook secrets are encrypted. None of them can be read back.

Secure sessions

Dashboard requests are protected against cross-site forgery, and the API uses keys instead of cookies.

Safe webhooks

Webhooks are only sent to public HTTPS addresses, never into your private network.

Quick start

Running in eight commands

All you need is Bun, Docker, Caddy and ffmpeg. Then openapp.openstream.localhost and sign up.

Read the full guide

~/open-stream

$ git clone https://github.com/its-gabo/open-stream.git
$ cd open-stream
$ caddy trust  # once, for the local HTTPS domains
$ cp .env.example .env  # set AUTH_SECRET and STORAGE_ENCRYPTION_KEY
$ docker compose up -d  # PostgreSQL, Redis, Mailpit, RustFS
$ bun install
$ bun run db:migrate
$ bun run dev  # web app, API, worker and proxy

FAQ

Questions, answered

No. Videos are encoded on the CPU by default. If you have an Apple Silicon Mac or an NVIDIA GPU, you can switch to it for faster encoding.

In the built-in storage, or in your own S3-compatible bucket. Each library can use a different one.

Yes. List the sites allowed to play a library and no other site can embed it. For stricter control, use signed links that expire.

A view counts once playback starts, and watch time is measured as people actually watch. Viewers are never identified.

Yes. Create an API key with upload access and send files from your backend with the API.

Nothing. OpenStream is released under the MIT License. You pay only for the servers and storage you run it on.

0:00 / 10:34
IntroHow it worksFeaturesSecurityQuick startFAQ