mpegtsmux for a/v blocking when audio missing

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

mpegtsmux for a/v blocking when audio missing

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

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

This is my pipeline:

mpegtsmux name=mux \
 ! udpsink host= 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:
gstreamer-devel mailing list
[hidden email]