rtmpsrc will stuck if the stream does not have audio track
leeoxiang
leeoxiang at gmail.com
Mon Jul 8 11:57:18 UTC 2019
Tim Müller wrote
> 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
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at .freedesktop
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
That does not work. I tried that on video and audio both.
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list