multiple servers streaming to the same udpsrc port

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

multiple servers streaming to the same udpsrc port

Visser Sander (2) (Consultant)
Hi

Im looking into having multiple servers stream to the same client (2 separate gstreamer instances in the client) using UDP unicast, but also the same UDP port on the client (for simplicity avoiding configuration in the servers).

 I do not find any high-level way to lock the source IP of the UDP stream in the client, I thought I would be able to specify a GSocket with source address locker in 'udpsrc', but cannot understand if this possible. It seems remote-address of a GSocket is read-only.  The only method I find is to create the GSocket using an fd where SO_ATTACH_FILTER has been set to only allow one sender.

Another way would be to rewrite the destination port depending on source IP outside the gstreamer pipeline, or should it be possible without modifying gstreamer plugins?

Is there a more high-level GStreamer method to limit the source IP?

/Regards Sander

This email message and any attachments may contain confidential information and may be privileged. If you are not the intended recipient or otherwise not authorized to receive this message, you are prohibited to use, copy, disclose or take any action based on this email or any information contained herein. If you are not the intended recipient, please advise the sender immediately by replying to this email and permanently delete this message and any attachments from your system.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: multiple servers streaming to the same udpsrc port

Baby Octopus
You can not have two different traffic coming onto the same port unless you have a server/session based architecture at the receiver. If you are send simple video data RTP or TS, it is not possible

~BO
Reply | Threaded
Open this post in threaded view
|

RE: multiple servers streaming to the same udpsrc port

Visser Sander (2) (Consultant)
That makes sense off course as only one app at a time can listen on a UDP socket bound to a specific port. So it looks like my options are to change the destination port (in sender or in receiver before packet sent to application (netfilter or to have a splitting application outside the gsteamer pipeline that splits the UDP streams based on source IP and generates two new ones...)).

-----Original Message-----
From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Baby Octopus
Sent: den 12 maj 2017 9:54
To: [hidden email]
Subject: Re: multiple servers streaming to the same udpsrc port

You can not have two different traffic coming onto the same port unless you
have a server/session based architecture at the receiver. If you are send
simple video data RTP or TS, it is not possible

~BO



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/multiple-servers-streaming-to-the-same-udpsrc-port-tp4682984p4682985.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

This email message and any attachments may contain confidential information and may be privileged. If you are not the intended recipient or otherwise not authorized to receive this message, you are prohibited to use, copy, disclose or take any action based on this email or any information contained herein. If you are not the intended recipient, please advise the sender immediately by replying to this email and permanently delete this message and any attachments from your system.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel