Skip to main content

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()

Release files for DeltaScream 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DeltaScream 0.1.4
File Size Uploaded
deltascream-0.1.4.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DeltaScream 0.1.4
File Interpreter ABI Platform
deltascream-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 20.0 kB

Release files / deltascream-0.1.4.tar.gz

Download URL deltascream-0.1.4.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2dc0a0a5af0244d0047472f9731d3c4c0cc563a43d6e46827d4665404cfffa47
BLAKE2b-256 checksum
How to use checksums
737e13c57d3aa17a13186e33b801a2590496a5b458aec3979b178992663c73b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / deltascream-0.1.4-py3-none-any.whl

Download URL deltascream-0.1.4-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5538221a2088dce8fe7add5f9663e208ef954796733ee4645f6515ea836ce07
BLAKE2b-256 checksum
How to use checksums
eacc954488fd88032d301217a77c6742525483cf09fc7f98a83c971c4b48f180
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page