Repository navigation
Add a warning when some reels have Atmos and some do not - #1
Merged
Merged
Conversation
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
The 2023 edition renumbers it to section 6.3. Claude-Session: https://claude.ai/code/session_011HCUWvPpbN7e6hcwuWBJjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
VerificationNote::Code::MISSING_ATMOS_FROM_SOME_REELS(appended at the end of the enum),type
WARNINGbecause the standard says "should".verify_cpl()notes, for each reel, whether it has an Atmos asset, and adds the warning when atleast one reel has one and at least one does not. Like
MISSING_MAIN_SUBTITLE_FROM_SOME_REELS, itis only checked for SMPTE DCPs.
Test
verify_missing_atmos_from_some_reels(intest/verify_test.cc) followsverify_missing_main_subtitle_from_some_reels: a two-reel SMPTE DCP with picture and sound in bothreels, 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):
After:
All 120
verify_*tests pass with the change:Two notes on how that was run here, on an Apple Silicon Mac:
libdcp-test-private, so the fourverify_*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_twodandverify_invalid_sound_bit_depth.verify_invalid_tile_part_sizeexpects exact component sizes from OpenJPEG. With OpenJPEG builtnormally 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=offthe sizesmatch 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.ccin DCP-o-matic has aswitchover every code with nodefault,so after this is in libdcp DCP-o-matic needs a
caseforMISSING_ATMOS_FROM_SOME_REELS(and themanual's verifier list is regenerated by
doc/manual/verifier.py). The matching hint in DCP-o-maticitself, 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
--c++17.🤖 Generated with Claude Code
https://claude.ai/code/session_011HCUWvPpbN7e6hcwuWBJjs