gitmyhub

win-wrec

Rust ★ 0 updated 25d ago

Windows port of wrec

A Windows-native rewrite of an efficient screen recorder, written in Rust and using only built-in Windows tools to capture screen, audio, and encode video.

RustDXGIWASAPIMedia FoundationWin32setup: moderatecomplexity 3/5

win-wrec is a Windows specific rewrite of an existing screen recording tool called wrec, which its author describes as a highly efficient screen recorder. This version is built specifically for Windows using the operating system's own low level tools for capturing the screen and audio, rather than relying on any outside libraries. Everything is written in Rust, a systems programming language, and talks directly to Windows through its native programming interfaces.

Specifically, it captures the screen using a Windows feature called DXGI output duplication, records system audio using WASAPI loopback capture, which lets it pick up sound that is playing on the computer, and encodes the recording into H.264 or HEVC video formats using Windows' own Media Foundation encoding tools. Because it relies only on built in Windows components and Rust, there is nothing extra to install beyond the Rust toolchain itself.

The project notes it is a work in progress. Right now, only the command line version works: a user can list the available displays on their computer, then start recording a chosen display for a set number of seconds, or type stop to end the recording manually. A graphical interface is planned but not yet available.

To build and run it, a user needs Rust version 1.78 or newer along with the Windows specific build target for 64 bit systems. The project is released under the MIT license, matching the license of the original wrec project it is based on, so it can be used freely, including for commercial purposes.

Where it fits