shaka-packager/packager/mpd/base
KongQun Yang b2932d5a33 Fix bitrate for DASH on-demand profile too
Removed the logic in MuxerListener to estimate bandwidth from file
size and duration, since it is not compliant to the spec.

MpdBuilder will estimate bandwidth from segment size and duration
if bandwidth is not specified in MediaInfo.

Here is the statement from DASH spec (23009-1:2014):

Consider a hypothetical constant bitrate channel of
bandwidth with the value of this attribute in bits per second
(bps). Then, if the Representation is continuously delivered
at this bitrate, starting at any SAP that is indicated either by
@startwithsap or by any Segment Index box, a client can
be assured of having enough data for continuous playout
providing playout begins after @minbuffertime *
@bandwidth bits have been received (i.e. at time
@minbuffertime after the first bit is received).
For dependent Representations this value specifies the
bandwidth according to the above definition for the
aggregation of this Representation and all complementary
Representations.

Fixes #376.

Change-Id: I0fddce39e709d0cded0a4c9ae59adbbcc97ec5ea
2018-04-24 23:25:02 +00:00
..
xml Add new URL fields in MediaInfo 2018-04-23 22:49:47 +00:00
adaptation_set.cc Fix default_language not effective with 2-char code 2018-04-13 20:08:12 +00:00
adaptation_set.h Fix default_language not effective with 2-char code 2018-04-13 20:08:12 +00:00
adaptation_set_unittest.cc Add new URL fields in MediaInfo 2018-04-23 22:49:47 +00:00
bandwidth_estimator.cc Use max bitrate in Representation@bandwidth instead of average bitrate 2018-04-17 22:39:58 +00:00
bandwidth_estimator.h Use max bitrate in Representation@bandwidth instead of average bitrate 2018-04-17 22:39:58 +00:00
bandwidth_estimator_unittest.cc Use max bitrate in Representation@bandwidth instead of average bitrate 2018-04-17 22:39:58 +00:00
content_protection_element.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
content_protection_element.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
media_info.proto Add new URL fields in MediaInfo 2018-04-23 22:49:47 +00:00
mock_mpd_builder.cc Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
mock_mpd_builder.h Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
mock_mpd_notifier.cc Part one of supporting live profile with static mpd 2017-01-13 19:59:49 +00:00
mock_mpd_notifier.h Propage CueEvent to MpdNotifier/HlsNotifier 2018-01-04 18:25:03 +00:00
mpd_builder.cc Add new URL fields in MediaInfo 2018-04-23 22:49:47 +00:00
mpd_builder.h Support UTCTiming 2018-04-04 01:37:01 +00:00
mpd_builder_unittest.cc Fix bitrate for DASH on-demand profile too 2018-04-24 23:25:02 +00:00
mpd_notifier.h Propage CueEvent to MpdNotifier/HlsNotifier 2018-01-04 18:25:03 +00:00
mpd_notifier_util.cc Move packager/media/file to packager/file 2017-07-17 12:08:28 -07:00
mpd_notifier_util.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
mpd_options.h Consolidate MpdParams into MpdOptions 2017-08-18 11:57:41 -07:00
mpd_utils.cc Add new URL fields in MediaInfo 2018-04-23 22:49:47 +00:00
mpd_utils.h Fix default_language not effective with 2-char code 2018-04-13 20:08:12 +00:00
period.cc Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
period.h Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
period_unittest.cc Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
representation.cc Fix bitrate for DASH on-demand profile too 2018-04-24 23:25:02 +00:00
representation.h Support removing segments outside of live window in DASH 2018-04-13 14:15:58 -07:00
representation_unittest.cc Add new URL fields in MediaInfo 2018-04-23 22:49:47 +00:00
segment_info.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
simple_mpd_notifier.cc Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
simple_mpd_notifier.h Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
simple_mpd_notifier_unittest.cc Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00