Skip to content

Dolby Vision: keep the declaration when the server copies the video - #839

Merged
GLinnik21 merged 4 commits into
plxnative:mainfrom
tiper:dv-copy-remux
Oct 18, 2026
Merged

GLinnik21 merged 4 commits into
plxnative:mainfrom
tiper:dv-copy-remux

Conversation

@tiper

@tiper tiper commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

A remux or a Jellyfin DirectStream that copies the video (audio converted to AC3) hands on the file's own elementary stream, DOVI configuration record included. The route cleared the declaration on every server-built stream, so such a file played as HDR10.

A /decision whose video lane says copy now keeps the declaration the direct play would have made: at the resolve, in an Original-recovery remux and in retranscode rebuilds (the session remembers the file's own record for that). Re-encodes and Profile 5 (no_video_copy) still clear it.

tiper and others added 4 commits October 18, 2026 21:56
A remux or a Jellyfin DirectStream that copies the video (audio converted
to AC3) hands on the file's own elementary stream, DOVI configuration
record included. The route cleared the declaration on every server-built
stream, so such a file played as HDR10.

A /decision whose video lane says copy now keeps the declaration the direct
play would have made: at the resolve, in an Original-recovery remux and in
retranscode rebuilds (the session remembers the file's own record for that).
Re-encodes and Profile 5 (no_video_copy) still clear it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Tiago Pereira <[email protected]>
…he DV-off note

A remux whose /decision copies the video now keeps the Dolby Vision
declaration, so the "Dolby Vision turns off" Audio-menu note is false in the
normal case and EnhancementRoute::RemuxDropsDolbyVision (same wire shape as
Remux) has no purpose left. Fold it into Remux, delete the note arm and the
widgets.tracks.enh_note_dv_off string from every locale, and rewrite the menu
test to expect the plain remux with no note.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
copied_video_dv now lives beside decision_copies_video in plan.rs and takes the
optional /decision body plus the route's EncodeContract; the cold-start plan,
the Original recovery and the live retranscode all ask it. A missing decision
follows the contract, which fixes the Original recovery declaring Dolby Vision
over a burn re-encode (it hardcoded remux=true). Prose the copy behaviour made
false is rewritten, and docs/pms-api.md M9 records the measurement.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21

Copy link
Copy Markdown
Collaborator

Thanks @tiper! Tested this on the TV: with Boost Dialog on, a Profile 8 and a Profile 7 film both played through the Plex remux with the panel in Dolby Vision. I pushed a few fixes to your branch:

  • merged main (picks up Dolby Vision: declare Profile 10 on AV1, not only on HEVC #838)
  • removed the "Dolby Vision turns off" note, it's not true anymore with this change
  • one helper now decides whether the server copied the video. Original recovery assumed a copy when the server didn't answer, even on a subtitle burn re-encode
  • added tests, plus the PMS measurement in docs/pms-api.md (M9)

@GLinnik21
GLinnik21 merged commit 046f305 into plxnative:main Oct 18, 2026
13 checks passed
@GLinnik21

Copy link
Copy Markdown
Collaborator

Thank you, @tiper! Merged.

@tiper
tiper deleted the dv-copy-remux branch October 19, 2026 09:56
RichiL10 added a commit to RichiL10/plx-native that referenced this pull request Oct 22, 2026
The fork's 8 MiB audio base (24 MiB ceiling), the dts_core lane (7.1 DTS-HD core in Auto unless dts_core=never), the fork's flac/pcm/opus feed formats in the forced profile, and a test PMS whose video lane says transcode on a subtitles=burn decision (as PMS does), which plxnative#839's copied_video_dv reads.
tiper added a commit to tiper/fin-native that referenced this pull request Oct 26, 2026
The maintainer pushed "Simplify:" commits onto every PR of ours he merged (plxnative#839, plxnative#937, plxnative#1018,
plxnative#1034), behaviour unchanged each time. The skill writes down what he changed (reuse the existing
path, one owner per state, values over globals, one named step for a repeated sequence, no
redundant guards, docs kept true) and the steps to take before opening an upstream PR so he does
not have to.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants