streamware

๐Ÿ“š StreamWare Documentation

Welcome to StreamWare documentation. This guide covers all features for real-time video analysis with AI.

๐Ÿ“‹ Table of Contents

Getting Started

Core Features

Architecture

Development

Deployment


๐Ÿš€ Quick Reference

Basic Commands

# Real-time viewer with LLM (recommended)
sq live narrator --url "rtsp://..." --realtime --turbo --fps 5

# DSL-only mode (fastest, no LLM)
sq live narrator --url "rtsp://..." --dsl-only --realtime --fps 20

# Full analysis with TTS
sq live narrator --url "rtsp://..." --mode track --tts

Key Options

Option Description
--realtime Enable browser viewer at http://localhost:8766
--dsl-only Skip LLM, use only OpenCV tracking
--fps N Target frames per second
--turbo Skip checks + fast model + aggressive caching
--verbose Show detailed timing logs

Performance Modes

Mode FPS LLM Use Case
--dsl-only --fps 20 20 โŒ Fast motion detection
--realtime --fps 5 5 โœ… (async) Balanced analysis
--turbo 2-5 โœ… (fast) Quick setup

๐Ÿ“ File Structure

streamware/
โ”œโ”€โ”€ docs/                      # ๐Ÿ“š Documentation
โ”‚   โ”œโ”€โ”€ README.md              # This file
โ”‚   โ”œโ”€โ”€ REALTIME_STREAMING.md  # Real-time viewer guide
โ”‚   โ”œโ”€โ”€ PERFORMANCE.md         # Performance optimization
โ”‚   โ”œโ”€โ”€ LLM_INTEGRATION.md     # LLM configuration
โ”‚   โ”œโ”€โ”€ MOTION_ANALYSIS.md     # Motion tracking
โ”‚   โ””โ”€โ”€ ARCHITECTURE.md        # System design
โ”œโ”€โ”€ streamware/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ””โ”€โ”€ live_narrator.py   # Main narrator component
โ”‚   โ”œโ”€โ”€ frame_diff_dsl.py      # DSL motion analysis
โ”‚   โ”œโ”€โ”€ dsl_streamer_process.py # Separate DSL process
โ”‚   โ”œโ”€โ”€ realtime_dsl_server.py # WebSocket server
โ”‚   โ”œโ”€โ”€ fast_capture.py        # RTSP capture
โ”‚   โ”œโ”€โ”€ dsl_timing_logger.py   # Performance logging
โ”‚   โ””โ”€โ”€ async_llm.py           # Async LLM inference
โ””โ”€โ”€ README.md                  # Project overview