multifilesink MPEGTS-segmenting handling stream outage

mz mzel314 at
Tue Apr 13 20:11:30 UTC 2021


Using the following pipeline to stream a TS file to UDP:

gst-launch-1.0 filesrc location=sample.ts ! tsparse alignment=7
set-timestamps=true ! udpsink host= port=16400

And this pipeline to save the TS stream into segments;

gst-launch-1.0 udpsrc address= port=16400 ! queue ! multifilesink
location=segment_%d.ts next-file=2

I find that if the UDP stream exits for a long enough duration (e.g. if I
terminate the first pipeline), then returns, multifilesink will generate
several small TS segments (<1 s), which seems to attempt to fill the void of
the stream gap. Is there any way to avoid generating these phantom segments,
and instead just continue saving files at the index where the break

Sent from:

More information about the gstreamer-devel mailing list