This quickstart guide provides a simplified introduction to analyzing videos to generate text using the TwelveLabs Video Understanding Platform. It includes:
For a comprehensive guide, see the Analyze videos section.
To use the platform, you need an API key:
Ensure the TwelveLabs SDK is installed on your computer:
The videos you wish to upload must meet the following requirements:
Video resolution: Must be at least 360x360 and must not exceed 5184x2160.
Aspect ratio: Must be between 1:1 and 1:2.4, or between 2.4:1 and 1:1. For example, you can use 1:1, 4:3, 4:5, 5:4, 16:9, 9:16, or 17:9.
Video and audio formats: Your video files must be encoded in the video and audio formats listed on the FFmpeg Formats Documentation page. For videos in other formats, contact us at support@twelvelabs.io.
Duration: Must be between 4 seconds and 60 minutes (3600s). In a future release, the maximum duration will be 2 hours (7,200 seconds).
File size:  Must not exceed 2 GB.
If you require different options, contact us at support@twelvelabs.io.
Video URLs: Must be direct links to raw video files that play without user interaction or custom video players (example: https://example.com/videos/sample-video.mp4). Video hosting platforms like YouTube and cloud storage sharing links are not supported.
You can copy and paste the code below to analyze videos and generate text based on their content. Replace the placeholders surrounded by <> with your values.