Skip to main content
This example demonstrates how to analyze a video and automatically generate short-form content segments optimized for platforms like YouTube Shorts and Instagram Reels.

Code

video_to_shorts.py

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Install libraries

3

Install ffmpeg

4

Export your GOOGLE API key

5

Create a Python file

Create a Python file and add the above code.
6

Run Agent

7

Find All Cookbooks

Explore all the available cookbooks in the Agno repository. Click the link below to view the code on GitHub:Agno Cookbooks on GitHub