Generate text from video
The platform generates texts from your videos using a multimodal approach. This method analyzes the visuals, sounds, spoken words, and relationships between them. As a result, it provides a comprehensive understanding of your videos, capturing nuances that might be overlooked when using an unimodal interpretation.
The platform generates the following types of text:
- Title: Captures the essence of a video, aiding immediate comprehension and categorization.
- Topic: Represents the central themes or subjects of a video, providing a high-level understanding.
- Hashtags: Concisely summarize the themes, subjects, or sentiments expressed within a video. Hashtags improve categorization and searchability on social media platforms.
- Summaries: Encapsulates the key points of a video, presenting the most important information clearly and concisely.
- Chapters: A chapter in a video typically focuses on a particular topic or theme. The platform chronologically lists all the chapters in your video for a thorough content breakdown.
- Highlights: List the key events in order. Unlike chapters, they spotlight primary topics.
- Open-ended text (your own prompt): Custom outputs based on your prompts, including, but not limited to, tables of content, action items, memos, reports, marketing copy, and comprehensive analyses.
Notes:
- This feature is available only for the indexes that have the Pegasus video understanding engine enabled. See the Create an index section for details.
- Your prompts can be instructive or descriptive, or you can also phrase them as questions.
- The maximum length of a prompt is 1500 characters.
Follow the steps in this guide to generate text from your videos:
-
Go to the Indexes page, find the index containing the video for which you want to generate text, and select the Generate button:
-
Select the video you want to generate text for by choosing it from the Select a video drop-down or selecting the Select video button after hovering over a video in the right pane:
-
Decide on the type of text and proceed with the instructions in one of the sections below.
For predefined templates
-
Select the Templates tab:
-
From the Select output drop-down, choose one or multiple templates. The supported options are summary, highlight, and chapter. Note that titles, topics, and hashtags will automatically be generated.
-
(Optional) Temperature is a configurable parameter that controls the randomness of the text output generated by the model. A higher value generates more creative text, while a lower value results in more deterministic text output. Use the Temperature slider to tailor the behavior of the model to your requirements.
-
(Optional) Provide an output instruction prompt to guide the model. Note that when crafting output instructions, you are limited to changing the tone, length, format, and context of the text output. Do not formulate output instructions as questions.
Prompt examples:
- Generate a summary suitable for a high school audience studying environmental science
- Provide a summary fit for a Twitter post under 280 characters.
-
When you've finished, select the Generate button:
After you select the Generate button, the Playground displays the generated text in the pane to the right. For chapters and highlights, you can click on the timecodes to play the exact moments in the video player:
-
(Optional) You can select the View code button to open the modal where code snippets for the requests and the responses are displayed. You can copy and paste the relevant code directly into your application.
For custom text
-
Select the Build my own tab:
-
Provide clear instructions as a prompt for the desired output:
Prompt examples:
- Generate a company-wide memo based on the announcements made in the video.
- Identify key visual elements, scene changes, and events in the video.
- Generate three taglines for an email marketing campaign based on the video.
-
(Optional) Temperature is a configurable parameter that controls the randomness of the text output generated by the model. A higher value generates more creative text, while a lower value results in more deterministic text output. Use the Temperature slider to tailor the behavior of the model to your requirements.
-
When you've finished, select the Generate button:
After you select the Generate button, the Playground displays the generated text in the pane to the right:
-
(Optional) You can select the View code button to view the code snippet that the platform used to perform this request. You can copy and paste it into your application.
Updated 4 months ago