What You’ll Build
This quickstart covers the reusable multicam pattern behind VideoDB’s live-intelligence examples:- Connect and store four RTSP feeds
- Run an independent visual index for every camera
- Detect three events on every feed
- Receive and attribute alerts over one WebSocket
- Retrieve the detected interval from all cameras
- Compose a synchronized 2×2 video with the Timeline Editor
Setup
1. Connect the Camera Feeds
Keep
store=True enabled. Multicam replay depends on requesting the same historical time range from every camera.2. Index Every Camera
3. Create Events and Alerts
4. Receive Alerts from Every Camera
rtstream_id identifies the camera. The observed data envelope can include the event label, confidence, explanation, detected start and end timestamps, and a clip URL; inspect live messages because optional fields are delivery-dependent.
5. Retrieve a Synchronized Time Window
This uses the same Unix timestamp range across every stream, so the camera clocks must already be aligned for frame-level synchronization.6. Compose the Multi-Angle Video
The notebook completes the replay in three stages:- Download each HLS URL with FFmpeg.
- Upload the four MP4 clips with
coll.upload(file_path=...). - Place each
VideoAsset(id=...)on its own Timeline Editor track.
Cleanup
Open the Multicam Quickstart
Run the complete four-camera workflow in Google Colab.
Next Steps
Public Safety Surveillance
Apply the pattern to a public-plaza monitoring use case
Basketball Analytics
Adapt multicam alerts and composition to live sports