Build a media server over your own storage, with an honest transcoding strategy. Stack: your choice plus ffmpeg, object storage or disk, Docker Compose, a domain with TLS. Consider deploying an existing media server and building the analysis around it — say which route you took and why. Library: scan paths, read container and codec metadata with ffprobe, store it. Never re-probe a file whose size and modification time are unchanged; a rescan that re-probes everything is what makes these tools feel slow. Playback, and the rule that decides whether this is pleasant or terrible: - **Direct play first.** If the client can handle the container, video codec, audio codec and bitrate, stream the original bytes with HTTP range requests. Do not transcode by default; that is the mistake that turns a small server into a CPU fire. - **Remux second.** If the codecs are fine but the container is not, repackage without re-encoding. Cheap. - **Transcode last**, and say so in the interface, showing why — which codec forced it and what the CPU cost is. - Cache transcoded output keyed by source hash plus target profile, so the second play is free. Cap and evict the cache by age and size. Adaptive streaming: produce HLS with two or three quality levels for transcoded content, so a poor connection steps down instead of buffering. Direct play stays a single stream. Bandwidth reality, first-class: a per-user monthly egress budget, a display of bytes served this month, and an estimate of what it would cost at your provider's published egress rate. Streaming a film is several gigabytes; most people building this have never done that arithmetic. Also: resume position per user per item, synchronised across devices; subtitle handling with external files and embedded tracks; and a share link for one item with an expiry and its own bandwidth cap. Write tests for the direct-play decision matrix against a table of client capabilities, for cache keys distinguishing quality profiles, and for range requests serving correct byte ranges on a seek. Do not build a mobile app or a metadata scraper for film artwork.