Alias for rustcam. Rust-backed DXGI Desktop Duplication screen capture for Windows.
Project description
bestcam
Alias of rustcam, a Rust-backed DXGI Desktop Duplication screen capture library for Windows. Same kind of API as bettercam, except the AcquireNextFrame loop runs in native Rust with the GIL released, so it actually rides the compositor refresh instead of stalling at ~140 fps.
This package is a shim. pip install bestcam pulls in rustcam and re-exports everything under the shorter name. All functionality, docs and bug reports live in the parent package.
The name is a wink at bettercam, which advertises itself as "the world's fastest publicly available Python screenshot library." It's a fork of dxcam that calls DXGI through comtypes from Python on every frame, so its own published benchmark hits ~130 fps regardless of what the monitor can do. rustcam does the same DDA loop in native Rust and rides a 180 Hz panel at the panel's refresh rate, capturing alot more unique frames per second on real content. If you came here looking for bestcam, just pip install rustcam (or keep this, same package).
import bestcam # same as: import rustcam
cap = bestcam.Capturer(output=0, cursor=True)
frame = cap.grab()
Full docs: https://github.com/zen-ham/rustcam
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bestcam-0.0.7-py3-none-any.whl.
File metadata
- Download URL: bestcam-0.0.7-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73fa2886cb8907fbb46fef6997578b0ad54624fbd0c27bdd95035b28e065417a
|
|
| MD5 |
89344edcede8481401828b224fbe4a46
|
|
| BLAKE2b-256 |
1fdae5d3e8c3d45f89a7ae20291cbe1340bd1d68fcc2dc6d686ffe336b2d3b8b
|