IPv6 problems

58 views
Skip to first unread message

Jan Andersson

unread,
Jan 21, 2022, 6:13:25 AM1/21/22
to gstreamer-java
I have problems trying to setup a pipeline from Java using IPv6. I get:
  gst_multiudpsink_configure_client:<rtcpsink> error: Invalid address family (got 10)
(more log below)

When I try to run a similar pipeline using gst-launch all works fine.

What I do in my code creating the "rtcpsink" element is:

  // Sink used to send RTCP
  Element rtcpSink = ElementFactory.make("udpsink", "rtcpsink");
  rtcpSink.set("bind-address", localHost);
  rtcpSink.set("bind-port", localRtcpPort);
  rtcpSink.set("host", remoteHost);
  rtcpSink.set("port", remoteRtcpPort);
  // No need for synchronisation or preroll on the RTCP sink
  rtcpSink.set("async", "false");
  rtcpSink.set("sync", "false");


and this works fine using IPv4. But using IPv6 I get the "Invalid address family" error.

Any ide'as what could be the reason for this problem?

Thanks,
/Jan

0:00:03.234648077  7399 0x7f962409cb30 INFO              GST_STATES gstbin.c:2952:gst_bin_change_state_func:<pipeline0> child 'fakesink' changed state to 2(READY) successfully
0:00:03.234703421  7399 0x7f962409cb30 INFO              GST_STATES gstbin.c:2503:gst_bin_element_set_state:<rtcpsink> current NULL pending VOID_PENDING, desired next READY
0:00:03.235141352  7399 0x7f962409cb30 WARN            multiudpsink gstmultiudpsink.c:1285:gst_multiudpsink_configure_client:<rtcpsink> error: Invalid address family (got 10)
0:00:03.235271542  7399 0x7f962409cb30 INFO        GST_ERROR_SYSTEM gstelement.c:2140:gst_element_message_full_with_details:<rtcpsink> posting message: Could not get/set settings from/on resource.
0:00:03.235543196  7399 0x7f962409cb30 INFO        GST_ERROR_SYSTEM gstelement.c:2167:gst_element_message_full_with_details:<rtcpsink> posted error message: Could not get/set settings from/on resource.
0:00:03.235585936  7399 0x7f962409cb30 WARN                basesink gstbasesink.c:5367:gst_base_sink_change_state:<rtcpsink> error: Failed to start
0:00:03.235625605  7399 0x7f962409cb30 INFO        GST_ERROR_SYSTEM gstelement.c:2140:gst_element_message_full_with_details:<rtcpsink> posting message: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
0:00:03.235793873  7399 0x7f962409cb30 INFO        GST_ERROR_SYSTEM gstelement.c:2167:gst_element_message_full_with_details:<rtcpsink> posted error message: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
0:00:03.235830928  7399 0x7f962409cb30 INFO              GST_STATES gstelement.c:2960:gst_element_change_state:<rtcpsink> have FAILURE change_state return
0:00:03.235853680  7399 0x7f962409cb30 INFO              GST_STATES gstelement.c:2547:gst_element_abort_state:<rtcpsink> aborting state from NULL to READY
0:00:03.235879343  7399 0x7f962409cb30 INFO              GST_STATES gstbin.c:2968:gst_bin_change_state_func:<pipeline0> child 'rtcpsink' failed to go to state 2(READY)

Neil C Smith

unread,
Jan 21, 2022, 6:37:25 AM1/21/22
to gstream...@googlegroups.com
On Fri, 21 Jan 2022 at 11:13, Jan Andersson <jan.an...@pureload.com> wrote:
> and this works fine using IPv4. But using IPv6 I get the "Invalid address family" error.
>
> Any ide'as what could be the reason for this problem?

Try using setAsString() and see if that works. There's some old
inherited code that special cases some URI / URL things in the
mappings. That might be causing a problem in this case. If so, open
a GitHub issue (or even better, pull request) and let's see if we can
get this fixed.

Best wishes,

Neil

--
Neil C Smith
Codelerity Ltd.
www.codelerity.com

Codelerity Ltd. is a company registered in England and Wales
Registered company number : 12063669
Registered office address : Office 4 219 Kensington High Street,
Kensington, London, England, W8 6BD

Jan Andersson

unread,
Jan 27, 2022, 3:26:43 AM1/27/22
to gstreamer-java
A colleague of mine actually found a bug in multiudpsink related to IPv6.
He has posted a merge request:
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1551

So this is a bug in GStreamer, not really related to the Java API.

Thanks,
/Jan

Reply all
Reply to author
Forward
0 new messages