Skip to content

Detect Dolby Atmos, DTS:X and DTS-HD - #320

Open
zotabee wants to merge 1 commit into
jellyfin:masterfrom
zotabee:atmos-dtsx-dtshd
Open

zotabee wants to merge 1 commit into
jellyfin:masterfrom
zotabee:atmos-dtsx-dtshd

Conversation

@zotabee

@zotabee zotabee commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

The codec mapping only looks at the codec name, so TrueHD Atmos is sent as dolby_truehd, DD+ Atmos as dolby_digital_plus, and DTS-HD MA, DTS-HD HRA and DTS:X all as plain dts. Trakt has its own value for each of them (API docs).

The mapping now also reads the stream's AudioSpatialFormat (DolbyAtmos / DTSX), which Jellyfin takes from FFmpeg's profile name (MediaStream.cs, profiles.c), and the profile itself for DTS-HD MA and HRA. DTS:X is checked first, because its profile name also contains "DTS-HD MA". With "Send media technical info to Trakt" on, the next export updates the affected items.

Tested on my Jellyfin 12.1 server since 2026-10-18. The first export sent dolby_digital_plus_atmos for 664 items, dts_ma for 63 (one of them, Weeds S06E03, only together with #323, because its first audio track is a commentary) and dolby_atmos for 6, and comparing my Trakt data exports from before and after, trakt.tv has exactly those values now. Two of them, plus test films I added (my library has no DTS:X or DTS-HD HRA, and its TrueHD Atmos items are episodes); for the test films, the master column comes from master's code:

Film Audio track master This PR
Ad Vitam (2025) DD+ Atmos 5.1 dolby_digital_plus dolby_digital_plus_atmos
Derailed (2005) DTS-HD MA 5.1 dts dts_ma
Kin (2018), Apollo 13 (1995) DTS-HD MA + DTS:X 7.1 dts dts_x
Ride On (2023) DTS-HD HRA 5.1 dts dts_hr
Jaws (1975) TrueHD Atmos 7.1 dolby_truehd dolby_atmos

Trakt's new API docs no longer list these metadata fields; I asked about it in trakt/trakt-api#1012.

Builds with no warnings on its own and merges cleanly with #321, #322, #323, #329 and #342, which change the same file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0181seTYh8Bo6yc19Ba5p5bo
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