forked from kenzuya/unshackle
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user