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 Four Shared Events

Create four events that apply across all camera angles:

Step 4: Attach Alerts to All Cameras

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

Alert Example

An illustrative alert envelope for a detected play can look like this; inspect the live payload before depending on optional fields:
The same event can trigger on all 3 cameras. Multi-angle replay assumes the camera clocks share a time basis; align clocks before treating same-interval clips as synchronized evidence.

Synchronized Playback

Generate synchronized clips from all cameras for the same moment:
Now you have three clips requested for the same time window from different angles.

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