forked from kenzuya/unshackle
fix(manifests): decode audio channels by scheme in dash, hls and ism
DASH reads the AudioChannelConfiguration scheme (Dolby mask, CICP index incl. immersive layouts, channel count); HLS and ISM counts map 6/7/8 to 5.1/6.1/7.1.
This commit is contained in:
@@ -295,7 +295,7 @@ class HLS:
|
||||
joc = int(count)
|
||||
media.channels = "5.1"
|
||||
else:
|
||||
media.channels = count
|
||||
media.channels = Audio.channels_from_count(count)
|
||||
else:
|
||||
track_type = Subtitle
|
||||
codec = Subtitle.Codec.WebVTT # assuming WebVTT, codec info isn't shown
|
||||
|
||||
Reference in New Issue
Block a user