Embeddings for indexed videos
The platform allows you to retrieve embeddings for videos you’ve already uploaded and indexed. The embeddings are generated using video scene detection. Video scene detection enables the segmentation of videos into semantically meaningful parts. It involves identifying boundaries between scenes, defined as a series of frames depicting a continuous action or theme. Each segment is between 2 and 10 seconds.
Prerequisites
Your video must be indexed with the Marengo video understanding model version 2.7 or later. For details on enabling this model for an index, see the Create an index page.
Complete example
Step-by-step guide
Python
Node.js
Retrieve the embedding
Function call: You call the index.video.retrieve
function.
Parameters:
index_id
: The unique identifier of the index containing your video.id
: The unique identifier of your video.embedding_option
: The types of embeddings to retrieve. This example uses["visual-text", "audio"]
.
Return value: The response contains, among other information, an object namedembedding
that contains the embedding data for your video.