Skip to main content
Open In Colab

The Challenge

Modern sports analysis faces growing challenges in providing real-time insights. From fast-paced plays to subtle player movements, monitoring every aspect of the game is tough. Traditional broadcasters use multiple camera angles but lack AI intelligence to automatically detect key moments and generate synchronized multi-angle highlights in real-time. What if AI could monitor all feeds, detect key plays instantly, and generate highlights automatically?

What You’ll Build

VideoDB RTStream brings AI-powered intelligence to multi-camera sports systems. In this guide, you’ll build a system that:
  • Connects 3 synchronized camera feeds (main court + two baskets)
  • Detects key basketball events in real-time
  • Sends alerts for every highlight across all angles
  • Generates synchronized multi-angle video clips for playback

Multi-Camera Setup

Setup

Install Dependencies

Connect to VideoDB

Implementation

Step 1: Connect All Three Camera Feeds

Step 2: Create Shared Indexes on All Cameras

Define one analysis prompt and create indexes on all streams:

Step 3: Define Shared Events

Create three events that apply across all camera angles:

Step 4: Attach Alerts to All Cameras

Now you have 9 total alerts (3 events × 3 cameras).

Alert Example

When a basket is scored, each camera sends an alert:
The same event triggers on all 3 cameras, giving you synchronized multi-angle evidence.

Synchronized Playback

Generate synchronized clips from all cameras for the same moment:
Now you have 3 synchronized video clips from different angles for the same moment.

Advanced: Webhook Integration with ngrok

For real-time event handling, set up ngrok tunneling:
Then use this public webhook URL when creating alerts for instant event notifications.

The Result

This demo shows how AI turns raw game feeds into actionable sports intelligence, enabling:
  • Real-time game analysis across multiple angles
  • Instant highlight generation with synchronized playback
  • Multi-angle replay for coaches and analysts
  • Automated event detection across multiple viewpoints
  • Forensic evidence for rule reviews and disputes

Explore the Full Notebook

Open the complete implementation with webhook setup, ngrok tunneling, and data processing.

Cricket Highlights Detection

Auto-detect sports highlights in real-time

Multi-Camera Public Surveillance

Enterprise-scale multi-camera monitoring system