rtmpsrc will stuck if the stream does not have audio track

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

rtmpsrc will stuck if the stream does not have audio track

leeoxiang
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
``





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rtmpsrc will stuck if the stream does not have audio track

Tim Müller
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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rtmpsrc will stuck if the stream does not have audio track

leeoxiang
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@.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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel