1

I'm currently working on some software which captures your monitor image and sends it over to clients over the internet. So far I have it working in my local area network but when I go to test it over the internet, hardly any of the images get through to the client.

I am using Lidgren for my networking. At the moment, I get a Bitmap from the screen, convert it to a JPEG with 30 quality, G-zip it and send it on its way. Each image is about 80KB in size, and I try to send 10 images a second to the client. Now that's like a 7mbit upload connection required, mines is only 2mbit.

So basically, is anyone aware of any compression libraries or techniques which will dramatically decrease the file size of each image. This might be completely impossible but I thought that I would give it a go.

Any help is much appreciated, Thanks!

4

1 回答 1

4

你真的需要每次都发送整个帧吗?你能不能只发送当前框架和前一个框架之间发生的变化,然后将这些更改应用到客户端框架以使其更新?假设服务器没有观看视频或类似内容,这应该很快。这个答案表明这就是 RDP (Microsoft) 和 VNC 用于远程桌面查看的内容。

有关如何执行此操作的一些想法,请参阅https://stackoverflow.com/a/4098515/171703https://stackoverflow.com/a/1876848/171703 。

于 2012-01-21T23:45:50.307 回答