multifilesink MPEGTS-segmenting handling stream outage

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


Hello,

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=239.1.1.1 port=16400

And this pipeline to save the TS stream into segments;

gst-launch-1.0 udpsrc address=239.1.1.1 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
occurred?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list