GNOME Bugzilla – Bug 795572
srt: connection broken in srtserversink
Last modified: 2018-11-03 14:22:09 UTC
Hi, I tried to use default srt examples on gstreamer 1.14: * server GST_DEBUG="*srt*:5" gst-launch-1.0 videotestsrc ! videoconvert ! x264enc tune=zerolatency ! video/x-h264, profile=high ! mpegtsmux ! srtserversink uri=srt://127.0.0.1:1234/ * client GST_DEBUG="*srt*:5" gst-launch-1.0 srtclientsrc srt://127.0.0.1:1234 ! fakesink On the server side logs: 0:01:16.847828860 14463 0x1b41ca0 DEBUG srtserversink gstsrtserversink.c:243:idle_listen_callback:<srtserversink0> client added 0:01:16.853061871 14463 0x1b41b70 DEBUG srtbasesink gstsrtbasesink.c:362:gst_srt_base_sink_send_headers:<srtserversink0> Sending 2 stream headers 0:01:19.853099490 14463 0x1b41b70 WARN srtserversink gstsrtserversink.c:402:send_buffer_internal:<srtserversink0> Connection was broken. On the client side logs: ~/gst/1.14$ GST_DEBUG="*srt*:5" gst-launch-1.0 srtclientsrc srt://127.0.0.1:1234 ! fakesink Setting pipeline to PAUSED ... 0:00:03.036974378 14547 0x1883390 WARN srt gstsrt.c:145:gst_srt_client_connect_full:<srtclientsrc0> error: Connection error 0:00:03.037013540 14547 0x1883390 WARN srt gstsrt.c:145:gst_srt_client_connect_full:<srtclientsrc0> error: failed to connect to host (reason: Connection setup failure: connection time out.) 0:00:03.037368796 14547 0x1883390 DEBUG srtclientsrc gstsrtclientsrc.c:265:gst_srt_client_src_stop:<srtclientsrc1> closing SRT connection ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPipeline:pipeline0/GstSRTClientSrc:srtclientsrc0: Connection error Additional debug info: gstsrt.c(145): gst_srt_client_connect_full (): /GstPipeline:pipeline0/GstSRTClientSrc:srtclientsrc0: failed to connect to host (reason: Connection setup failure: connection time out.) Setting pipeline to NULL ... Freeing pipeline ... According to wireshark, UDP packets are sent on UDP src port 1234. Thanks for your help,
Try putting srt://:1234 as the server URI maybe?
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/696.