Skip to main content

A Thread-Safe, Zero-Lag Camera and Audio Multiplexer with Built-In Recording and Watchdog

Project description

DeltaScream

A high-performance media "delta" that forks raw audio/video buffers into multiple concurrent streams.

When building AI tools (like Neural Inference engines or Computer Vision apps), they often "hog" the hardware. You lose the ability to screen record or tap into the audio because your inference engine places an exclusive lock on your OS drivers.

DeltaScream acts as a buffered middleware. Instead of your apps reaching for the hardware, they reach for the Delta.

  • The Main Branch (Inference): A high-priority, low-latency path for your neural logic.
  • The Side Branch (Recording): A background "Tributary" that encodes the frames and audio to a file natively.
  • The Scream Listener: A watchdog thread that monitors the buffer health. If the inference engine causes a bottleneck, it triggers the "Scream" state.

Installation

pip install DeltaScream

Quick Start

from DeltaScream import DeltaScream

# Initialize the Hub (Dual-Stream Default: Mic + System WASAPI)
hub = DeltaScream(video_src=0, mux_audio=True)

# To get the latest video frame for your inference engine:
success, frame = hub.read_video()

# To get the latest sequential audio frames (to avoid stuttering):
# Maintain your own local index
my_audio_index = 0
audio_chunks = hub.read_audio(my_audio_index)
my_audio_index += len(audio_chunks)

# To start the built-in background recorder (Tributary):
hub.start_recording("my_session.mp4", "my_session_audio.wav")
hub.stop_recording()

# Shutdown
hub.stop()

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

deltascream-0.1.3.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

deltascream-0.1.3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file deltascream-0.1.3.tar.gz.

File metadata

  • Download URL: deltascream-0.1.3.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for deltascream-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7cd8d0da997c41a9d2ddc54fd051637c0fb633f54cfbbf11681bb2a0d91c2cd6
MD5 6f1134d91402dbccb70198e85433b77a
BLAKE2b-256 7b6b367318f1be7361a972169250e32bc724679561d2407ef1b145c197d7b5cc

See more details on using hashes here.

File details

Details for the file deltascream-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: deltascream-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for deltascream-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 667064f9d8dfb31511d9674e0659a3ea36513d750ca43800f93616a6b1e6d6be
MD5 e2749006a122c2805a55337afa98a302
BLAKE2b-256 b0152e1f444084f7c848a265ac7244021e4a1300b97fd7adffbc4af916eb9c1e

See more details on using hashes here.

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