Prerequisites
The instructions below assume you are following best practices and have downloaded this git repo into a parent directory at: ~/atai. If you have already installed the ATAI Python Library and cloned the cookbook repository, proceed directly to Quickstart.Install Conda
Setup dev environment
Install ATAI Python Library
Clone Cookbook Repository
Quick Start
Analyze video content through natural language queries using the interactive CLI.Running the Demo
From the Cookbook root directory with your conda environment activated:Sample videos are available in the
sample_videos/ directory for testing the demo.Interactive Prompts
- API Key: Your ArchetypeAI API key
- Input Type: Choose
video(local file) orrtsp(camera stream) - Source:
- For video: Path to video file (drag & drop supported)
- For RTSP: Camera stream URL
- Focus: Your question about the video (e.g., “Is there a person?”, “What’s happening?”)
Example Session
Output
The system provides natural language responses to your questions about the video content. Responses update as the video progresses (for files) or continuously (for RTSP streams).Step Size Configuration (in review)
The step size defines the interval between analyzed frames in each inference cycle. A larger step size means fewer frames are examined, which can reduce detail but speed up processing. A smaller step size increases context for answering queries, but may require more computation.Recommended Settings
- Default: 60 - Optimal for most scenarios
- Short videos: 30 - Ensures sufficient granularity for brief clips
- Long-form content: 90-120 - Captures broader context and patterns