shaka-packager/packager/media/event
Caitlin O'Callaghan c87c5bcdef
Fix for gap size warning in Low Latency mode (#985)
## The issue
- With LL-DASH mode enabled, the gap size warning was hit and printed to the console every time a new segment was registered to the manifest.
- This occurred because the first chunk's size and duration were being stored for each segment, rather than the full segment size and duration. Note, only the first chunk's metrics are known at first because in low latency mode, the segment is registered to the manifest before it is finished being processed and written.
- Because of this, the gap size check was comparing the end time of the first chunk in the previous segment to the beginning time of the current segment, causing the check to fail every time.

## The Fix
- Update a low latency segment's duration and size once the segment file has been fully written.
- The full segment size and duration will be used to update the bandwidth estimator and the segment info list. 
- Updating the segment info list to hold the full duration is necessary for satisfying [the gap size check found in Represenation.cc](https://github.com/google/shaka-packager/blob/master/packager/mpd/base/representation.cc#L391).
- NOTE: bandwidth estimation is currently only used in HLS
2021-09-03 09:57:43 -07:00
..
combined_muxer_listener.cc Fix for gap size warning in Low Latency mode (#985) 2021-09-03 09:57:43 -07:00
combined_muxer_listener.h Fix for gap size warning in Low Latency mode (#985) 2021-09-03 09:57:43 -07:00
event_info.h [Cleanup] Use int64_t for time for consistency 2018-06-29 22:53:06 +00:00
hls_notify_muxer_listener.cc cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
hls_notify_muxer_listener.h cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
hls_notify_muxer_listener_unittest.cc cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
media_event.gyp Support Dolby Vision backward compatible profiles 2020-02-11 05:24:09 +00:00
mock_muxer_listener.cc Remove size parameter in OnMediaEnd 2017-07-21 20:42:44 +00:00
mock_muxer_listener.h cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
mpd_notify_muxer_listener.cc Fix for gap size warning in Low Latency mode (#985) 2021-09-03 09:57:43 -07:00
mpd_notify_muxer_listener.h Fix for gap size warning in Low Latency mode (#985) 2021-09-03 09:57:43 -07:00
mpd_notify_muxer_listener_unittest.cc Low latency DASH support (#979) 2021-08-25 08:38:05 -07:00
multi_codec_muxer_listener.cc cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
multi_codec_muxer_listener.h cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
multi_codec_muxer_listener_unittest.cc cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
muxer_listener.h Fix for gap size warning in Low Latency mode (#985) 2021-09-03 09:57:43 -07:00
muxer_listener_factory.cc Add segment_list support for DASH on-demand profile 2021-05-25 12:08:58 -07:00
muxer_listener_factory.h Add segment_list support for DASH on-demand profile 2021-05-25 12:08:58 -07:00
muxer_listener_internal.cc cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
muxer_listener_internal.h cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
muxer_listener_internal_unittest.cc cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
muxer_listener_test_helper.cc cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
muxer_listener_test_helper.h cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
progress_listener.h Clean up #ifndef in packager/media. (#310) 2017-12-19 16:56:36 -08:00
vod_media_info_dump_muxer_listener.cc cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
vod_media_info_dump_muxer_listener.h cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
vod_media_info_dump_muxer_listener_unittest.cc cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00