feat(manifests): add dts-hd, mpeg-h and lcevc codecs and a manifest corpus

Fix DASH SegmentTimeline negative @r and Pattern, TTML sidecar sets with no contentType, HLS CHANNELS identifiers and Dolby channel masks; test against 408 public DASH/HLS/ISM manifests.
This commit is contained in:
imSp4rky
2026-10-26 10:30:43 -06:00
parent a7f77dea42
commit ffeb58f808
431 changed files with 44396 additions and 41 deletions
+8 -3
View File
@@ -288,9 +288,14 @@ class HLS:
codec: Union[Audio.Codec, Subtitle.Codec, None] = HLS.select_audio_codec(
audio_codecs_by_group_id.get(media.group_id), media.uri
)
if media.channels and media.channels.endswith("/JOC"):
joc = int(media.channels.split("/JOC")[0])
media.channels = "5.1"
if media.channels:
# the channel count, then /-separated coding (JOC) and usage identifiers (RFC 8216bis)
count, *identifiers = media.channels.split("/")
if identifiers and "JOC" in identifiers[0].split(","):
joc = int(count)
media.channels = "5.1"
else:
media.channels = count
else:
track_type = Subtitle
codec = Subtitle.Codec.WebVTT # assuming WebVTT, codec info isn't shown