File Formats
Video
The maximum file size is 1 GB, but it can be increased upon request. However, please note that 3rd party connectors may have their own file size limits, which you can check here.
We use Google’s Multimodal Embedding model on Vertex AI to generate video embeddings. This allows users to search through uploaded videos based on the similarity of a video snippet to the search query or the text within the video frames, similar to OCR.
Carbon supports the following video file formats:
File Formats |
---|
AVI |
FLV |
MKV |
MOV |
MP4 |
MPEG |
MPG |
WEBM |
WMV |
If you need to transcribe audio from video files, please refer to the documentation here.
Uploading Video Files
Below is an example of how to upload a video file via the uploadfile
endpoint:
“Carbon Demo.mp4” is just a file in the directory the request is being made from.
And the corresponding response will look like this:
Querying Embeddings from Video Files
Here is an example on how to query that file once it’s uploaded:
And the corresponding response will look like this:
The important part of the response is
content_metadata
, where end_offset_sec
and start_offset_sec
denote the interval of the video that the chunk is referencing.