Skip to content
Projects
Personal·engineering

Trailer Editor Agent

AI-Powered Trailer Creation

AgentsClaudeFFmpegPythonGitHub
The Trailer Editor is an AI agent that creates video trailers from raw footage. You give it a brief — "90-second action trailer, building tension, hero reveal at the end" — and it handles the rest: music, timing, shot selection, editing, and final assembly.
The agent runs a multi-stage pipeline: brief understanding (parsing creative direction into structured parameters), music generation (using FAL or ElevenLabs, genre-aware), audio analysis (Essentia and Librosa for beats, energy curves, and natural cut points), shot planning (mapping footage to beats), and final assembly with crossfades, audio mixing, and FFmpeg rendering.
The agent has over 25 tools for music manipulation alone — tempo detection, key analysis, section identification, loop point finding, crossfade generation. This granularity matters because trailer editing is fundamentally about rhythm. The right cut on the right beat is what makes a trailer feel professional.
When using Gemini as the LLM provider, the agent can actually watch the footage and listen to the music. It uses multimodal tools to review generated trailers and suggest improvements — "the third cut is slightly off-beat" or "the reveal happens too early for the tension arc."
The Trailer Editor can receive video manifests from the Content Agent, which handles AI-generated footage. Together, they form a pipeline: Content Agent generates the raw footage from storyboards, Trailer Editor cuts it into a polished trailer.