Skip to content

API Reference parrot_loaders.videounderstanding

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_loaders.videounderstanding

View source

Alias BaseVideoLoader

Re-exported from parrot_loaders.basevideo.BaseVideoLoader.

Class VideoUnderstandingLoader

Video analysis loader using Google GenAI for understanding video content. Extracts step-by-step instructions and spoken text from training videos.

Parameter Type Default Description
source Optional[Union[str, Path, List[Union[str, Path]]]] None
tokenizer Union[str, Callable] None
text_splitter Union[str, Callable] None
source_type str 'video_understanding'
model str 'gemini-3.1-pro-preview'
temperature float 0.2
prompt Optional[str] None
custom_instructions Optional[str] None
**kwargs {}

Attributes:

Attribute Type Description
extensions List[str]

Method VideoUnderstandingLoader.load_video

Required abstract method implementation. This method is not used in our implementation but required by BaseVideoLoader.

load_video(url: str, video_title: str, transcript: str) -> list

Parameter Type Default Description
url str
video_title str
transcript str

Returns: list

Method VideoUnderstandingLoader.close

Clean up resources.

close()

Function extract_scenes_from_response

Extract structured scenes from the AI response. Attempts to parse JSON-like structures or creates scenes from the text.

extract_scenes_from_response(response_text: str) -> List[dict]

Parameter Type Default Description
response_text str

Returns: List[dict]

Function split_text

Split text into chunks of a maximum length, ensuring not to break words.

split_text(text, max_length)

Parameter Type Default Description
text
max_length

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally