shaka-packager/packager/media/formats/mp4
KongQun Yang 2d919b5a31 Fix potential partial DASH segments during live packaging
Packager uses ThreadedIO to write media segments and manifest /
playlists. There was a possibility that media segments write being
delayed and scheduled after updating manifest / playlists.

This CL fixes the race condition.

Also added a note on how segments can be synced to cloud storage to
avoid the race condition during file sync.

Also added a live WebM test.

Fixes #386.

Change-Id: Icf9c38cdec715fa3dc2836eab1511131e129fe41
2018-05-03 09:26:23 -07:00
..
box.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
box.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
box_buffer.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
box_definitions.cc Add support for FLAC codec 2018-05-02 00:16:51 +00:00
box_definitions.h Add support for FLAC codec 2018-05-02 00:16:51 +00:00
box_definitions_comparison.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
box_definitions_unittest.cc Add support for FLAC codec 2018-05-02 00:16:51 +00:00
box_reader.cc Skip reading meta box as it may not be well formed 2018-03-01 20:21:37 +00:00
box_reader.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
box_reader_unittest.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
chunk_info_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
chunk_info_iterator.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
chunk_info_iterator_unittest.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
composition_offset_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
composition_offset_iterator.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
composition_offset_iterator_unittest.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
decoding_time_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
decoding_time_iterator.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
decoding_time_iterator_unittest.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
fragmenter.cc Do not force earliest_presentation_time to 0 for VOD 2018-04-09 18:39:15 +00:00
fragmenter.h Do not force earliest_presentation_time to 0 for VOD 2018-04-09 18:39:15 +00:00
key_frame_info.h Support KeyFrame events in TS and MP4 2018-02-02 14:05:50 -08:00
mp4.gyp Support KeyFrame events in TS and MP4 2018-02-02 14:05:50 -08:00
mp4_media_parser.cc Add support for FLAC codec 2018-05-02 00:16:51 +00:00
mp4_media_parser.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
mp4_media_parser_unittest.cc Handle additional unused 'mdat' properly 2017-12-01 00:28:30 +00:00
mp4_muxer.cc Add support for FLAC codec 2018-05-02 00:16:51 +00:00
mp4_muxer.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
multi_segment_segmenter.cc Fix potential partial DASH segments during live packaging 2018-05-03 09:26:23 -07:00
multi_segment_segmenter.h Rewrite init segment in MultiSegmentSegmenter::DoFinalize 2018-03-05 14:25:08 -08:00
segmenter.cc Rewrite init segment in MultiSegmentSegmenter::DoFinalize 2018-03-05 14:25:08 -08:00
segmenter.h Support KeyFrame events in TS and MP4 2018-02-02 14:05:50 -08:00
single_segment_segmenter.cc Do not force earliest_presentation_time to 0 for VOD 2018-04-09 18:39:15 +00:00
single_segment_segmenter.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
sync_sample_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
sync_sample_iterator.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
sync_sample_iterator_unittest.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
track_run_iterator.cc Address gcc build failures in some platforms 2017-12-07 11:45:26 -08:00
track_run_iterator.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
track_run_iterator_unittest.cc Address gcc build failures in some platforms 2017-12-07 11:45:26 -08:00