Create a new VideoAnalyzer with optional injected dependencies.
Missing dependencies are auto-created with sensible defaults:
createVisionPipeline() on first useOptional deps: VideoAnalyzerDepsOptional dependency overrides.
Analyse a video and return structured understanding results.
This is the simple IVideoAnalyzer interface method. For richer analysis with progress reporting and scene descriptions, use analyze instead.
The analysis parameters (video source + optional prompt).
Structured analysis including description, scenes, and duration.
Run the full video analysis pipeline with scene detection, vision descriptions, optional audio transcription, and LLM summarization.
The pipeline executes these stages sequentially:
Progress events are emitted at each phase transition when
onProgress is provided.
Rich analysis parameters.
Rich analysis result with scenes, summary, and optional RAG chunks.
If ffprobe/ffmpeg are not installed on the system.
If the video buffer is empty or invalid.
Structured video analysis pipeline that wires together scene detection, vision description, audio transcription, and LLM summarization.
Implements the base IVideoAnalyzer interface for simple analysis requests, and exposes an
analyze()method for rich analysis with progress reporting, configurable detail levels, and optional RAG indexing.All ffmpeg/ffprobe invocations use
execFile(notexec) for safety — arguments are passed as arrays, preventing shell injection.