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.2.tar.gz (7.3 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.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deltascream-0.1.2.tar.gz
  • Upload date:
  • Size: 7.3 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.2.tar.gz
Algorithm Hash digest
SHA256 27b070dd7cb2ecb79989067217019a9c57466c3165df9dbbc34b5af794499d87
MD5 4853e49bd7218ce8cb578250350f2107
BLAKE2b-256 91a023d4c368a39fee4ceaf5e40972169217f9e3833e500c6dd844d64e4934ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deltascream-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6a668ed4eeb8411989f1b9bba3b802dc7658a33a3c184eff245367d4a6e5dfcb
MD5 ddfc080b26e81be26ba15e86dcac77bd
BLAKE2b-256 10bfef4766b6ffdf2a332497f10c52d6fd4c11bf77e11141c0990b3f9a026f5b

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