Video Caption Result
Backward-compatible video caption result schema imports.
These schemas have been moved to gllm_core.schema.multimodal.
This module re-exports them for backward compatibility and will be removed in 0.4.0.
Keyframe
Bases: BaseModel
A keyframe extracted from a video segment.
Attributes:
| Name | Type | Description |
|---|---|---|
time_offset |
float
|
Time within the segment where the keyframe occurs. |
caption |
str | None
|
Text description of the keyframe. |
VideoCaptionMetadata
Bases: BaseModel
Caption metadata for an entire video.
Attributes:
| Name | Type | Description |
|---|---|---|
video_summary |
str
|
A high-level video summary. |
segments |
list[VideoSegment]
|
Captioned video segments. |
ensure_segment_end_time_greater_than_start_time()
Normalize segments whose end time is not after their start time.
Returns:
| Name | Type | Description |
|---|---|---|
VideoCaptionMetadata |
VideoCaptionMetadata
|
The video caption metadata with normalized segment end times. |
VideoCaptionResult
Bases: VideoCaptionMetadata
Backward-compatible alias for VideoCaptionMetadata.
Deprecated
This class is deprecated and will be removed in 0.4.0.
Use VideoCaptionMetadata from gllm_core.schema.multimodal instead.