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

Set up your virtual environment

2

Install dependencies

3

Install ffmpeg

4

Export your GOOGLE API key

5

Run Agent