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.0.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.0.0
File Size Uploaded
agent_video_studio-1.0.0.tar.gz 18.0 kB Details

Built distribution (wheel)

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

Total release size: 40.7 kB

Release files / agent_video_studio-1.0.0.tar.gz

Download URL agent_video_studio-1.0.0.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
00e2b81808e87b9e0dfbbc09b13e7ffe0e9cb88a61dc8c43b58017e31f126f27
BLAKE2b-256 checksum
How to use checksums
508c74f05f1e9e8eb81176c647c323cac0199087dbcdcba2ab1ea3cdd1159e36
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.0.0-py3-none-any.whl

Download URL agent_video_studio-1.0.0-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afdde9d19025b5ff7ef86fa301b7e2159e003827cb9f0f7cc26fab3b0f61e86f
BLAKE2b-256 checksum
How to use checksums
3fee3ee4e01bf5d4fd1217f26a1af8a89e394bedbf206a0716c68f06e39c2aa5
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

1.1.0

2 release files

This release

1.0.0 This release

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