Skip to content

Video step: MP4 optimized for web playback #264

Done

Description

@clbotdev

Summary

Make an MP4 optimized for playing on the web:

  • H.264 video and AAC audio, so it plays in every browser
  • faststart, so playback can begin before the whole file downloads
  • An optional maximum resolution and bitrate

This is the simple option for clients that don't need HLS (#139).

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

Setting

Turned on by the videoStreaming media setting (see #247):

Like the other media settings, it's managed through the REST API, MCP tools, CLI and the dashboard, and changing it affects new uploads only.

Behavior

Open questions

  • HLS and MP4 together. With a single videoStreaming value, an app gets one or the other. Some clients may want both, e.g. HLS for playback and an MP4 for downloads or offline use. If that comes up, add a separate setting such as mp4Fallback: boolean instead of more videoStreaming values.
  • Size limit setting. Whether to add a setting for the maximum resolution (e.g. mp4MaxResolution: "1080p"), or start with a fixed limit.
  • Replace or keep the original. WebP replaces the original image (Stream uploads straight to S3 instead of staging them on disk #250). For MP4, keeping the original costs storage, but a remux may be the same size. Decide whether "mp4" keeps both.
  • Metering: re-encoding counts toward processing minutes, a remux probably shouldn't (Pipelines #247).

Activity

  1. added
    enhancement
    on Nov 17, 2026
  2. s3rot0n1n commented on Nov 28, 2026

    @s3rot0n1n
    Contributor

    Delivered in #291 (pipelines phase 1, step 4): an MP4 optimized for web playback, turned on with videoStreaming: "mp4". Closing; the PR didn't use a closing keyword.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions