shaka-packager/packager/app/test/testdata/ec3-packed-audio-encrypted
KongQun Yang 40ea1286b9 Add support for EditLists in ISO-BMFF
- EditLists in input files are parsed and applied to sample timestamps.
- An EditList will be inserted in the ISO-BMFF output if
  - There is an offset between the initial presentation timestamp (pts)
    and decoding timestamp (dts). Chrome, as of M67, still uses dts in
    buffered range API [1], which creates various problems when buffered
    range by pts does not align with buffered range by dts. There is
    another bug in Chrome that applies EditList to pts only [2]. This
    means that we can insert an EditList to align pts range and dts range.
  - MediaSamples have negative timestamps (e.g. for Audio Priming).

You may notice the below change on some contents:
- Some media duration is reduced by one or two frames. This is because
  EditList in the input file was ignored in the previous code, so video
  streams start with a zero dts and a non-zero pts; the smaller of dts
  and pts was used as the starting timestamp (related to the earlier
  workaround for Chrome's dts bug), so the calculated duration was
  actually a bit larger than the actual duration. Now with EditList
  applied, the initial pts is reduced to zero, so the media duration is
  also reduced to reflect the actual and correct media duration.

It may also result in negative timestamps in TS/HLS Packed Audio, which
will be addressed in a follow up CL.

Fixes #112.
Partially address b/110782437.

[1] https://crbug.com/718641, fixed but behind MseBufferByPts.
[2] https://crbug.com/354518. Chrome is planning to enable the fix for
    [1] before addressing this bug, so we are safe.

Change-Id: I59317740ad3807ca66fa74b3a18fdf7f32c96aeb
2018-07-26 23:20:21 +00:00
..
bear-640x360-ec3-audio-1.ec3 Add support for EditLists in ISO-BMFF 2018-07-26 23:20:21 +00:00
bear-640x360-ec3-audio-2.ec3 Add support for EditLists in ISO-BMFF 2018-07-26 23:20:21 +00:00
bear-640x360-ec3-audio-3.ec3 Add support for EditLists in ISO-BMFF 2018-07-26 23:20:21 +00:00
bear-640x360-ec3-audio.m3u8 Add end to end tests for packed audio 2018-05-21 20:30:26 +00:00
bear-640x360-ec3-video-1.ts Add support for EditLists in ISO-BMFF 2018-07-26 23:20:21 +00:00
bear-640x360-ec3-video-2.ts Add support for EditLists in ISO-BMFF 2018-07-26 23:20:21 +00:00
bear-640x360-ec3-video-3.ts Add support for EditLists in ISO-BMFF 2018-07-26 23:20:21 +00:00
bear-640x360-ec3-video-iframe.m3u8 Use PTS instead of DTS in ChunkingHandler 2018-07-02 21:58:45 +00:00
bear-640x360-ec3-video.m3u8 Add end to end tests for packed audio 2018-05-21 20:30:26 +00:00
output.m3u8 Do not use harmonic mean in bandwidth calculation 2018-07-12 10:46:47 -07:00