shaka-packager/packager/mpd/base
KongQun Yang b85e5c9368 Use segment duration in buffer depth calculation
Segment start,end time was used previously, which could result in
problems if there are discontinuity in the streams. E.g. if the
stream has timestamp, 10000, 10001, 10002 and then next segment
comes in with timestamp 1. With the previous logic, all the segments
would remain in the time shift buffer until after 10000 segments
even with a small time shift buffer depth of 10.

This could also happen when timestamp wraps around, which could
happen during long time of live streaming.

This change will also be useful to support multi-period live DASH.

Fixes #563.

Change-Id: Ie078d76c6e4af13ade9ad46191c8e3529069ed4d
2019-04-17 22:47:10 +00:00
..
xml Support Marlin DRM signaling in DASH 2018-10-01 20:22:58 +00:00
adaptation_set.cc Removing dependence on base file atomic_sequence_num.h 2018-07-24 21:22:50 +00:00
adaptation_set.h Removing dependence on base file atomic_sequence_num.h 2018-07-24 21:22:50 +00:00
adaptation_set_unittest.cc Removing dependence on base file atomic_sequence_num.h 2018-07-24 21:22:50 +00:00
bandwidth_estimator.cc Exclude short segments from peak bandwidth computation 2018-11-26 20:02:09 +00:00
bandwidth_estimator.h Exclude short segments from peak bandwidth computation 2018-11-26 20:02:09 +00:00
bandwidth_estimator_unittest.cc Exclude short segments from peak bandwidth computation 2018-11-26 20:02:09 +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 Support HLS characteristics 2018-11-26 20:02:43 +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 Removing dependence on base file atomic_sequence_num.h 2018-07-24 21:22:50 +00: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 Update MuxerListeners to support multiple OnMediaStart/End 2018-05-25 20:43:34 +00:00
mpd_builder.cc Support Marlin DRM signaling in DASH 2018-10-01 20:22:58 +00:00
mpd_builder.h Removing dependence on base file atomic_sequence_num.h 2018-07-24 21:22:50 +00:00
mpd_builder_unittest.cc Put namespace URIs in DASH mpd only if needed 2018-09-25 15:45:48 -07:00
mpd_notifier.h Update MuxerListeners to support multiple OnMediaStart/End 2018-05-25 20:43:34 +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 Exclude short segments from peak bandwidth computation 2018-11-26 20:02:09 +00:00
mpd_utils.cc Use upper case for Marlin uuid 2018-12-05 13:03:25 -08:00
mpd_utils.h Fix default_language not effective with 2-char code 2018-04-13 20:08:12 +00:00
mpd_utils_unittest.cc Use upper case for Marlin uuid 2018-12-05 13:03:25 -08:00
period.cc Add support for --default_text_language 2018-11-26 13:42:58 -08:00
period.h Removing dependence on base file atomic_sequence_num.h 2018-07-24 21:22:50 +00:00
period_unittest.cc Add support for --default_text_language 2018-11-26 13:42:58 -08:00
representation.cc Use segment duration in buffer depth calculation 2019-04-17 22:47:10 +00:00
representation.h Use segment duration in buffer depth calculation 2019-04-17 22:47:10 +00:00
representation_unittest.cc Use segment duration in buffer depth calculation 2019-04-17 22:47:10 +00:00
segment_info.h Use segment duration in buffer depth calculation 2019-04-17 22:47:10 +00:00
simple_mpd_notifier.cc Update MuxerListeners to support multiple OnMediaStart/End 2018-05-25 20:43:34 +00:00
simple_mpd_notifier.h Update MuxerListeners to support multiple OnMediaStart/End 2018-05-25 20:43:34 +00:00
simple_mpd_notifier_unittest.cc Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00