shaka-packager/packager/app/test/testdata
KongQun Yang ee9b7f6392 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 08:55:10 -08:00
..
acc-he Update Many Tests to Use CheckTestResults 2018-02-27 13:32:32 -08:00
audio-video Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
audio-video-with-language-override Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
audio-video-with-language-override-with-subtag Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
audio-video-with-trick-play Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
audio-video-with-two-trick-play Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
avc-aac-ts Update Many Tests to Use CheckTestResults 2018-02-27 13:32:32 -08:00
avc-ac3-ts Update Many Tests to Use CheckTestResults 2018-02-27 13:32:32 -08:00
avc-ac3-ts-to-mp4 Update Many Tests to Use CheckTestResults 2018-02-27 13:32:32 -08:00
avc-ts-event-playlist Update Many Tests to Use CheckTestResults 2018-02-27 13:32:32 -08:00
avc-ts-live-playlist Update Many Tests to Use CheckTestResults 2018-02-27 13:32:32 -08:00
avc-ts-live-playlist-with-key-rotation Update Many Tests to Use CheckTestResults 2018-02-27 13:32:32 -08:00
ec3-and-hls-single-segment-mp4-encrypted Remove "with" from test names 2018-02-27 17:43:16 -08:00
first-stream Updated "testFirstStream" to use DiffDir 2018-02-23 10:10:34 -08:00
hls-segmented-webvtt Add Text Codec To Codec String 2018-02-28 19:23:36 +00:00
hls-single-segment-mp4-encrypted Remove "with" from test names 2018-02-27 17:43:16 -08:00
hls-single-segment-mp4-encrypted-and-ad-cues Remove "with" from test names 2018-02-27 17:43:16 -08:00
live-static-profile Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
live-static-profile-and-ad-cues Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
text Update Many Tests to Use CheckTestResults 2018-02-27 13:32:32 -08:00
video-audio-text Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
vorbis-webm Update Many Tests to Use CheckTestResults 2018-02-27 13:32:32 -08:00
vp8-webm Update Many Tests to Use CheckTestResults 2018-02-27 13:32:32 -08:00
vp9-webm Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
vp9-webm-with-blockgroup Update Many Tests to Use CheckTestResults 2018-02-27 13:32:32 -08:00
wvm-input Update Many Tests to Use CheckTestResults 2018-02-27 13:32:32 -08:00
wvm-input-without-stripping-parameters-set-nalus Update Many Tests to Use CheckTestResults 2018-02-27 13:32:32 -08:00
bear-320x180-vp9-altref-dec-golden.webm Add support for WebM colour element 2017-05-02 20:22:17 +00:00
bear-320x180-vp9-altref-enc-golden.webm Add support for WebM colour element 2017-05-02 20:22:17 +00:00
bear-320x180-vp9-fullsample-enc-golden.webm Add support for WebM colour element 2017-05-02 20:22:17 +00:00
bear-320x240-opus-cenc-golden.mp4 Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-320x240-opus-golden.mp4 Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-320x240-opus-vp9-cenc-golden.mpd Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
bear-320x240-vp9-cenc-golden.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-320x240-vp9-golden.mp4 Support v1 vp9 in iso-bmff 2017-04-27 19:37:14 +00:00
bear-640x360-a-cbc1-golden.mp4 Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-cbcs-golden.mp4 Fix fMP4 'cbcs' playback issue in Safari 2018-02-08 23:40:46 -08:00
bear-640x360-a-cenc-golden.mp4 Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-cenc-golden.mp4.media_info Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-cenc-no-clear-lead-golden.mp4 Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-cenc-no-pssh-golden.mp4 Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-cens-golden.mp4 Fix fMP4 'cbcs' playback issue in Safari 2018-02-08 23:40:46 -08:00
bear-640x360-a-clear-v-cenc-golden.mpd Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
bear-640x360-a-demuxed-golden.mp4 Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-enc-golden-1.ts Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-enc-golden-2.ts Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-enc-golden-3.ts Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-enc-golden.m3u8 Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-fairplay-enc-golden.m3u8 Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-golden.mp4 Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-live-cenc-golden-1.m4s Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-live-cenc-golden-2.m4s Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-live-cenc-golden-3.m4s Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-live-cenc-golden-init.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-a-live-cenc-rotation-golden-1.m4s Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-live-cenc-rotation-golden-2.m4s Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-live-cenc-rotation-golden-3.m4s Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-live-cenc-rotation-golden-init.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-a-live-cenc-rotation-no-pssh-golden-1.m4s Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-live-cenc-rotation-no-pssh-golden-2.m4s Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-live-cenc-rotation-no-pssh-golden-3.m4s Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-live-cenc-rotation-no-pssh-golden-init.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-a-live-golden-1.m4s Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-live-golden-2.m4s Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-live-golden-3.m4s Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-a-live-golden-init.mp4 [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-a-mp4-golden.m3u8 Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-ac3-enc-golden-1.ts Add end to end test for ac3 2018-01-18 17:23:20 -08:00
bear-640x360-ac3-enc-golden-2.ts Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-ac3-enc-golden-3.ts Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-ac3-enc-golden.m3u8 Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-av-ac3-master-golden.m3u8 Bug fixes and clean-ups for I-Frame playlists 2018-02-05 17:36:28 -08:00
bear-640x360-av-cbc1-golden.mpd Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
bear-640x360-av-cbcs-golden.mpd Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
bear-640x360-av-cenc-ad_cues-golden.mpd Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
bear-640x360-av-cenc-golden.mpd Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
bear-640x360-av-cenc-no-clear-lead-golden.mpd Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
bear-640x360-av-cenc-no-pssh-golden.mpd Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
bear-640x360-av-cenc-non-iop-golden.mpd Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
bear-640x360-av-cens-golden.mpd Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
bear-640x360-av-live-cenc-golden.mpd Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-av-live-cenc-non-iop-golden.mpd Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-av-live-cenc-rotation-golden.mpd Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-av-live-cenc-rotation-no-pssh-golden.mpd Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-av-live-cenc-rotation-non-iop-golden.mpd Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-av-live-golden.mpd Share chunkers from the same input except for WVM 2018-01-22 17:43:25 -08:00
bear-640x360-av-master-golden.m3u8 Bug fixes and clean-ups for I-Frame playlists 2018-02-05 17:36:28 -08:00
bear-640x360-av-mp4-master-golden.m3u8 Bug fixes and clean-ups for I-Frame playlists 2018-02-05 17:36:28 -08:00
bear-640x360-av-trick-1-cenc-golden.mpd Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
bear-640x360-av-trick-1-trick-2-cenc-golden.mpd Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
bear-640x360-hevc-cenc-golden.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-hevc-cenc-golden.mpd [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-hevc-golden.mp4 [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-cbc1-golden.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-v-cbcs-golden.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-v-cenc-golden.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-v-cenc-golden.mp4.media_info [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-cenc-no-clear-lead-golden.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-v-cenc-no-pssh-golden.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-v-cens-golden.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-v-enc-golden-1.ts Adjust hls descriptor validation 2016-07-01 14:14:24 -07:00
bear-640x360-v-enc-golden-2.ts Adjust hls descriptor validation 2016-07-01 14:14:24 -07:00
bear-640x360-v-enc-golden-3.ts Adjust hls descriptor validation 2016-07-01 14:14:24 -07:00
bear-640x360-v-enc-golden.m3u8 HLS with fragmented MP4 2017-03-27 13:20:03 -07:00
bear-640x360-v-fairplay-enc-golden.m3u8 Add --hls_key_uri to allow setting fairplay/identity key uri 2017-11-14 15:49:27 +00:00
bear-640x360-v-golden.mp4 [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-live-cenc-golden-1.m4s [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-live-cenc-golden-2.m4s [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-live-cenc-golden-3.m4s [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-live-cenc-golden-init.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-v-live-cenc-rotation-golden-1.m4s [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-live-cenc-rotation-golden-2.m4s [Test] Rotate key_ids in PSSH as well for key rotation 2017-10-09 16:44:14 -07:00
bear-640x360-v-live-cenc-rotation-golden-3.m4s [Test] Rotate key_ids in PSSH as well for key rotation 2017-10-09 16:44:14 -07:00
bear-640x360-v-live-cenc-rotation-golden-init.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-v-live-cenc-rotation-no-pssh-golden-1.m4s [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-live-cenc-rotation-no-pssh-golden-2.m4s [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-live-cenc-rotation-no-pssh-golden-3.m4s [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-live-cenc-rotation-no-pssh-golden-init.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-v-live-golden-1.m4s [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-live-golden-2.m4s [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-live-golden-3.m4s [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-live-golden-init.mp4 [MP4] Make outputs CMAF compatible 2017-03-30 15:33:39 -07:00
bear-640x360-v-mp4-golden.m3u8 Creates directories in the output path if not exist 2017-10-11 20:19:51 +00:00
bear-640x360-v-trick-1-cenc-golden.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-v-trick-1-golden.mp4 Integrate trick play. 2017-05-09 13:33:11 -07:00
bear-640x360-v-trick-2-cenc-golden.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-v-trick-2-golden.mp4 Integrate trick play. 2017-05-09 13:33:11 -07:00
bear-640x360-vp8-cenc-golden.mp4 Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
bear-640x360-vp8-cenc-golden.mpd Support v1 vp9 in iso-bmff 2017-04-27 19:37:14 +00:00
bear-640x360-vp8-cenc-golden.webm [WebM] Move index segment after init segment 2016-10-01 00:34:56 +00:00
bear-640x360-vp8-cenc-webm-golden.mpd [DASH][WebM] Fix subsegmentAlignment not set problem 2018-01-31 19:58:15 +00:00
bear-640x360-vp8-golden.mp4 Support v1 vp9 in iso-bmff 2017-04-27 19:37:14 +00:00
bear-640x360-vp8-golden.webm [WebM] Move index segment after init segment 2016-10-01 00:34:56 +00:00
sintel-1024x436-v-enc-golden-1.ts Add a new test to exercise emulation prevention after encryption 2017-03-28 13:18:33 -07:00
sintel-1024x436-v-enc-golden-2.ts Add a new test to exercise emulation prevention after encryption 2017-03-28 13:18:33 -07:00
sintel-1024x436-v-enc-golden-3.ts Add a new test to exercise emulation prevention after encryption 2017-03-28 13:18:33 -07:00
sintel-1024x436-v-enc-golden.m3u8 Add a new test to exercise emulation prevention after encryption 2017-03-28 13:18:33 -07:00
sintel-1024x436-v-enc-master-golden.m3u8 Bug fixes and clean-ups for I-Frame playlists 2018-02-05 17:36:28 -08:00