mpegtsmux for a/v blocking when audio missing

wreuven wreuven at gmail.com
Thu Jan 28 22:22:02 UTC 2021


I am:

1) Receiving a live video which sometimes includes audio and sometimes not.
2) Pushing the video and optional audio into a gstreamer (18.2) MPEGTSMUX
connected to UDPSINK

If video (but no audio) is fed in, it seems like TSMUX fills its internal
buffer but nothing comes out of the TSMUX. If audio start arriving later
(with later timestamps) and we push it, it seems like everything is still
stuck.

Is there some way to prevent MPEGTSMUX from getting stuck waiting forever
for audio?

This is my pipeline:

mpegtsmux name=mux \
 ! udpsink host=127.0.0.1 port=5002 \
 appsrc name=video_src format=3 caps= \
"video/x-h264, stream-format=byte-stream, alignment=au, framerate=25/1" \
 ! queue \
 ! mux. \
 appsrc name=audio_src format=3 caps= \
"audio/x-opus, rate=(int)48000, channels=(int)2,
channel-mapping-family=(int)0" \
 ! queue \
 ! mux.




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


More information about the gstreamer-devel mailing list