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.4.tar.gz (9.5 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.4-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deltascream-0.1.4.tar.gz
  • Upload date:
  • Size: 9.5 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.4.tar.gz
Algorithm Hash digest
SHA256 2dc0a0a5af0244d0047472f9731d3c4c0cc563a43d6e46827d4665404cfffa47
MD5 ec26cbbb380ef292be3f7c6f506212a4
BLAKE2b-256 737e13c57d3aa17a13186e33b801a2590496a5b458aec3979b178992663c73b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deltascream-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f5538221a2088dce8fe7add5f9663e208ef954796733ee4645f6515ea836ce07
MD5 2238848893ba3b4e01580086e3370a74
BLAKE2b-256 eacc954488fd88032d301217a77c6742525483cf09fc7f98a83c971c4b48f180

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