Skip to content

Add research notes on Dolby Atmos, channel 14 sync and MXF handling - #2

Merged
JaumeAP merged 51 commits into
mainfrom
downmix-7-1-stereo
Oct 21, 2026
Merged

JaumeAP merged 51 commits into
mainfrom
downmix-7-1-stereo

Conversation

@JaumeAP

@JaumeAP JaumeAP commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Summary report plus three raw research-agent notes covering: how the
channel 14 / index 13 sync signal is standardized (ISDCF Doc 4) and
implemented (libdcp FSK, SMPTE ST 430-14), how cinema processors
switch between Atmos and PCM in real time, and how the local
DCP-o-matic/libdcp code path handles Atmos (pass-through only, no
decode/render) and channel routing in the player.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01JuAmVXjNeS7T8ic4z8EvJY

JaumeAP and others added 30 commits September 26, 2026 23:47
Summary report plus three raw research-agent notes covering: how the
channel 14 / index 13 sync signal is standardized (ISDCF Doc 4) and
implemented (libdcp FSK, SMPTE ST 430-14), how cinema processors
switch between Atmos and PCM in real time, and how the local
DCP-o-matic/libdcp code path handles Atmos (pass-through only, no
decode/render) and channel routing in the player.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JuAmVXjNeS7T8ic4z8EvJY
Add research notes on Dolby Atmos, channel 14 sync and MXF handling
This includes:
* tolerate badly-formed LoadFontNode IDs in SMPTE DCPs.
* order reel markers by offset.
Add stereo_downmix_map() in audio_mapping.cc, used by the Player default
mapping and by the stereo mixdown export, so both give the same result.

- 5.1 to stereo: ETSI TS 102 366 6.8 LoRo, normalized (0.414 / 0.293).
- 7.1 to stereo: same rule with Lrs/Rrs (0.320 / 0.227).
- 2-channel films: identity. 4-channel films: unchanged.
- LFE is not mapped in either path.
- 7.1 to 5.1 monitor fold: Lrs/Rrs into Ls/Rs at 0 dB (Dolby Standard).
- Default stereo mapping is regenerated per film and is not saved.

Sources and open points: doc/design/downmix_7_1_to_5_1.md.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XnCTLat7FCCFzGYH3sxLUu
Otherwise if partition 0 is mounted on C:, and partition 1 is not, the 0
mount points of partition 1 would overwrite the 1 mount point of
partition 0.  This would suggest that the disk is not mounted.
cth103 and others added 21 commits October 16, 2026 00:26
* attempted improvements to unmounting/buffer flushing on Windows
* lock/unlock volumes on Windows as a speculative improvement
* better error handling
config.h used the macro without including its header, so any file
that included config.h before constants.h failed to compile.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CLoFtWrAbgnUD4ni8dAUwq
Lrs and Rrs were added to Ls and Rs at 0 dB, which reaches 2.0 with
full-level 7.1 content. Ls/Rs and Lrs/Rrs now each go in at 0.5 for
films with 12 or more channels, so the sum stays within 1.0. 5.1 films
are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CLoFtWrAbgnUD4ni8dAUwq
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CLoFtWrAbgnUD4ni8dAUwq
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CLoFtWrAbgnUD4ni8dAUwq
…the monitor

Side and rear get the Pro Logic IIx figures (-1.2 dB, -6.2 dB), same
side only. Their squares add up to 1.0, so the amplitudes can exceed 1;
limit_peaks() in Butler::audio (instant attack, 100 ms release, one
gain for all channels) catches that.

Not yet compiled or tested when committed: build and test/limiter_test
are still to run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CLoFtWrAbgnUD4ni8dAUwq
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CLoFtWrAbgnUD4ni8dAUwq
Ls = 0.707 Lss + 0.707 Lrs, as in ETSI TS 103 190-1 table 219, ETSI TS
102 366 dmixtyp 1 and the FDK-AAC default. The amplitudes add up to
1.41; the monitor's peak limiter handles that.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CLoFtWrAbgnUD4ni8dAUwq
L, R and C keep the 5.1 gains, so a 7.1 film is not louder than a 5.1
one in the front channels. Ls = 0.707 Lss + 0.707 Lrs first, then the
ETSI 5.1 to stereo rule. The sum into each output is 1.12 at most.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CLoFtWrAbgnUD4ni8dAUwq
5.1 to stereo is the rule the export already had (0.369 / 0.261), so
ffmpeg_encoder_h264_test5 passes again. 7.1 is folded to 5.1 first.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CLoFtWrAbgnUD4ni8dAUwq
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017CHMGrzt5n5oKGFSjhKnrp
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017CHMGrzt5n5oKGFSjhKnrp
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017CHMGrzt5n5oKGFSjhKnrp
@JaumeAP
JaumeAP merged commit 6d1711a into main Oct 21, 2026
1 check passed
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.

3 participants