From 6649d9ad77db17c6ee6327073220323f30ab09bd Mon Sep 17 00:00:00 2001 From: Gunnar Adler <124367846+ftyp@users.noreply.github.com> Date: Thu, 14 Mar 2024 13:18:17 +0100 Subject: [PATCH 1/2] Update mp4utils.py Use dolby_digital_plus_info for ec-3 --- Source/Python/utils/mp4utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Python/utils/mp4utils.py b/Source/Python/utils/mp4utils.py index 16ccd9e8..68c9de29 100644 --- a/Source/Python/utils/mp4utils.py +++ b/Source/Python/utils/mp4utils.py @@ -1050,7 +1050,7 @@ def ComputeDolbyDigitalPlusSmoothStreamingInfo(track): mask_hex_be = "{0:0{1}x}".format(channel_mask, 4) info += mask_hex_be[2:4]+mask_hex_be[0:2]+'0000' info += "af87fba7022dfb42a4d405cd93843bdd" - info += track.info['sample_descriptions'][0]['dolby_digital_info']['dec3_payload'] + info += track.info['sample_descriptions'][0]['dolby_digital_plus_info']['dec3_payload'] return (channel_count, info.lower()) def ComputeMarlinPssh(options): From 8637c3212c9790a7033eb26e71ca58fcad876395 Mon Sep 17 00:00:00 2001 From: Gunnar Adler <124367846+ftyp@users.noreply.github.com> Date: Thu, 14 Mar 2024 13:19:35 +0100 Subject: [PATCH 2/2] Update mp4-dash.py Use dolby_digital_plus_info for ec-3 --- Source/Python/utils/mp4-dash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Python/utils/mp4-dash.py b/Source/Python/utils/mp4-dash.py index c0e8b4a1..0a468636 100755 --- a/Source/Python/utils/mp4-dash.py +++ b/Source/Python/utils/mp4-dash.py @@ -1142,7 +1142,7 @@ def OutputSmooth(options, audio_tracks, video_tracks): audio_tag = '65534' fourcc = 'EC-3' channels = str(channels) - data_rate = int(audio_track.info['sample_descriptions'][0]['dolby_digital_info']['data_rate']) + data_rate = int(audio_track.info['sample_descriptions'][0]['dolby_digital_plus_info']['data_rate']) packet_size = str(4*data_rate) else: # assume AAC