shaka-packager/packager/mpd/base
KongQun Yang f8a1cb66ad Calculate presentationTimeOffset and Period@duration from segments
Prefer timestamps from Video AdaptationSets if available - this avoids
possible video playback jitters due to gaps.

presentationTimeOffset is not applied to the first period as it may in
negative dts which Chrome does not like: https://crbug.com/398141.

It is safe to apply to subsequent periods as the actual offset applied
takes Period@start into consideration:

    offset = Period@start - presentationTimeOffset

The result timestamp with offset applied is close to Period@start, so
it is unlikely to result in a negative dts value.

Closes b/73899306.

Change-Id: If8361f5469610093b3aac6675754536ad7e83c4c
2018-03-01 22:25:55 -08:00
..
xml [DASH] Support multiple period 2018-01-11 21:44:18 +00:00
adaptation_set.cc Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
adaptation_set.h Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
adaptation_set_unittest.cc Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
bandwidth_estimator.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
bandwidth_estimator.h Move source code into packager directory 2014-10-02 12:32:14 -07:00
bandwidth_estimator_unittest.cc Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07: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 [DASH] Support multiple period 2018-01-11 21:44:18 +00:00
mock_mpd_builder.cc [DASH] Support multiple period 2018-01-11 21:44:18 +00:00
mock_mpd_builder.h Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08: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 Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
mpd_builder.h Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
mpd_builder_unittest.cc Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08: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 Move AdaptationSet, Representation out of mpd_builder.h 2017-12-14 21:28:06 +00:00
mpd_utils.h Move AdaptationSet, Representation out of mpd_builder.h 2017-12-14 21:28:06 +00:00
period.cc Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
period.h Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
period_unittest.cc Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
representation.cc Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
representation.h Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
representation_unittest.cc Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
segment_info.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
simple_mpd_notifier.cc Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00
simple_mpd_notifier.h [DASH] Support multiple period 2018-01-11 21:44:18 +00:00
simple_mpd_notifier_unittest.cc Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 22:25:55 -08:00