Video Upload & Analysis
Different ways to upload videos and run analysis via the SDK
Video Operations
This page describes the main SDK methods for uploading videos and running analysis. The fastest path is upload_and_analyze
, but you can also batch process URLs or re-run analysis on an existing upload.
For complete code walkthroughs, see SDK Usage Examples.
Available SDK Methods
upload_video
– upload a file or URL without starting analysisupload_and_analyze
– upload and analyze in one stepupload_and_analyze_videos
– batch upload multiple files or URLsanalyze_video
– run a new analysis on an uploaded videoanalyze_videos
– analyze several uploaded videos at once
Response Structure
Successful calls to these methods return an UploadAnalyzeResponseSubset
dataclass. It contains the uploaded video_id
, basic metadata, and a list of detected events. The main fields look like this:
This subset keeps the most relevant information while omitting fields used internally by the API.
upload_and_analyze
The method supports three modes:
- Standard analysis (default) – run the full driving analysis on a local file or direct URL.
- Search mode – pass
search_query="your search"
to quickly scan the video for matching events. - Events only mode – provide
custom_category
andcustom_event
to generate event suggestions without the full analysis.
upload_and_analyze_videos
Process multiple files or URLs in parallel. This works well with pre-signed cloud storage URLs from services like AWS S3 or Google Cloud Storage.
Use wait_for_completion=True
if you want to block until all analyses finish.
upload_video
Upload a video without starting analysis. Useful if you want to trigger analysis later.
analyze_video
If you already uploaded a video earlier you can trigger a new analysis by ID:
This is useful when new models are released or if you changed your analysis settings.
analyze_videos
Run analysis on several previously uploaded videos:
For a step-by-step tutorial, head over to SDK Usage Examples.