<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Marc,</p>
    <p>Thanks for the tip.</p>
    <p>Indeed, if I use:</p>
    <p>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</p>
    <p>And then connect a client with:</p>
    <p>gst-launch-1.0 -v srtsrc uri="srt://10.10.150.36:8888" !
      decodebin ! autovideosink</p>
    <p>I get video and I can see the counter running on the server
      pipeline.</p>
    <p><br>
    </p>
    <p>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.</p>
    <p><br>
    </p>
    <p>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.</p>
    <p><br>
    </p>
    <p>And I find it a shame that I can't play it in VLC, my version at
      least doesn't seem to support it:</p>
    <p>vlc --list | grep srt<br>
      VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)</p>
    <p>Though from here
      (<a class="moz-txt-link-freetext" href="https://justinjoy9to5.blogspot.com/2018/02/srt-typical-examples.html">https://justinjoy9to5.blogspot.com/2018/02/srt-typical-examples.html</a>)
      it seems like 3.0.0 should have...</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 13.09.2021 09.42,
      <a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel-request@lists.freedesktop.org">gstreamer-devel-request@lists.freedesktop.org</a> wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:mailman.3159.1631518959.907.gstreamer-devel@lists.freedesktop.org">
      <pre class="moz-quote-pre" wrap=""><div class="moz-txt-sig">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.



</div></pre>
      <blockquote type="cite" style="color: #007cff;">
        <pre class="moz-quote-pre" wrap="">-----Original Message-----
From: gstreamer-devel <a class="moz-txt-link-rfc2396E" href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" moz-do-not-send="true"><gstreamer-devel-bounces@lists.freedesktop.org></a> On
Behalf Of Marianna Smidth Buschle via gstreamer-devel
Sent: Monday, 13 September 2021 09:34
To: <a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org" moz-do-not-send="true">gstreamer-devel@lists.freedesktop.org</a>
Cc: Marianna Smidth Buschle <a class="moz-txt-link-rfc2396E" href="mailto:msb@qtec.com" moz-do-not-send="true"><msb@qtec.com></a>
Subject: SRT stalling/errors

Hi,

I have been trying to use the SRT examples from
<a class="moz-txt-link-freetext" href="https://www.collabora.com/news-and-blog/blog/2018/02/16/srt-in" moz-do-not-send="true">https://www.collabora.com/news-and-blog/blog/2018/02/16/srt-in</a>-
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
<a class="moz-txt-link-freetext" href="http://packages.qa.debian.org/gstreamer1.0" moz-do-not-send="true">http://packages.qa.debian.org/gstreamer1.0</a>


Thanks

Marianna</pre>
      </blockquote>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Best regards / Med venlig hilsen
“Marianna Smidth Buschle”</pre>
  </body>
</html>