fmp4mux: Add debug output for each fragment's start PTS

This commit is contained in:
Sebastian Dröge 2022-05-31 17:25:29 +03:00
parent 3d7a38f7d4
commit 7e2cf613b4

View file

@ -883,9 +883,18 @@ impl FMP4Mux {
state.end_pts = Some(max_end_pts); state.end_pts = Some(max_end_pts);
// Update for the start PTS of the next fragment // Update for the start PTS of the next fragment
state.fragment_start_pts = state state.fragment_start_pts = state.fragment_start_pts.map(|start| {
.fragment_start_pts let new_fragment_start = start + settings.fragment_duration;
.map(|start| start + settings.fragment_duration);
gst::info!(
CAT,
obj: element,
"Starting new fragment at {}",
new_fragment_start
);
new_fragment_start
});
} }
if settings.write_mfra && at_eos { if settings.write_mfra && at_eos {