SRT stalling/errors

Marianna Smidth Buschle msb at qtec.com
Mon Sep 13 08:20:15 UTC 2021


Hi Marc,

Thanks for the tip.

Indeed, if I use:

gst-launch-1.0 -v videotestsrc ! video/x-raw, height=1080, width=1920 ! 
videoconvert ! x264enc tune=zerolatency ! video/x-h264, profile=high ! 
mpegtsmux ! srtsink uri=srt://:8888

And then connect a client with:

gst-launch-1.0 -v srtsrc uri="srt://10.10.150.36:8888" ! decodebin ! 
autovideosink

I get video and I can see the counter running on the server pipeline.


However I do still get errors if I try adding an ip (localhost, 0.0.0.0, 
127.0.0.1) to the server uri.


And I can only get the client to work if I use my specific IP on the uri 
as well. Things like localhost, 127.0.0.1, 0.0.0.0, don't work there, 
only the real IP.


And I find it a shame that I can't play it in VLC, my version at least 
doesn't seem to support it:

vlc --list | grep srt
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)

Though from here 
(https://justinjoy9to5.blogspot.com/2018/02/srt-typical-examples.html) 
it seems like 3.0.0 should have...


On 13.09.2021 09.42, gstreamer-devel-request at lists.freedesktop.org wrote:
> Hi Marianna, I am also just testing with srt. What I have noticed is 
> that this counter starts running when you connect a client. I am 
> testing on a vm where I can disable the firewall, if you are windows 
> or so, you should disable the firewall so you are sure nothing is 
> blocking your connections [@gst-plugins-bad]# gst-launch-1.0 
> videotestsrc ! video/x-raw,width=640,height=480 ! x264enc ! mpegtsmux 
> ! srtsink uri=srt://:33333 Setting pipeline to PAUSED ... Pipeline is 
> PREROLLING ... Redistribute latency... Pipeline is PREROLLED ... 
> Setting pipeline to PLAYING ... New clock: GstSystemClock 0:00:04.5 / 
> 99:99:99.
>> -----Original Message-----
>> From: gstreamer-devel<gstreamer-devel-bounces at lists.freedesktop.org>  On
>> Behalf Of Marianna Smidth Buschle via gstreamer-devel
>> Sent: Monday, 13 September 2021 09:34
>> To:gstreamer-devel at lists.freedesktop.org
>> Cc: Marianna Smidth Buschle<msb at qtec.com>
>> Subject: SRT stalling/errors
>>
>> Hi,
>>
>> I have been trying to use the SRT examples from
>> https://www.collabora.com/news-and-blog/blog/2018/02/16/srt-in-
>> gstreamer/
>>
>> But I can't get anything to work, it stays stuck at 0:00:00.0:
>>
>>
>> gst-launch-1.0 videotestsrc? ! video/x-raw,width=640,height=480 !
>> x264enc ! mpegtsmux ! srtsink uri=srt://:33333 --gst-debug=*:3
>>
>>
>> PAUSERER r?rledning ...
>> R?rledningen PREROLL'er ...
>> 0:00:00.012148582 278786 0x562731a85980 WARN????????????? aggregator
>> gstaggregator.c:2046:gst_aggregator_query_latency_unlocked:<mpegtsmux0>
>> Latency query failed
>> 0:00:00.012154380 278786 0x562731a859e0 FIXME??????????????? default
>> gstutils.c:4025:gst_pad_create_stream_id_internal:<videotestsrc0:src>
>> Creating random stream-id, consider implementing a deterministic way of
>> creating a stream-id
>> Oml?gger ventetid...
>> 0:00:00.190766349 278786 0x562731a85980 FIXME?????????????? basesink
>> gstbasesink.c:3384:gst_base_sink_default_event:<srtsink0> stream-start
>> event without group-id. Consider implementing group-id handling in the
>> upstream elements
>> R?rledningen er PREROLL'ed ...
>> R?rledning s?ttes til AFSPIL ...
>> New clock: GstSystemClock
>> 0:00:00.0 / 99:99:99.
>>
>> If I change "uri=srt://:33333" to "uri=srt://localhost:33333" or
>> "uri=srt://127.0.0.1:33333" I get this error after being stuck at
>> 0:00:00.0 for ~5 seconds:
>>
>>
>> 0:00:03.063014677 278844 0x55d47e6bf920 WARN srtobject
>> gstsrtobject.c:1436:gst_srt_object_send_headers:<srtsink0> error:
>> Connection does not exist
>> FEJL: fra element /GstPipeline:pipeline0/GstSRTSink:srtsink0: Kunne ikke
>> skrive til ressource.
>> Yderligere fejls?gningsinformation:
>> ../ext/srt/gstsrtobject.c(1436): gst_srt_object_send_headers ():
>> /GstPipeline:pipeline0/GstSRTSink:srtsink0:
>> Connection does not exist
>> 0:00:03.063327514 278844 0x55d47e6bf920 WARN srtsink
>> gstsrtsink.c:181:gst_srt_sink_render:<srtsink0> error: Failed to write
>> to SRT socket: Unknown error
>> FEJL: fra element /GstPipeline:pipeline0/GstSRTSink:srtsink0: Failed to
>> write to SRT socket: Unknown error
>> Yderligere fejls?gningsinformation:
>> ../ext/srt/gstsrtsink.c(181): gst_srt_sink_render ():
>> /GstPipeline:pipeline0/GstSRTSink:srtsink0
>> Execution ended after 0:00:02.879225909
>> R?rledning s?ttes til NUL ...
>> 0:00:03.063504673 278844 0x55d47e6bf920 FIXME aggregator
>> gstaggregator.c:1365:gst_aggregator_aggregate_func:<mpegtsmux0> Subclass
>> should call gst_aggregator_selected_samples() from its aggregate
>> implementation.
>> 0:00:03.063651379 278844 0x55d47e6f2210 WARN srtlib
>> epoll.cpp:865:update_events: : epoll/update: IPE: update struck E1 which
>> is NOT SUBSCRIBED to @312011233
>> 0:00:03.063892875 278844 0x55d47e6bf980 WARN basesrc
>> gstbasesrc.c:3127:gst_base_src_loop:<videotestsrc0> error: Internal data
>> stream error.
>> 0:00:03.063947540 278844 0x55d47e6bf980 WARN basesrc
>> gstbasesrc.c:3127:gst_base_src_loop:<videotestsrc0> error: streaming
>> stopped, reason error (-5)
>> FEJL: fra element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
>> Internal data stream error.
>> Yderligere fejls?gningsinformation:
>> ../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop ():
>> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
>> streaming stopped, reason error (-5)
>> 0:00:03.158370051 278844 0x55d47e6f2210 WARN srtlib
>> epoll.cpp:865:update_events: : epoll/update: IPE: update struck E1 which
>> is NOT SUBSCRIBED to @312011233
>>
>>
>> gst-launch-1.0 --version
>> gst-launch-1.0 version 1.18.1
>> GStreamer 1.18.4
>> http://packages.qa.debian.org/gstreamer1.0
>>
>>
>> Thanks
>>
>> Marianna

-- 
Best regards / Med venlig hilsen
“Marianna Smidth Buschle”

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210913/04d8c604/attachment.htm>


More information about the gstreamer-devel mailing list