Re: Simple Remote Desktop
Posted: Sun Feb 23, 2025 6:35 pm
Etayson
There are examples of data transmission over the network here on the forum, and I also wanted to write such a program. But the problem appeared when I began to think about how I could reduce the data flow by determining the difference between the current and the previous frame in order to transfer the square with the changes and place it on the previous frame. Then I realized that it would put a lot of strain on the processor if a video was playing on the screen. Then you need to determine the window where the video is playing and not analyze it, but transfer it as it is. That is, we need a function that defines windows. But the windows can also overlap with each other. In general, I got confused and realized that I couldn't do it. There was also an idea to capture the screen with 1 cm squares, if the squares did not change, they would be used from the previous frame, and on another desktop they would form a picture like puzzles. Well, the screens also don't match, as a result, you either need to scale the window or transfer it as it is using scrolling. In general, I realized that this is a hard job.
Or maybe need a video codec that determines all this by itself?
There are examples of data transmission over the network here on the forum, and I also wanted to write such a program. But the problem appeared when I began to think about how I could reduce the data flow by determining the difference between the current and the previous frame in order to transfer the square with the changes and place it on the previous frame. Then I realized that it would put a lot of strain on the processor if a video was playing on the screen. Then you need to determine the window where the video is playing and not analyze it, but transfer it as it is. That is, we need a function that defines windows. But the windows can also overlap with each other. In general, I got confused and realized that I couldn't do it. There was also an idea to capture the screen with 1 cm squares, if the squares did not change, they would be used from the previous frame, and on another desktop they would form a picture like puzzles. Well, the screens also don't match, as a result, you either need to scale the window or transfer it as it is using scrolling. In general, I realized that this is a hard job.
Or maybe need a video codec that determines all this by itself?