Skip to content

[bug] Web playback v3 rejects previously playable Dolby Vision Profile 8.1 remux #609

Closed

Description

@tomislav

What happened

After updating to current main, a movie that previously played through the web client no longer starts in Safari.

The source is available and readable inside the Silo container. POST /api/v1/playback/start returns HTTP 201, but the response contains a terminal decision with no_alternate_version; the browser consequently never requests a stream.

The unchanged source produced successful remux playback sessions on August 9, before playback protocol v3 was finalized in #567. Native iOS playback of the same source still works.

Source characteristics:

  • Filename represented here as video.mkv
  • 2160p HEVC Main 10
  • Dolby Vision Profile 8
  • Dolby Vision base-layer compatibility ID 1
  • DOVIWithHDR10
  • E-AC-3 5.1
  • MKV container
  • No alternate file version

This appears to be a web capability-reporting regression introduced by the v3 migration:

  • probeWebCapabilities() detects a generic hdr Boolean.
  • buildClientCapabilitiesV3() sends that Boolean but does not populate hdr_details.
  • outputRangeEligibleV3() and clientSupportsHDR10V3() consult the structured hdr_details, not the generic Boolean.
  • The source is therefore treated as range-incompatible with the web client.
  • Planning falls through to video transcoding; because this is a 4K source with no lower-resolution version, the terminal is reported as no_alternate_version.

The terminal is also misleading: the underlying decision is related to HDR/Dolby Vision compatibility, not the absence of a lower-resolution version by itself.

Steps to reproduce

  1. Run Silo from current main.
  2. Add a single-version movie matching the source characteristics above.
  3. Confirm the file is visible and readable inside the Silo container.
  4. Open the movie using the Silo web UI in Safari.
  5. Click Play.
  6. Observe that playback does not begin.
  7. Observe outcome=terminal reason=no_alternate_version in the server log and no subsequent stream request.

Expected behavior

The web client should retain a validated playback/remux route for a source and browser combination that previously worked, or correctly advertise and use the browser's available HDR output capability.

If the source genuinely cannot be played, the terminal should identify the HDR/Dolby Vision compatibility limitation instead of reporting that no alternate version exists.

Silo version / commit

1dcdd4b27ab5fcd697a32fc20f20c2400ca24688

Deployment

Docker

Clients affected

  • Web UI
  • Android
  • iOS/tvOS/macOS
  • Jellyfin-compat client
  • Other/not client-specific

Relevant logs

time=2026-08-12T05:53:36.961Z level=INFO msg="playback plan decided" component=playback outcome=terminal reason=no_alternate_version file_id=177 quality_preference=auto

AI involvement in this report

AI-assisted, human verified the repro

AI tool + model

OpenAI Codex / GPT-5

Confirmations

  • I reproduced this myself on a real deployment
  • Logs above are raw copy-paste, not AI-summarized

Activity

  1. tomislav commented on Aug 12, 2026

    @tomislav
    ContributorAuthor

    Follow-up after #613: Safari accepts dvh1/hvc1, not dvhe/hev1

    I deployed the merged fix from #613, but playback still terminates with:

    This HDR format can't be converted
    This file's dynamic range can't be converted for this device, and it can't be played as-is.

    Environment

    • MacBook Pro 16-inch, Apple Silicon
    • Built-in Liquid Retina XDR display
    • macOS 26.6.1
    • Safari 26.6
    • Default Safari user agent
    • Responsive Design Mode disabled
    • Self-hosted Docker deployment running current main

    Server result

    A clean retry produced:

    playback plan decided outcome=terminal reason=hdr_transcode_unsupported quality_preference=auto
    POST /api/v1/playback/start status=201
    

    No stream request followed.

    The normalized request advertised:

    {
      "hdr": false,
      "hdr_details": {
        "hdr10": false,
        "hdr10_plus": false,
        "hlg": false,
        "dolby_vision_profiles": []
      },
      "max_resolution": "1080p"
    }

    The original issue source and a second real Profile 8.1 source both reproduce the terminal. Both are approximately 2160p24 HEVC Main 10, Dolby Vision Profile 8, Level 6, BL compatibility ID 1, DOVIWithHDR10.

    Safari capability evidence

    On the affected Safari instance:

    matchMedia("(dynamic-range: high)").matches
    // false
    
    matchMedia("(video-dynamic-range: high)").matches
    // false

    However, Safari distinguishes the Apple-recommended sample entries:

    Codec string HTMLMediaElement.canPlayType() MediaSource.isTypeSupported()
    dvhe.08.06 "" true
    dvh1.08.06 "probably" true
    hev1.1.6.L120.90 "" true
    hvc1.1.6.L120.90 "probably" true
    hev1.2.4.L153.B0 "" true
    hvc1.2.4.L153.B0 "probably" true

    Exact MediaCapabilities.decodingInfo() probes matching the source returned this for both dvh1.08.06 and HDR10 hvc1.2.4.L150.B0:

    {
      "supported": true,
      "smooth": true,
      "powerEfficient": true
    }

    Safari therefore provides positive, exact decode evidence even though the generic dynamic-range media queries return false. The current implementation suppresses the otherwise valid Dolby Vision claim because it gates the canPlayType() result behind hdr.

    Remux evidence

    The current remux path uses:

    -tag:v dvhe
    

    Testing the equivalent command with the bundled FFmpeg 7.1.4 produced dvhe and hvcC, but no dvvC box. FFmpeg reported:

    Not writing 'dvcC'/'dvvC' box. Requires -strict unofficial.
    

    Testing this instead:

    -tag:v dvh1 -strict unofficial
    

    produced all of:

    dvh1
    hvcC
    dvvC
    

    FFprobe then preserved:

    DOVI configuration record
    dv_profile=8
    dv_level=6
    dv_bl_signal_compatibility_id=1
    rpu_present_flag=1
    el_present_flag=0
    bl_present_flag=1
    

    This contradicts the current code comment that forcing dvh1 necessarily loses the Dolby Vision configuration record. It is retained when -strict unofficial is supplied.

    Apple recommends hvc1/dvh1 rather than hev1/dvhe:
    https://developer.apple.com/documentation/http-live-streaming/hls-authoring-specification-for-apple-devices/

    Proposed follow-up

    1. Probe dvh1.05.06 and dvh1.08.06 for progressive Dolby Vision.

    2. Use hvc1 for the generic HEVC and exact HDR10 probes.

    3. Do not discard exact positive MediaCapabilities/canPlayType evidence solely because dynamic-range: high is false. Decoder capability and active-output HDR reporting should be represented separately.

    4. Emit progressive preserved-DV remuxes using:

      -tag:v dvh1 -strict unofficial
      
    5. Add an integration test that inspects the generated MP4 and verifies the dvh1, hvcC, and dvvC boxes.

    6. Revisit max_resolution detection. Safari reports logical CSS dimensions with DPR 2, causing the built-in XDR panel to be advertised as only 1080p.

    This appears to be a follow-up compatibility gap in #613 rather than a deployment-specific configuration problem.

  2. tomislav commented on Aug 13, 2026

    @tomislav
    ContributorAuthor

    Follow-up after #617: confirmed Safari transport failure

    I deployed #617 and retested the same class of Dolby Vision Profile 8.1 source in Safari 26.6 on an Apple Silicon MacBook Pro with its built-in XDR display.

    #617 fixes the initial capability/planning failure: Silo now selects a server_remux_progressive Dolby Vision plan and emits a dvh1 MP4 retaining its Dolby Vision configuration record. Playback still fails, however. Safari reports a decoder error immediately after requesting the stream, and the UI then shows:

    This file's dynamic range can't be converted for this device, and it can't be played as-is.

    Controlled transport test

    I captured an MP4 generated with the same remux recipe and verified it contains:

    • HEVC Main 10
    • dvh1
    • Dolby Vision Profile 8, Level 6
    • BL compatibility ID 1
    • dvvC / DOVI configuration record
    • BT.2020/PQ
    • E-AC-3 audio

    The same bytes were then tested in Safari using two HTTP delivery methods:

    Delivery Result
    Known Content-Length, Accept-Ranges: bytes, proper 206 Partial Content responses Plays
    Unbounded 200 OK, Transfer-Encoding: chunked, no byte-range support—the current Silo progressive-remux behavior Fails

    A video-only version and an HDR10/RPU-stripped version also play as complete range-capable files, ruling out the DV bitstream, E-AC-3 audio, FFmpeg output, and display capability as the primary cause.

    The same DV P8.1 source packaged as segmented fMP4 HLS also plays successfully in Safari.

    This isolates the remaining failure to Silo's progressive remux transport. ServeRemuxWithOptions streams FFmpeg stdout as an unknown-length chunked response and cannot honor Safari's byte-range requests. Safari's media stack requires range-capable HTTP media delivery; answering a media range request with an unbounded 200 response is rejected.

    Apple documentation:
    https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html

    Relevant WebKit issue:
    https://bugs.webkit.org/show_bug.cgi?id=211323

    Recommended delivery fix

    For Safari container-normalization remuxes, use the existing segmented server_remux_hls path rather than server_remux_progressive, while preserving Profile 8 with:

    -tag:v dvh1 -strict unofficial
    

    The HLS copy pipeline also needs to retain/advertise the verified DV sample entry and configuration record, and Safari native-HLS delivery must receive the applicable DV/HDR capability claim.

    A seekable completed-remux cache capable of returning Content-Length and 206 Partial Content would also work, but an unbounded live progressive remux cannot satisfy Safari's range behavior.

    Separate fallback defect

    There is also a deterministic replanning bug after the initial Safari decoder failure.

    The active client request advertises both native DV P8 and HDR10 support, and the server confirms that the source RPU can be stripped. After the native-DV plan fails, the planner excludes that exact plan but still leaves rangeOK == true. The HDR10 fallback is gated by:

    dvStrip := dvStripEligible && (source.DVProfile == 7 || !rangeOK)

    Because the source is Profile 8 and rangeOK remains true, the planner skips the valid DV-to-HDR10 strip plan and falls through to the misleading hdr_transcode_unsupported terminal.

    A regression test should cover:

    DV P8.1 source
    + client supports native DV and HDR10
    + native-DV plan_attempt_key has failed
    => select a distinct strip_to_hdr10 remux plan
    
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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions