Skip to content

Add a warning when some reels have Atmos and some do not - #1

Merged
JaumeAP merged 2 commits into
mainfrom
verify-atmos-in-some-reels
Oct 23, 2026
Merged

JaumeAP merged 2 commits into
mainfrom
verify-atmos-in-some-reels

Conversation

@JaumeAP

@JaumeAP JaumeAP commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Why

SMPTE ST 429-19:2019 (DCP Operational Constraints for Immersive Audio), section 6.2, says "Each
reel of an Immersive Audio Composition should contain an Immersive Audio element". It is a "should"
(recommended) rather than a "shall", but in practice some processors do not cope. I saw this at the
Phenomena Experience cinema in Barcelona (https://phenomena-experience.com) with the Spanish version
of John Wick: Chapter 4 (2023): a reel 0 with added title cards had been put in front of the feature
without Atmos, and the Dolby CP850 stayed in the "reverted" (to PCM) state instead of playing the
Atmos.

The verifier says nothing about this today, so such a DCP passes the DCP-o-matic Player's and
Verifier's checks.

What

  • New code VerificationNote::Code::MISSING_ATMOS_FROM_SOME_REELS (appended at the end of the enum),
    type WARNING because the standard says "should".
  • verify_cpl() notes, for each reel, whether it has an Atmos asset, and adds the warning when at
    least one reel has one and at least one does not. Like MISSING_MAIN_SUBTITLE_FROM_SOME_REELS, it
    is only checked for SMPTE DCPs.
  • Text: "At least one reel contains an Atmos asset, but some reel(s) do not."

Test

verify_missing_atmos_from_some_reels (in test/verify_test.cc) follows
verify_missing_main_subtitle_from_some_reels: a two-reel SMPTE DCP with picture and sound in both
reels, and an Atmos asset (written with AtmosAssetWriter, no private data needed) in reel 1 only,
in both reels, or in neither. Only the first case must give the new warning.

Before the detection was added (the code and its text already present, so that the test compiles):

$ build/test/tests --run_test=verify_missing_atmos_from_some_reels,verify_missing_main_subtitle_from_some_reels
Running 2 test cases...
../test/verify_test.cc:305: fatal error: in "verify_missing_atmos_from_some_reels":
...
Not seen:
At least one reel contains an Atmos asset, but some reel(s) do not.
*** 1 failure is detected in the test module "libdcp_test"

After:

$ build/test/tests --run_test=verify_missing_atmos_from_some_reels,verify_missing_main_subtitle_from_some_reels
Running 2 test cases...
*** No errors detected

All 120 verify_* tests pass with the change:

$ build/test/tests --run_test='verify_*' -- <private test data>
Running 120 test cases...
*** No errors detected

Two notes on how that was run here, on an Apple Silicon Mac:

  • I do not have libdcp-test-private, so the four verify_* tests that need it used stand-ins:
    24-frame excerpts of a real 2K and a real 4K DCP for the two JPEG2000 codestream tests, and
    synthetic DCPs for verify_threed_marked_as_twod and verify_invalid_sound_bit_depth.
  • verify_invalid_tile_part_size expects exact component sizes from OpenJPEG. With OpenJPEG built
    normally on arm64, component 1 comes out 12 bytes larger (1294426 instead of 1294414), because clang
    fuses floating-point multiply-adds there; with OpenJPEG built with -ffp-contract=off the sizes
    match and the test passes. The same test fails in the same way without this change.

Note for DCP-o-matic

src/wx/verify_dcp_result_panel.cc in DCP-o-matic has a switch over every code with no default,
so after this is in libdcp DCP-o-matic needs a case for MISSING_ATMOS_FROM_SOME_REELS (and the
manual's verifier list is regenerated by doc/manual/verifier.py). The matching hint in DCP-o-matic
itself, shown before a DCP is made, is JaumeAP/dcpomatic#11.

Coding style

Follows the README's coding style. libdcp has to stay C++11: I could only build it here with
--c++17 (only libxml++-4.0 is installed), so the two changed files were also compiled with
-Wpre-c++14-compat -Wpre-c++17-compat, which reports nothing in the new code.

What was not checked

  • Run on macOS (Apple clang 21, Xcode 26) only, built with --c++17.

🤖 Generated with Claude Code

https://claude.ai/code/session_011HCUWvPpbN7e6hcwuWBJjs

SMPTE ST 429-19 section 6.2 says that each reel of a composition with
immersive audio should contain it, and some processors fall back to
the normal sound when a reel is missing it.

Claude-Session: https://claude.ai/code/session_011HCUWvPpbN7e6hcwuWBJjs
@JaumeAP
JaumeAP merged commit 67739ff into main Oct 23, 2026
@JaumeAP
JaumeAP deleted the verify-atmos-in-some-reels branch October 23, 2026 17:51
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.

1 participant