udpsrc/udpsink with ipv6

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

udpsrc/udpsink with ipv6

GStreamer-devel mailing list
Hey im having a bit of trouble getting a stream going with ipv6 and
udpsink/udpsrc.

My transmitter is
gst-launch-1.0 videotestsrc ! video/x-raw,width=800,height=600 ! jpegenc !
rtpjpegpay ! udpsink host=<ipv6 address> port=5000

my receiver is
gst-launch-1.0 udpsrc address=<ipv6 address of receiver>  ! fakesink
silent=false dump=true

When i try sending over ipv4 i have no problems with either end and can see
the data being transmitted. But when i try with ipv6 i get

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Could not
get/set settings from/on resource.
Additional debug info:
gstudpsrc.c(1548): gst_udpsrc_open ():
/GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
bind failed: Error binding to address: Invalid argument
Setting pipeline to NULL ...
Freeing pipeline ...

Any help or guidance would be greatly appreciated. Thanks for your time




--
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: udpsrc/udpsink with ipv6

Nicolas Dufresne-5


Le ven. 15 févr. 2019 17 h 41, dpw157 via gstreamer-devel <[hidden email]> a écrit :
Hey im having a bit of trouble getting a stream going with ipv6 and
udpsink/udpsrc.

My transmitter is
gst-launch-1.0 videotestsrc ! video/x-raw,width=800,height=600 ! jpegenc !
rtpjpegpay ! udpsink host=<ipv6 address> port=5000

my receiver is
gst-launch-1.0 udpsrc address=<ipv6 address of receiver>  ! fakesink
silent=false dump=true

When i try sending over ipv4 i have no problems with either end and can see
the data being transmitted. But when i try with ipv6 i get

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Could not
get/set settings from/on resource.
Additional debug info:
gstudpsrc.c(1548): gst_udpsrc_open ():
/GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
bind failed: Error binding to address: Invalid argument
Setting pipeline to NULL ...
Freeing pipeline ...

Any help or guidance would be greatly appreciated. Thanks for your time

Looks like something with the address itself, which isn't included, could also be a missing scope.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: udpsrc/udpsink with ipv6

dpw157
Hey sorry for responding so late i got busy on the weekend. The ip addresses
were obtained using ifconfig, i used the link-local IPv6 address. Also what
do you mean by missing a scope. Am i forgetting a parameter?



--
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: udpsrc/udpsink with ipv6

dpw157
So for anyone who may have a similar problem, i figured out what was going
on. My router apparently did not have ipv6 enabled. So that would explain
why nothing worked. If you are having a similar issue just make sure to log
into your router as admin and enable ipv6



--
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: udpsrc/udpsink with ipv6

Nicolas Dufresne-5


Le lun. 18 févr. 2019 16 h 13, dpw157 <[hidden email]> a écrit :
So for anyone who may have a similar problem, i figured out what was going
on. My router apparently did not have ipv6 enabled. So that would explain
why nothing worked. If you are having a similar issue just make sure to log
into your router as admin and enable ipv6

Sorry to ear that, though I'm glad you are sharing your experience.

Regards,
Nicolas




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: udpsrc/udpsink with ipv6

MaZderMind
In reply to this post by dpw157
Hi

Am 18.02.19 um 19:31 schrieb dpw157:
> Hey sorry for responding so late i got busy on the weekend. The ip addresses
> were obtained using ifconfig, i used the link-local IPv6 address. Also what
> do you mean by missing a scope. Am i forgetting a parameter?

A Link-Local-Adress is only valid and guaranteed to be unique on the
Link, ie the actiual Cable or Wifi you're connected too.

When using Link-Local Adresses you *must* name the Network-Interface
they refer to:

fe80::3:9381:e382:7f69%en8

where en8 is the name of the Interface. Failing to do so, you'll see the
"Invalid argument" you reported. Try to SSH to that address, the result
will be the same.

> My router apparently did not have ipv6 enabled.
That does not matter. You can use IPv4 and IPv6 Adresses in the same
Network (ie within the same Netmask) without a Router. The Router is
only required when you want to communicate with other Adresses outside
of your local Network.

Especially IPv6 Link Local Adresses do not even need a DHCPv6-Server or
such, they are just there and can be used in any network.

Best Regards,
Peter
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: udpsrc/udpsink with ipv6

dpw157
hey thanks MaZderMind for the info i will also add the network-interface from
now on, but i have a question. If my router not having ipv6 enabled didnt
matter. Why did the stream work after i enabled it. Is it likely something
else was going on and was the problem. Im still new to this so im sorry if
im glossing over something basic.



--
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: udpsrc/udpsink with ipv6

MaZderMind
Hi

Am 20.02.19 um 16:01 schrieb dpw157:
> hey thanks MaZderMind for the info i will also add the network-interface from
> now on, but i have a question. If my router not having ipv6 enabled didnt
> matter. Why did the stream work after i enabled it. Is it likely something
> else was going on and was the problem. Im still new to this so im sorry if
> im glossing over something basic.

Just guessing: Enabling v6 on your router has probably enabled an IPv6
Prefix delegation which gave your devices true, routable IPv6 adresses
(additionally to the Link-Local-Adresses) that do not need the
Interface-Name appended.

You probably chose one of those dynamic or mgnt-Adresses.

Peter

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel