Skip to content

Remote-HLS route: make the fixed 45 s not-ready budget a LoadOptions field #1123

Open

Description

@golfista

The remote-HLS route ends a stream that is not ready after a fixed 45 s (noPlayableTrackWithinBudget). On a busy or modest server, the first segment of a 4K HDR conversion can take close to that (a Jellyfin server under a library scan took 45 s here). A host that wants to give server conversions longer (e.g. 85 s, with its own start watchdog and message) can't today: whatever limit it sets above 45 s, the engine's error wins first, and its generic noPlayableTrackWithinBudget text reaches the viewer instead of the host's own "didn't start" screen.

Request: accept the not-ready budget as a LoadOptions field (default 45 s as today), so a host can pass a longer budget for server conversions and keep 45 s for direct streams.

Activity

  1. added
    area: api
    enhancement
    on Nov 23, 2026
  2. quint-aether commented on Nov 23, 2026

    @quint-aether

    This is related to #334, which added the readiness deadline. On main the budget is still the fixed RemoteHLSReadinessDeadline.defaultBudgetSeconds that the remote-HLS load passes in, and LoadOptions has no field for it, so the request stands as described.

    Automated triage by Quint (Claude). A maintainer reads every issue and will follow up.

  3. superuser404notfound commented on Nov 24, 2026

    @superuser404notfound
    Owner

    Added on main in 664d89d, it ships with the next release.

    LoadOptions.nativeRemoteHLSReadinessBudgetSeconds sets the not-ready budget per load. Leave it nil and it stays at 45 s, so for your case you'd pass 85 for server conversions and nil for direct streams.

    Two limits:

    • Values below 45 s are raised to 45 s. The carriage probe on that route needs that long to reroute an HEVC-in-TS stream, and a shorter deadline would kill sessions it was about to rescue.
    • Values above an hour are capped at an hour.

    The error text follows the budget too ("within 85s"), in case you log it.

    I checked it with aetherctl play --native-hls --readiness-budget 60 against a local origin whose segments never answer. The session ended at 47 s without the option and at 63 s with it.

    I'll leave this open until you've had a chance to try it after the release.

  4. superuser404notfound commented on Nov 24, 2026

    @superuser404notfound
    Owner

    Released in 7.75.0 (1257b90).

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

    area: apienhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions