fix(tracks): mark AC-4 Atmos from the HLS ATMOS channels identifier and carry atmos without JOC through signature, export and remote

This commit is contained in:
imSp4rky
2026-12-02 15:43:23 -07:00
parent 3b6bd02e46
commit eeab646272
11 changed files with 154 additions and 9 deletions
+1 -1
View File
@@ -548,7 +548,7 @@ def get_tracks(self, title: Title_T) -> Tracks:
- `signature` holds the attributes that the track list and selection
read: codec, range, resolution, frame rate, bitrate and name for video;
language, codec, channels, JOC, descriptive, bitrate and name for audio;
language, codec, channels, JOC, Atmos, descriptive, bitrate and name for audio;
language, codec, flags and name for subtitles.
- The helper does not remove copies inside one manifest. To remove them,
call `tracks.dedupe()`. Two tracks that differ only in a value outside
+4
View File
@@ -354,6 +354,10 @@ unshackle dl -a EC3,AAC EXAMPLE 81234567
`5.1.4` matches on its total number of channels, so `-c 10` selects it.
- `-naa` / `--noatmos`: exclude Atmos audio tracks from selection.
A track is Atmos when its manifest says so: a DD+ JOC descriptor, an HLS `CHANNELS` value with
`JOC` or `ATMOS` (`16/JOC`, `2/IMSA,ATMOS`), or the Smooth Streaming `HasAtmos` attribute. A DASH
manifest has no Atmos signal for AC-4, so a DASH AC-4 track is Atmos only when the service marks it.
```shell title="5.1 audio, no Atmos"
unshackle dl -c 5.1 --noatmos EXAMPLE 0ABC123
```