Video API¶
Retrieve video information.
get_video¶
Retrieve information for a single video.
Function Signature¶
Description¶
Retrieves the latest information for a specific video via the Feast API.
Parameters¶
| Parameter | Type | Default | Description |
|---|---|---|---|
uuid |
str |
required | Unique identifier for the video to retrieve |
Returns¶
{
"uuid": str, # Unique identifier for the video
"file_size": int, # Video file size (bytes)
"duration": float, # Total video duration (seconds)
"mp4_source": str # Path to the video file
}
Example¶
video = get_video(uuid="f2c99e03-8415-4926-bf3d-60ec8c2ddab4")
print(f"Duration: {video['duration']}s")
print(f"File size: {video['file_size']} bytes")
Output:
get_all_videos¶
Retrieve information for all videos.
Function Signature¶
Description¶
Retrieves information for all videos registered in the Feature Store. Only returns videos registered in the metadata store.
Parameters¶
| Parameter | Type | Default | Description |
|---|---|---|---|
simple |
bool |
False |
If True, returns only a list of UUIDs.If False, returns a DataFrame with full information. |
Returns¶
Case 1: simple=False → pd.DataFrame (uuid, file_size, duration, mp4_source)
Case 2: simple=True → List[str] (List of UUIDs)
Example¶
# Full information
videos = get_all_videos()
print(f"Total: {len(videos)}")
# UUIDs only
uuids = get_all_videos(simple=True)
print(uuids[:5])
Output: