Skip to content

[bug] DV7 HDR10 fallback retains enhancement-layer NAL units #656

Closed

Description

@blurbery

What happened

On a real Docker deployment, the server_dv7_to_hdr10 remux recipe produced an HDR10-signalled HEVC stream that still contained Dolby Vision Profile 7 enhancement-layer NAL units.

The current recipe uses dovi_rpu=strip=1. That removes the Dolby Vision configuration and RPU metadata, but Profile 7 enhancement-layer units are interleaved in the same video stream as NAL type 63, so selecting 0:V:0 does not remove them. This contradicts the transformation's enhancement_layer_discarded claim and can hand an HDR10-only client bytes it did not declare support for.

This is separate from #653: that PR changes how macOS Safari receives an HDR remux. This report is about the byte-level correctness of the DV7-to-HDR10 output for every remux delivery.

Steps to reproduce

I reproduced this with a dual-layer Profile 7 source on Jellyfin FFmpeg 7.1.4. The media path and title are redacted; no other command output was changed.

  1. Confirm that the source is HEVC Main 10, PQ/BT.2020, Dolby Vision Profile 7, with an enhancement layer.
  2. Copy two seconds through the current dovi_rpu=strip=1 recipe and append trace_headers. Count type-63 units emitted after dovi_rpu: 51.
  3. Repeat with dovi_rpu=strip=1,filter_units=remove_types=63. Count type-63 units emitted after the complete chain: 0.
  4. Probe the corrected output in memory. It remains HEVC Main 10 with BT.2020 primaries, BT.2020 non-constant-luminance matrix, and SMPTE ST 2084 transfer; it no longer contains a Dolby Vision configuration record.

Commands used:

# <profile7-source> is an explicit redaction of the private media path.
ffprobe -v error -select_streams v:0 \
  -show_entries stream=codec_name,profile,pix_fmt,color_space,color_transfer,color_primaries:stream_side_data \
  -of json <profile7-source>

ffmpeg -nostdin -hide_banner -loglevel trace -t 2 -i <profile7-source> \
  -map 0:V:0 -an -sn -dn -c:v copy \
  -bsf:v dovi_rpu=strip=1,trace_headers -f null - 2>&1 \
  | awk '/trace_headers/ && /nal_unit_type: 63/ {count++} END {print count+0}'

ffmpeg -nostdin -hide_banner -loglevel trace -t 2 -i <profile7-source> \
  -map 0:V:0 -an -sn -dn -c:v copy \
  -bsf:v dovi_rpu=strip=1,filter_units=remove_types=63,trace_headers -f null - 2>&1 \
  | awk '/trace_headers/ && /nal_unit_type: 63/ {count++} END {print count+0}'

ffmpeg -nostdin -hide_banner -loglevel error -t 2 -i <profile7-source> \
  -map 0:V:0 -an -sn -dn -c:v copy \
  -bsf:v dovi_rpu=strip=1,filter_units=remove_types=63 -f hevc - \
  | ffprobe -v error -f hevc -i - \
      -show_entries stream=codec_name,profile,pix_fmt,color_space,color_transfer,color_primaries:stream_side_data \
      -of json

Expected behavior

When Silo advertises and selects server_dv7_to_hdr10, the output should contain a clean HDR10 base layer: no Dolby Vision configuration/RPUs and no interleaved type-63 enhancement-layer units.

The transformation should be available only when FFmpeg provides both dovi_rpu and filter_units. Because this changes the bytes promised by the recipe, its recipe version should also change so an older pooled node cannot claim compatibility.

Silo version / commit

  • Upstream baseline containing the incomplete recipe: edd919c5
  • Real Docker deployment used for the A/B media probe: 815a2bd86e53216e81e18ce4ceaa024bfc82e21b
  • FFmpeg: 7.1.4-Jellyfin

Deployment

Docker

Clients affected

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

The invalid fallback is generated server-side, so the defect is not limited to one client. It is directly relevant to macOS Safari because Safari cannot decode Profile 7 and relies on the HDR10 fallback.

Relevant logs

ffmpeg version 7.1.4-Jellyfin Copyright (c) 2000-2026 the FFmpeg developers

dovi_rpu
filter_units

{
    "programs": [],
    "stream_groups": [],
    "streams": [
        {
            "codec_name": "hevc",
            "profile": "Main 10",
            "pix_fmt": "yuv420p10le",
            "color_space": "bt2020nc",
            "color_transfer": "smpte2084",
            "color_primaries": "bt2020",
            "side_data_list": [
                {
                    "side_data_type": "DOVI configuration record",
                    "dv_version_major": 1,
                    "dv_version_minor": 0,
                    "dv_profile": 7,
                    "dv_level": 6,
                    "rpu_present_flag": 1,
                    "el_present_flag": 1,
                    "bl_present_flag": 1,
                    "dv_bl_signal_compatibility_id": 6,
                    "dv_md_compression": "none"
                }
            ]
        }
    ]
}

[trace_headers @ 0x60759597db80] nal_unit_type: 63(UNSPEC63), nuh_layer_id: 0, temporal_id: 0
[trace_headers @ 0x60759597db80] nal_unit_type: 63(UNSPEC63), nuh_layer_id: 0, temporal_id: 0

# type-63 units after the current dovi_rpu-only recipe, two-second sample
51

# type-63 units after dovi_rpu + filter_units, same source and interval
0

{
    "programs": [],
    "stream_groups": [],
    "streams": [
        {
            "codec_name": "hevc",
            "profile": "Main 10",
            "pix_fmt": "yuv420p10le",
            "color_space": "bt2020nc",
            "color_transfer": "smpte2084",
            "color_primaries": "bt2020"
        }
    ]
}

AI involvement in this report

AI-assisted, human verified the repro

AI tool + model

OpenAI Codex / gpt-5

Confirmations

  • I reproduced this on a real deployment.
  • The command output above is raw copy-paste, not AI-summarized. The private media path and title are explicitly redacted; two repeated trace_headers lines are shown before the complete count.

Activity

  1. added
    bug
    triaged
    and removed
    triaged
    on Sep 20, 2026
  2. added theissue type on Sep 20, 2026
  3. removed
    bug
    on Sep 20, 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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions