Skip to content

HLS for video streaming #139

Done
Done

Description

@s3rot0n1n

Summary

Turn uploaded videos into HLS streams with adaptive bitrate, so playback starts fast and adjusts to the viewer's connection.

Part of Phase 1 of #247. Depends on Phase 0 (#257).

Inspiration: https://x.com/steve_tenuto/status/1854919704483434763

Settings

Two new media settings (see #247):

  • videoStreaming: "off" | "hls" | "mp4" ("mp4" is covered in Video step: MP4 optimized for web playback #264)
    • "hls" by default for new apps.
    • "off" for apps that existed before this change, so their processing and storage use don't change without notice.
  • hlsRenditions: which renditions to make, e.g. ["1080p", "720p", "480p"].
    • Default: ["1080p", "720p", "480p"].
    • Values are checked against a fixed list (e.g. 2160p, 1440p, 1080p, 720p, 480p, 360p). Users can't set raw bitrates or ffmpeg arguments.

Like the other media settings, both are managed through the REST API, MCP tools, CLI and the dashboard, and changing them affects new uploads only.

Behavior

Open questions

  • Segment length and codec settings (e.g. 6-second segments, H.264 and AAC) for the widest player support.
  • How private media is signed: one CloudFront signed cookie or policy for the whole prefix instead of one signature per segment URL. HLS with AES-128 encryption and a key endpoint #271 needs the same thing.
  • Player support in @medialit/react (hls.js, with native HLS on Safari).
  • Storage and metering: segments count toward storage, and encoding counts toward processing minutes (Pipelines #247).

Activity

  1. converted this from a draft issue on Nov 9, 2024
  2. s3rot0n1n commented on Nov 28, 2026

    @s3rot0n1n
    ContributorAuthor

    Delivered in #291 (pipelines phase 1, step 5): HLS with adaptive bitrate, turned on with videoStreaming: "hls". Closing; the PR didn't use a closing keyword.

  3. moved this from Todo to Done in MediaLiton Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions