Skip to main content

agent-video-studio (avs)

Multi-agent system that turns a content brief + source TikTok URLs into a publish-ready YouTube compilation video. 16:9, blurred background, centered vertical source, hard cuts, original audio preserved. Built for AI agents (Claude, Cursor, Cline, GLM, GPT) that need to produce a final video autonomously.

License: MIT Python 3.10+


Quickstart

pip install agent-video-studio
avd agent-setup   # one-time bootstrap (installs ffmpeg + XHS-Downloader)

# Create urls.txt with one TikTok URL per line
echo "https://www.tiktok.com/@anyuser/video/1234567890" > urls.txt

avs run "Best of Ahyeon September TikTok" --urls-file urls.txt
# → ./output/final.mp4 (1920x1080, H.264, faststart, ready for YouTube upload)

For the full agent usage guide:

avs agent-instructions

What it does

Given:

  • A content brief (e.g. "Best of Ahyeon September TikTok")
  • A URLs file (one TikTok URL per line)
  • Optional: a reference video for style analysis

The system produces a final YouTube-ready MP4 with:

  • 1920x1080 (16:9 Full HD)
  • Source vertical videos centered, scaled to fit frame height
  • Blurred background (the same video scaled + gaussian blurred + darkened)
  • Hard cuts between clips
  • Optional title overlay at top
  • Original audio preserved
  • H.264 CRF 18 (high quality), AAC 192kbps, faststart for web streaming

Architecture (6 plain-Python agents, no LLM in runtime loop)

Brief + URLs.txt
  │
  ▼
Director ───┬── Researcher (bulk-downloads source clips via `avd batch`)
            ├── StyleAnalyst (analyzes reference OR uses documented template)
            ├── Editor (ffmpeg filter_complex: blurred bg + centered fg + concat)
            ├── Critic (verifies resolution / duration / audio / file size)
            └── Publisher (final high-quality H.264 encode with faststart)
  │
  ▼
final.mp4 (1920x1080, YouTube-ready)

If the Critic returns verdict="retry", the Director applies the suggestions and re-runs the Editor + Critic (max 1 retry).


Commands

Command Purpose
avs run "<brief>" --urls-file urls.txt Produce the final compilation video
avs run "<brief>" --urls-file urls.txt --reference ref.mp4 Use a reference video for style analysis
avs run "<brief>" --urls-file urls.txt --json Output JSON result to stdout
avs agent-instructions Print step-by-step usage guide for AI agents
avs agents Show agent versions

Install

pip install agent-video-studio
avd agent-setup   # one-time bootstrap

From source

git clone https://github.com/hamza140202/agent-video-studio
cd agent-video-studio
pip install -e .

System requirements

  • Python 3.10+ (tested on 3.10, 3.11, 3.12, 3.13)
  • ffmpeg / ffprobe (auto-installed by avd agent-setup)
  • avd (agent-video-downloader) — installed as a dependency

Configuration

None — avs is config-free. The style is determined by the StyleAnalyst (reference video if provided, documented template otherwise).


Documentation

  • README.md — this file (install + quickstart + commands)
  • CLAUDE.md — project memory (read first if modifying)
  • docs/research-blog.md — full research narrative (TBD)
  • Run avs agent-instructions for the 8-step agent usage guide

License

MIT. See LICENSE.

Repo

Metadata

Release files for agent-video-studio 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-video-studio 1.1.0
File Size Uploaded
agent_video_studio-1.1.0.tar.gz 23.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-video-studio 1.1.0
File Interpreter ABI Platform
agent_video_studio-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 53.2 kB

Release files / agent_video_studio-1.1.0.tar.gz

Download URL agent_video_studio-1.1.0.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0b19c7e06e94b7c4937342f5416b96aa4bdad61b72127544abc920a43b4d2eb0
BLAKE2b-256 checksum
How to use checksums
184f8ca7630f3ae767ae10acba35675817d9f83b8d3b6eed57f76fb67a4d570f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / agent_video_studio-1.1.0-py3-none-any.whl

Download URL agent_video_studio-1.1.0-py3-none-any.whl
Size 29.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ba4458d13b8a8a9fed4a0e1c06d867f4084c0946baaf95069954c867541d84f
BLAKE2b-256 checksum
How to use checksums
8dd3a1852f73a44997594c5b0bc7d939e57aba7cc839ce90ed4fe83e8b812d42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

1.2.0

2 release files

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page