Skip to main content
Create an agent that extracts audio from a video, generates timestamped SRT captions, and embeds them into the output video.
video_caption.py
Agno v2.7.4 uses Arial for embedded caption text. Install Arial before running this example on a system that does not include it.

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Install FFmpeg

Install FFmpeg, then verify the executable:
4

Export your OpenAI API key

5

Run the agent