Log in

View Full Version : Good way of sending encoded packages over WLAN


koliva
6th February 2013, 12:48
Hi,

I have a real-time streaming application from multiple clients to a single server. So basically clients' desktops are being captured and encoded by x264 and transmitted over wireless network to the server. The server decodes incoming data and visualizes them on the screen.
Currently I am using TCP for the connection protocol but it introduces some latency to the system. Therefore, I want to change it. Could you please tell me a good way to transfer the encoded video data over wireless lan? I know an option of UDP but I am not sure this is the best or not. I was wondering if anyone of you could shed some light on this issue?

Thanks.

Warm wishes.

LoRd_MuldeR
6th February 2013, 14:16
UDP is a good idea, if you want to avoid the overhead of a "connection oriented" data transfer and if you can accept the restrictions that follow. Most important, with a "message oriented" data transfer, like UDP, packets can get lost or can be reordered - and the protocol won't help you to deal with these situations. At the same time TCP uses sequence numbers to re-transmit lost packets and to make sure all packages are forwarded to the application in the exactly same order as they were sent. Actually in TCP you don't have to deal with packages/messages on the application layer at all, because TCP provides a continuous byte stream. Of course all these "services" come at the cost of an increased delay...

koliva
6th February 2013, 17:17
Thanks Lord Mulder.