RemoteControl is a remote control tool that carries Windows desktop video and input events over a single TCP connection, using DXGI capture and real-time x264 encoding.
- RemoteControl
- Published at
- Aug 2, 2026
- 1
- Stars
- 12
- Download
- Synced at
- 3d ago
Latest release
RemoteControlAug 2, 2026, 10:27 AMDownloads slow? Switch the source anytime above
README
Project Overview
RemoteControl packs Windows desktop video and input events into one TCP connection: the server captures changed regions with DXGI Desktop Duplication, encodes them in real time with libx264, and shares the same channel with keyboard and mouse events, which the client decodes, renders and answers with input. It is a fairly low-level remote desktop implementation suited to customization or streaming pipeline research.
| Item | Value |
|---|---|
| Platform | Windows 10 / 11 x64 |
| Languages | C# and C++ |
| Capture | DXGI Desktop Duplication |
| Encoding | libx264 ultrafast + zerolatency |
| Transport | Single TCP connection |
Video and input share one connection, which simplifies pairing and relaying.
Core Components
- Capture: DXGI returns frames only when the desktop changes, along with dirty rectangles
- Encoder: x264 with ultrafast and zerolatency presets, streaming IDR and P frames
- Transport: video, input events and control signaling share one TCP connection
- Agent service: an optional Windows service mode that injects into user sessions and restarts after crashes
- Build script:
bootstrap.pydownloads dependencies and prepares the build
Key Features
- Low-latency streaming: change-triggered capture plus real-time encoding avoids useless frames
- Input relay: keyboard and mouse events travel on the same channel as video
- Dirty rectangle optimization: only changed screen regions are encoded
- Service mode: runs as a Windows service and can take over the login screen
- Crash recovery: the service restarts automatically after unexpected exits
- Session injection: enters user sessions through
WTSQueryUserTokenandCreateProcessAsUser - Buildable pieces: separate CMake and .NET projects make component swaps easy
Target Audience
- Developers building their own remote desktop solution
- Engineers studying streaming pipelines
- Technical users running low-latency control on a LAN
- Operations staff needing a persistent service-mode remote tool
Quick Start
- Install Visual Studio 2022, CMake 3.20+ and the .NET 8 SDK
- Clone the repo and run
python bootstrap.pyto prepare dependencies - Configure and build the capture and encoding components with CMake
- Start the server and client and confirm the screen renders
- For persistence, install the service and verify automatic restart
System Requirements
| Item | Requirement |
|---|---|
| OS | Windows 10 / 11 x64 |
| Build tools | Visual Studio 2022, CMake 3.20+ |
| Runtime | .NET 8.x |
| Libraries | libx264, SDL2, FFmpeg |
Notes
- Low-level project: no ready-made GUI, you compile it yourself
- Windows only: capture and input injection rely on Windows APIs
- Security is yours: the single TCP channel has no built-in encryption or auth
- High service privilege: session injection mode needs system-level rights
Release history
Sort