Skip to main content

Headless screen and audio capture library and CLI for Windows

Project description

recap

Headless screen and audio capture library and CLI for Windows.

Features

  • Record an entire monitor via Windows Graphics Capture (WGC)
  • Record a single window via WGC (real window capture, not desktop crop)
  • Record system audio via WASAPI loopback
  • Video-only, audio-only, or audio+video modes
  • CLI tool (recap) and importable Python library
  • Uses FFmpeg for encoding/muxing only

Installation

pip install -e .

FFmpeg must be available on PATH or specified via --ffmpeg.

Releasing

GitHub Actions will publish the package to PyPI when you push a tag that starts with v, for example v0.1.1.

Before the first release, configure PyPI Trusted Publishing for this repository and approve the pypi environment in GitHub.

CLI Usage

# Check environment
recap doctor

# List available capture targets
recap monitors
recap windows
recap devices

# Record primary monitor with audio
recap record --output recording.mp4

# Record a specific window
recap record --window-title "Notepad" --output notepad.mp4

# Record video only
recap record --video-only --output silent.mp4

# Record a 1280x720 crop from the top-left of the selected source
recap record --crop-size 1280x720 --crop-position top-left --output cropped.mp4

# Record a centered 1280x720 crop from a specific window
recap record --window-title "Notepad" --crop-size 1280x720 --crop-position middle --output notepad-cropped.mp4

# Record audio only
recap record --audio-only --output audio.wav

# Record for 30 seconds
recap record --duration 30 --output clip.mp4

Crop positions

--crop-position supports:

  • top-left, top-middle, top-right
  • middle-left, middle, middle-right
  • bottom-left, bottom-middle, bottom-right

Center aliases are also accepted (center, top-center, middle-center, etc.).

Library Usage

from recap import Recorder, RecordingConfig

config = RecordingConfig(output="recording.mp4")
recorder = Recorder(config)
recorder.start()
# ... do work ...
recorder.stop()
recorder.wait()

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recap_capture-0.4.1.tar.gz (38.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

recap_capture-0.4.1-cp313-cp313-win_amd64.whl (239.5 kB view details)

Uploaded CPython 3.13Windows x86-64

recap_capture-0.4.1-cp312-cp312-win_amd64.whl (240.1 kB view details)

Uploaded CPython 3.12Windows x86-64

recap_capture-0.4.1-cp311-cp311-win_amd64.whl (239.4 kB view details)

Uploaded CPython 3.11Windows x86-64

recap_capture-0.4.1-cp310-cp310-win_amd64.whl (239.3 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

Details for the file recap_capture-0.4.1.tar.gz.

File metadata

  • Download URL: recap_capture-0.4.1.tar.gz
  • Upload date:
  • Size: 38.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for recap_capture-0.4.1.tar.gz
Algorithm Hash digest
SHA256 f484a45bf9eceb51fb346866088af9d481d75e1fa08c225be600092a7fb37e7f
MD5 8b76587b02fdfbdddb9b3c6deec9509e
BLAKE2b-256 99ee54626fafd5b6cca6e03a479df4105e392c44a88014deda622dcf6b991674

See more details on using hashes here.

Provenance

The following attestation bundles were made for recap_capture-0.4.1.tar.gz:

Publisher: release.yml on Lexian-droid/recap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file recap_capture-0.4.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for recap_capture-0.4.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3779dc8f01feee391b62e1fb427249af8ba39e8e91bd5f123bdaa1785794a37e
MD5 c0a6d97dabddc9c53aee2adc004ccfd0
BLAKE2b-256 eb2fd14ad821600e98422b5e59bb75095db855a85110b1fc0bd5241834ae4ea9

See more details on using hashes here.

Provenance

The following attestation bundles were made for recap_capture-0.4.1-cp313-cp313-win_amd64.whl:

Publisher: release.yml on Lexian-droid/recap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file recap_capture-0.4.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for recap_capture-0.4.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5a950d8bc6955b26e0a979e5b2c35318a31cd0d74f436fb0e5c47419bcf0116e
MD5 7a93a30bbce6694b5ba9b862b7e4d211
BLAKE2b-256 6020bdaa062bde25b101ab3c30218c827cf15d8b4d4071f23542d99f1502db47

See more details on using hashes here.

Provenance

The following attestation bundles were made for recap_capture-0.4.1-cp312-cp312-win_amd64.whl:

Publisher: release.yml on Lexian-droid/recap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file recap_capture-0.4.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for recap_capture-0.4.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ddc253358a5c12575d2732d2de760dd8932cc19f46da2fdaed348c677fbb082b
MD5 ca79c1c10cbc738e03d556f501b7cdb0
BLAKE2b-256 cdc673059728ff8d5238b1a2cbc68e2ad1003c6c5a50e1e2ad5c70087ffdea06

See more details on using hashes here.

Provenance

The following attestation bundles were made for recap_capture-0.4.1-cp311-cp311-win_amd64.whl:

Publisher: release.yml on Lexian-droid/recap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file recap_capture-0.4.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for recap_capture-0.4.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 077dfc5f0da4ccc1422d82953e2033f05d8b2c15ab2fa80edc0f78d570a0fda0
MD5 b7ff5bae402f04fc81c9ab82f4becc62
BLAKE2b-256 315ff814255ce94fe276e01faac22e8974ca72e1dd2ac172f4d9a64467cfe740

See more details on using hashes here.

Provenance

The following attestation bundles were made for recap_capture-0.4.1-cp310-cp310-win_amd64.whl:

Publisher: release.yml on Lexian-droid/recap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page