fix bandwidth calulation
authorliberty-developer <liberty.developer@xmail.net>
Sun, 29 Jan 2017 17:34:31 +0000 (18:34 +0100)
committerliberty-developer <liberty.developer@xmail.net>
Sun, 29 Jan 2017 17:34:31 +0000 (18:34 +0100)
resources/lib/MSL.py

index 83ae2e7abfe2b34cfff46f67f3fc4bc0ff4ff196..bbf0e21d27a4f1cc40db43692e166992f6ecc724 100644 (file)
@@ -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