Samsung / kv2streamer

kv2streamer is a library that allows developers to access the new Kinect V2 sensor data and tracking capabilities from non-windows OS. It provides a server-side application that can stream out Kinect V2 data to multiple client-side applications accessing the client-side API running on non-windows OS over LAN.
Other
52 stars 19 forks source link

How to show multiple kinect server output in single client computer #6

Open kirubhakinect opened 9 years ago

kirubhakinect commented 9 years ago

Hi,

After a long time i got a doubt in kv2streamer application, multiple clients can connect to single server by using multicast ip.But is it possible to connect multiple servers to single client.(i.e To show multiple server kinect data output to single client machine.)

Please suggest me with some ideas.

Thanks in Advance Kiruba

kvnwinata commented 9 years ago

Hi Kiruba,

You are right, we designed kv2streamer to connect multiple clients from one server. Connecting multiple server might be possible, but I think it will need some, if not a lot, modification on both the client and the server side. Currently, since it's assumed that there will be one server, a predefined port number is used for each of the channel, which you can see in kv2streamer-lib/kv2client/SharedConfig.h.

I've never tried this, but I think if you try running two servers at the same time and connect it to a single client computer but with two kv2client instances using different multicast IP addresses, it will still confuse the the kv2client and all the data received might be messed up because they're both sharing the same port.

One possible to solve this is if you add a way to change the default port number, for both the server and client (this will require you to modify the source code of course), and instantiate it like this:

[Client 1 on Machine A] <----IP1, Port Numbers 1--- [Server 1 on Machine B, Kinect B] [Client 2 on Machine A] <----IP2, Port Numbers 2--- [Server 2 on Machine C, Kinect C] *Note that both client instances are on the same machine, possibly even the same program.

However, this is just a wild guess from my part, and I'm not sure if the solution proposed above would work. Again, we didn't design it to work this way, so we didn't put much effort at supporting the scenario above, which means there might be complications on the gstreamer part of the code, or even more.

If you do try this out though, please let me know the result, or possibly even submit a pull request :)

Kevin

kirubhakinect commented 9 years ago

Thanks Kevin, Yes now i understand its difficulty.Once i completed the analysis of multiserver-single client, i will tell you my result.