This method, which is only available in the Python SDK runs inside the client.

Request

video_source
string
required

URL or file path of the video to be processed

chunk_interval
float
required

Duration of each video chunk in seconds

resolution
array

Desired resolution of the video chunks as [height, width]

Response

The process method returns a list of dictionaries, each containing:

  • start_time (float): Start time of the chunk in seconds.
  • end_time (float): End time of the chunk in seconds.
  • base64_chunk (str): Base64-encoded video chunk.

This tool is particularly useful when you need to embed long videos, as it allows you to process the video in smaller chunks and embed each chunk separately.

Was this page helpful?