问题
There is a system written in c#/.net. The client make screen shots (1-3 times/sec) and sends the screen shots to a high performance server for processing.
I want to reduce network traffic.
- previously I sent Png images data.
- now I just check the important regions, and send these regions only if changes.
Now I wondering what would happen if you use lossless codecs. There is a few exiting lossless video codecs. But how can I use it from c#/.net , and send the stream?
I found a few AVI wrappers, like AForge.AVIWriter, but all save the result into file. (it's not possible to save it to a temporary file in client, because of lack of space)
回答1:
It sounds like you're trying to re-create something like Remote Desktop (RDP protocol) or VNC (RFB protocol). Both of those protocols are lossless and send compressed deltas, so you might look into them and see if there are libraries that would take care of the details for you.
来源:https://stackoverflow.com/questions/7326846/screen-capture-and-lossless-codec-net