Video to analyze — either a URL string or a raw Buffer. When a URL is provided, the pipeline downloads the video to a temporary file before processing.
Optional promptOptional analysis prompt or question that should guide the final answer. When omitted, the analyzer produces a general-purpose summary.
Optional sceneThreshold for scene change detection (0-1). Lower values detect more scene boundaries (more sensitive); higher values only detect dramatic cuts.
0.3
Optional transcribeWhether to transcribe the audio track using Whisper. When enabled, each scene's transcript is populated and a full transcript is included in the analysis.
true
Optional descriptionHow detailed scene descriptions should be.
'detailed'
Optional maxMaximum number of frames to sample from the extracted frame set. When the extracted frame count exceeds this value, frames are evenly downsampled before scene detection and description.
Optional maxMaximum number of scenes to detect. Prevents runaway analysis on very long videos with many cuts.
100
Optional indexWhether to index scene descriptions and transcripts into the RAG vector store for later retrieval.
false
Optional onOptional callback invoked as analysis progresses through phases. Called with a VideoAnalysisProgressEvent at each phase transition and when per-scene progress updates are available.
Rich video analysis request with scene detection, transcription, and RAG indexing support.
Extends the simpler VideoAnalyzeRequest pattern with fine-grained control over scene detection thresholds, description detail, and optional RAG indexing of analysis results.
Example