Skip to content

Commit 67b1e90

Browse files
fix(HLS): Adding support for DTS Express in HLS fMP4 (#5112) (#5117)
The SampleEntry box in the SampleDescription (stsd) box will have the codingname 'dtse' for DTS Express audio tracks. This is defined in Table E-1 of ETSI TS 102 114 V1.6.1 (2019-08) DTS Coherent Acoustics; Core and Extensions with Additional Profiles. The 'dtse' codingname has been added to the AUDIO_CODEC_REGEXPS_ list, which enables support for playback of DTS Express in HLS fMP4 streams. The 'ddts' and 'udts' entries have been removed from the AUDIO_CODEC_REGEXPS_ list, as these are not audio codec identifiers, but FourCC values for the DTSSpecificBox and DTSUHDSpecificBox, which can be found within the SampleDescription box for DTS audio tracks. The DTSSpecificBox (ddts) is defined in Section E.2.2.3.1 of ETSI TS 102 114 V1.6.1 (2019-08) DTS Coherent Acoustics; Core and Extensions with Additional Profiles. The DTSUHDSpecificBox (udts) is defined in Table B-2 of ETSI TS 103 491 V1.2.1 (2019-05) DTS-UHD Audio Format; Delivery of Channels, Objects and Ambisonic Sound Fields. The Mime Types for the DTS formats supported by Shaka Player have been added to the probeSupport function. Fixes #5112
1 parent 8bffb99 commit 67b1e90

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,4 @@ Blue Billywig <*@bluebillywig.com>
9797
João Nabais <jlnabais@gmail.com>
9898
Koen Romers <koenromers@gmail.com>
9999
Zhenghang Chen <czhtju@gmail.com>
100+
Xperi <*@xperi.com>

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,4 @@ Janroel Koppen <j.koppen@bluebillywig.com>
137137
João Nabais <jlnabais@gmail.com>
138138
Koen Romers <koenromers@gmail.com>
139139
Zhenghang Chen <czhtju@gmail.com>
140+
Ashley Manners <ashley.manners@xperi.com>

lib/media/media_source_engine.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ shaka.media.MediaSourceEngine = class {
212212
'audio/mp4; codecs="ec-3"',
213213
'audio/mp4; codecs="opus"',
214214
'audio/mp4; codecs="flac"',
215+
'audio/mp4; codecs="dtsc"', // DTS Digital Surround
216+
'audio/mp4; codecs="dtse"', // DTS Express
217+
'audio/mp4; codecs="dtsx"', // DTS:X
215218
// WebM types
216219
'video/webm; codecs="vp8"',
217220
'video/webm; codecs="vp9"',

lib/util/manifest_parser_utils.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ shaka.util.ManifestParserUtils.AUDIO_CODEC_REGEXPS_ = [
185185
/^mp4a/,
186186
/^[ae]c-3$/,
187187
/^ac-4$/,
188-
/^dts[cx]$/, // DTS Surround Sound
189-
/^[du]dts$/, // DTS Surround Sound
188+
/^dts[cex]$/, // DTS Digital Surround (dtsc), DTS Express (dtse), DTS:X (dtsx)
190189
];
191190

192191

0 commit comments

Comments
 (0)