mpegtsmux pmt-interval/pat-interval

Greg Stahl gregstahl at churchillnavigation.com
Thu Oct 12 21:14:27 UTC 2017


Hello,

I am attempting to build a gstreamer pipe that captures video, encodes it,
puts it into a transport stream and then broadcasts over the network.
Using the below command I am able to start VLC listening on the port for
the RTP stream, execute the pipeline and everything works perfectly.
However if I execute the pipeline and then start VLC listening the stream
never comes through, monitoring the network traffic I see that either way
there is data being sent from the machine that is executing the pipeline.


gst-launch-1.0 ! x265enc ! mpegtsmux pat-interval=3000 pmt-interval=3000 !
rtpmp2tpay ! udpsink host=192.168.11.255 port=26000 auto-multicast=TRUE
sync=true


While trying to debug the problem I executed the below pipelines and
received the included output and it seems to indicate that the mpegtsmux is
only sending the PMT and PAT at the very beginning of each stream and never
again.  I have left this running for multiple minutes and receive only the
first line of output within the first 100mS of execution of the pipeline.


gst-launch-1.0 --gst-debug=mpegtsmux:6 videotestsrc ! x265enc ! mpegtsmux
pat-interval=3000 pmt-interval=3000 ! rtpmp2tpay ! udpsink
host=192.168.11.255 port=26000 auto-multicast=TRUE sync=true 2>&1 | grep
--ignore-case pmt
0:00:00.096035356  1856      0x27ad450 DEBUG              mpegtsmux
tsmux.c:1222:tsmux_write_pmt: PMT for program 1 has 1 streams


gst-launch-1.0 --gst-debug=mpegtsmux:6 videotestsrc ! x265enc ! mpegtsmux
pat-interval=3000 pmt-interval=3000 ! rtpmp2tpay ! udpsink
host=192.168.11.255 port=26000 auto-multicast=TRUE sync=true 2>&1 | grep
--ignore-case pat
0:00:00.070643306  1886      0x156a450 DEBUG              mpegtsmux
tsmux.c:1156:tsmux_write_pat: PAT has 1 programs


Is there a known bug with mpegtsmux, or a problem with how I'm using it
that is keeping it from sending the PMT and PAT periodically? (I have tried
without specifying the pat-interval and pmt-interval properties on the
command line with the same results)

Thanks!
Greg S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171012/6834cc89/attachment.html>


More information about the gstreamer-devel mailing list