shaka-packager/packager/mpd/base/xml
KongQun Yang 224b597b48 Support approximate SegmentTimeline
It is not always possible to align segment duration to target duration
exactly. For example, for AAC with sampling rate of 44100, there are
always 1024 audio frames per sample, so the sample duration is
1024/44100. For a target duration of 2 seconds, the closest segment
duration would be 1.984 or 2.00533.

This feature allows MPD generator to treat these segments as having
the same duration, thus allows MPD generator to generate less
SegmentTimeline entries and potentially no SegmentTimeline entries
(replaced with SegmentTemplate@duration instead if
  --segment_template_constant_duration flag is enabled).

Under flag --allow_approximate_segment_timeline. Disabled by default.

Fixes #330.

Change-Id: I5044eaa348ebbf45bf792a2af53fc95a115ae21b
2018-04-30 17:15:47 -07:00
..
scoped_xml_ptr.h Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
xml_node.cc Support approximate SegmentTimeline 2018-04-30 17:15:47 -07:00
xml_node.h Integrate trick play. 2017-05-09 13:33:11 -07:00
xml_node_unittest.cc Support approximate SegmentTimeline 2018-04-30 17:15:47 -07:00