rtmpsrc will stuck if the stream does not have audio track
Tim Müller
tim at centricular.com
Mon Jul 8 08:19:28 UTC 2019
On Mon, 2019-07-08 at 00:44 -0500, leeoxiang wrote:
Hi,
> I am using rtmpsrc and flvdemux to demux the rtmp stream and then
> send video and audio with udp ,
>
> My src stream does not have audio track sometimes, in this case, it
> will stuck the pipeline.
>
> Anyone can help me with this?
>
> ```
> gst-launch-1.0 -v rtmpsrc location=rtmp://localhost/live/stream !
> flvdemux
> name=demux demux.audio ! queue ! decodebin ! audioconvert !
> audioresample !
> opusenc ! rtpopuspay timestamp-offset=0 ! udpsink host=127.0.0.1
> port=5000
> demux.video! queue ! h264parse ! rtph264pay timestamp-offset=0
> config-interval=-1 ! udpsink host=127.0.0.1 port=5002
> ``
You could try setting udpsink async=false on the udpsink of the audio
branch.
Cheers
Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list