mpegtsmux hangs when stream discontinue for a while

Alexander Vasiliev alexvasiljev at gmail.com
Thu Jan 21 03:34:47 PST 2016


Hello,

I have a live video source and i want to stream it to udp. I had made a
working pipeline. But it hangs when a stream stops for a few seconds. I.e.
a camera can stop streaming for a while, then it continues streaming, but
pipeline doesn't resume.
gst-launch-1.0 v4l2src input-src=Camera ! videorate drop-only=true  !
'video/x-raw, format=(string)NV12, width=1920, height=1088, framerate=25/1'
! ce_h264enc  target-bitrate=6000000 bytestream=1 ! queue ! mpegtsmux
alignment=7 ! udpsink host=192.168.0.1 port=3000 -v

The following pipeline without mpegtsmux doesn't hangs and keeps working.
So i am sure that it is mpegtsmux which hangs the pipeline.
gst-launch-1.0 v4l2src input-src=Camera ! videorate drop-only=true  !
'video/x-raw, format=(string)NV12, width=1920, height=1088, framerate=25/1'
! ce_h264enc  target-bitrate=6000000 bytestream=1 ! fakesink

Can mpegtsmux be configured not to hang?

gstreamer version 1.6.2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160121/06810e67/attachment.html>


More information about the gstreamer-devel mailing list