Capturing video from screens and applications can be very hard, and it's even worse when you want to do it in a cross-platform application. CrabGrab m

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-04-29 13:00:06

Capturing video from screens and applications can be very hard, and it's even worse when you want to do it in a cross-platform application. CrabGrab makes it easy to do continuous frame capture that can be used for individual screenshots or for capturing video. It also includes common functionality needed for enumerating screens and applications. You can get from a window to a pixel buffer in just a few lines of code that will work on both Windows and MacOS.

Small examples showing how to use the CrabGrab crate can be found at crabgrab/examples. You can run the examples from the repository:

Unfortuantely due to our dependence on metal-rs, building docs for macos doesn't work on docs.rs, since they use linux containers. As a workaround, we host macos documentation in this repository - link above.

All contributions are welcome! We are actively working on this project and are looking to expand the capabilities including sound capture, Linux support, and performance improvements.

Leave a Comment