Repository navigation
Add a hint when some reels have Atmos and some do not - #11
Merged
Merged
Conversation
SMPTE ST 429-19 recommends that every reel of a DCP with immersive audio has it, and some processors fall back to the normal sound when a reel is missing it. 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.
DCP-o-matic makes this kind of DCP without any warning, for example when an ident or a title reel
without Atmos is added in front of a feature that has it.
What
A new check in
Hints(check_atmos_in_some_reels()): for each of the film's reels it looks forcontent with Atmos overlapping that reel. If at least one reel has Atmos and at least one does not,
the hint is
Like the other hints, it appears in the hints dialogue before the DCP is made (Jobs > Make DCP and
the batch equivalent) and in Tools > Hints. No hint is given when every reel, or no reel, has Atmos.
Tests
In
test/hints_test.cc, a helper makes three 10 s reels fromtest/data/flat_red.pngwithtest/data/atmos_0.mxfat given positions (public test data only):hints_atmos_in_some_reels: Atmos at 0 s and 20 s (none in the middle reel): the hint must appear.hints_atmos_in_all_or_no_reels: Atmos in all three reels, and in none: the hint must not appear.Without the new check:
With it:
All 21
hint*tests pass with the change.Scope
src/lib/hints.ccandsrc/lib/hints.h(the new check and its call),test/hints_test.cc..potfiles are not touched.although its test uses the same three-reel layout.
to libdcp: Add a warning when some reels have Atmos and some do not libdcp#1.
What was not checked
Hintsin the tests.🤖 Generated with Claude Code
https://claude.ai/code/session_011HCUWvPpbN7e6hcwuWBJjs