Skip to main content
Vane Data / Reference

video_index_info

video_index_info inspects a video index BLOB without opening a FILE and reports its counts, size, and creation I/O.

Signature

example.py
vane.video_index_info(index) -> Expression

SQL: video_index_info(index).

Parameters

NameTypeDescriptionDefault
indexBLOB value or ExpressionIndex produced by build_video_indexRequired

Returns and errors

Returns a STRUCT with frame_count, keyframe_count, source_bytes, index_bytes, build_bytes_read, and codec_version. NULL returns NULL. Its implementation follows video_backend, including on connections that have not loaded the native_media extension. Index integrity, identity, and format failures raise.

Example

query.sql
SELECT video_index_info(build_video_index(video_file('clip.mp4')));