From 07c987a9bb20d1766404669fa945b98764b45c97 Mon Sep 17 00:00:00 2001 From: liberty-developer Date: Sun, 29 Jan 2017 18:34:31 +0100 Subject: [PATCH] fix bandwidth calulation --- resources/lib/MSL.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/MSL.py b/resources/lib/MSL.py index 83ae2e7..bbf0e21 100644 --- a/resources/lib/MSL.py +++ b/resources/lib/MSL.py @@ -233,7 +233,7 @@ class MSL: rep = ET.SubElement(video_adaption_set, 'Representation', width=str(downloadable['width']), height=str(downloadable['height']), - bandwidth=str(downloadable['bitrate']*8*1024), + bandwidth=str(downloadable['bitrate']*1024), codecs='h264', mimeType='video/mp4') @@ -254,7 +254,7 @@ class MSL: for downloadable in audio_track['downloadables']: rep = ET.SubElement(audio_adaption_set, 'Representation', codecs='aac', - bandwidth=str(downloadable['bitrate'] * 8 * 1024), + bandwidth=str(downloadable['bitrate']*1024), mimeType='audio/mp4') #AudioChannel Config -- 2.30.2