VideoAgent README

The project's README from github.com/HKUDS/VideoAgent. As one markdown file: README.md.


🌟 Comprehensive Video Intelligence:
An All-in-One Framework for Understanding, Editing, and Generation

   


HKUDS%2FVideoAgent | Trendshift

English | 简体中文


📹 Demo Video

In this video, we demonstrate how to use VideoAgent to:

🚀 Key Features

🧠 - Understanding Video Content
Enable in-depth analysis, summarization, and insight extraction from video media with advanced multi-modal intelligence capabilities.

✂️ - Editing Video Clips
Provide intuitive tools for assembling, clipping, and reconfiguring content with seamless workflow integration.

🎨 - Remaking Creative Videos
Utilize generative technologies to produce new, imaginative video content through AI-powered creative assistance.

🔧 - Multi-Modal Agentic Framework
Deliver comprehensive video intelligence through an integrated framework that combines multiple AI modalities for enhanced performance.

🚀 - Seamless Natural Language Experience
Transform video interaction and creation through pure conversational AI - no complex interfaces or technical expertise required, just natural dialogue with VideoAgent.

graph TB
    A[🎬 VideoAgent Framework] --> B[🧠 Video Understanding & Summarization]
    A --> C[✂️ Video Editing]
    A --> D[🎨 VIdeo Remaking]
    
    B --> B1[Video Q&A]
    B --> B2[Video Summarization]
    
    C --> C1[Movie Edits]
    C --> C2[Commentary Video]
    C --> C3[Video Overview]
    
    D --> D1[Meme Videos]
    D --> D2[Music Videos]
    D --> D3[Cross-Cultural Comedy]
VideoAgent Director Funclip NarratoAI NotebookLM
Beat-synced Edits ✅ ✅ ✅ — —
Storytelling Video ✅ — — — —
Video Overview ✅ ✅ ✅ ✅ ✅
Meme Video Remaking ✅ — — — —
Song Remixes ✅ — — — —
Cross-lingual Adaptations ✅ — — — —
Video Q&A ✅ ✅ — — ✅
Sound Effects Tools ✅ — — — —

📑 Table of Contents

🔥 Why VideoAgent?

🧠 Easy-to-Use 🚀 Boundless Creativity 🎨 High-Quality
One-Prompt Video Creation Create From Any Ideas Human-Quality Video Production
Transform your ideas into professional videos Workflow generation for your unique ideas Deliver videos that meet professional standards

🌟System Overview

Our system introduces three key innovations for automated video processing. Intent Analysis captures both explicit and implicit sub-intents beyond user commands. Autonamous Tool Use & Planning employs graph-powered workflow generation with adaptive feedback loops for automated agent orchestration. Multi-Modal Understanding transforms raw input into semantically aligned visual queries for enhanced retrieval.

🧠 Intent Analysis

🔧 Autonomous Tool Use & Planning

🎬 Multi-Modal Understanding



🔧Evaluation

We conduct extensive experiments across multiple dimensions to validate the effectiveness of VideoAgent in addressing key challenges.

Boundless Creativity via Workflow Construction

To evaluate VideoAgent's boundless creativity through automatic workflow construction, we compared five broadly applicable agents across three backbone models. Our findings demonstrate that VideoAgent significantly outperforms other baselines on the Audio and Video datasets, showcasing its creative workflow generation capabilities through graph-structured guidance and self-reflection driven by dedicated self-evaluation feedback. Furthermore, we observe that VideoAgent exhibits superior and more stable creative performance under the Claude 3.7 backbone compared to GPT-4o and Deepseek-v3, while other baseline methods show fluctuations across different backbones. This highlights VideoAgent's ability to unleash boundless creativity by automatically constructing diverse and effective workflows that adapt to various user requirements, with more capable LLMs achieving deeper comprehension and providing more robust creative solutions for complex graph-based tasks.



Superior Multimodal Understanding

To validate our multimodal understanding capabilities, we conducted text-to-video retrieval experiments using shuffled caption queries. The evaluation employs three metrics to assess our model's ability to retrieve corresponding visual content: Recall measures the model's ability to correctly reorder shuffled video clips by comparing retrieved clip midpoints against ground truth positions; Embedding Matching-based score assesses coarse-grained alignment between generated videos and high-level caption summaries; and Intersection over Union quantifies temporal alignment accuracy at the clip level by computing the ratio of temporal overlap to total coverage between retrieved and ground truth intervals. The experimental results demonstrate that our approach can retrieve more accurate video segments, thereby showcasing our precise multimodal understanding capabilities.


More Iterations, Better Performance

We investigate VideoAgent's iterative refinement capabilities by analyzing the impact of reflection rounds on performance. Through comprehensive hyperparameter experiments on workflow composition across two datasets using three LLM backbones, we demonstrate VideoAgent's notable self-improvement ability. The results reveal that while early iterations produce baseline results, our system's adaptive reflection mechanism drives significant performance gains with each subsequent round. VideoAgent achieves consistent workflow composition success rates of 0.95 across all tested configurations, showcasing its robust self-correction capabilities and reliable high-quality output regardless of the underlying LLM backbone.


🚀Quick Start

🖥️ Environment

GPU Memory: 8GB  
OS: Linux, Windows

📥 Clone and Install

git clone https://github.com/HKUDS/VideoAgent.git
conda create --name videoagent python=3.10
conda activate videoagent
conda install -y -c conda-forge pynini==2.1.5 ffmpeg
pip install -r requirements.txt

📦 Model Download

# Download CosyVoice
cd tools/CosyVoice
huggingface-cli download PillowTa1k/CosyVoice --local-dir pretrained_models
# Download fish-speech
cd tools/fish-speech
huggingface-cli download fishaudio/fish-speech-1.5 --local-dir checkpoints/fish-speech-1.5
# Download seed-vc
cd tools/seed-vc
huggingface-cli download PillowTa1k/seed-vc --local-dir checkpoints
# Download DiffSinger
cd tools/DiffSinger
huggingface-cli download PillowTa1k/DiffSinger --local-dir checkpoints
# Download Whisper
cd tools
huggingface-cli download openai/whisper-large-v3-turbo --local-dir whisper-large-v3-turbo
# Make sure git-lfs is installed (https://git-lfs.com)
git lfs install
# Download ImageBind
cd tools
mkdir .checkpoints
cd .checkpoints
wget https://dl.fbaipublicfiles.com/imagebind/imagebind_huge.pth

🌟 Multiple models are available for your convenience; you may wish to download only those relevant to your project.

Feature Type Video Demo Required Models
Cross Talk English Stand-up Comedy to Chinese Crosstalk CosyVoice, Whisper, ImageBind
Talk Show Chinese Crosstalk to English Stand-up Comedy CosyVoice, Whisper, ImageBind
MAD TTS Xiao-Ming-Jian-Mo(小明剑魔) Meme fish-speech
MAD SVC AI Music Videos DiffSinger, seed-vc, Whisper, ImageBind
Rhythm Spider-Man: Across the Spider-Verse Whisper, ImageBind
Comm Commentary Video CosyVoice, Whisper, ImageBind
News Tech News: OpenAI's GPT-4o Image Generation Release CosyVoice, Whisper, ImageBind
Video QA/Summarization Dune 2 Movie Cast Update Podcast Whisper

🤖 LLM Configuration

# VideoAgent\environment\config\config.yml
# Applicable scenarios and LLM configuration
# Claude is required as it powers the Agentic Graph Router 
llm:
  # Video Remixing/TTS/SVC/Stand-up/CrossTalk
  deepseek_api_key: ""  
  deepseek_base_url: ""  

  # Agentic Graph Router/TTS/SVC/Stand-up/CrossTalk
  claude_api_key: ""  
  claude_base_url: ""

  # Video Editing/Overview/Summarization/QA/Commentary Video
  gpt_api_key: ""  
  gpt_base_url: ""  

  # MLLM for caption and fine-grained video understanding
  gemini_api_key: ""  
  gemini_base_url: ""  

🎯 Usage

# With the configuration now complete, proceed to run the following instructions:
python main.py
# The console will output:
User Requirement: ...
# Requirement Example:
# 1. I need to create a reworded version of an existing video where the speech content is modified while maintaining the original speaker's voice. The video should have the same visuals as the original, but with updated dialogue that follows my specific requirements.
# 2. I have a standup comedy script that I'd like to turn into a professional-looking video. I need the script to be performed with good comedic timing and audience reactions, then matched with relevant video footage to create a complete standup comedy special. I already have a reference script and some footage I want to use for the video.

The current LLM selections are optimized for each function.

You can also adjust the model names in VideoAgent\environment\config\llm.py if needed.


🔮Demos

Movie Edits Meme Videos Music Videos
Verbal Comedy Arts Commentary Video Video Overview

For additional demo usage details, please refer to:
👉 Demos Documentation

You can find more fun videos on our Bilibili channel here:
👉 Bilibili Homepage
Feel free to check it out for more entertaining content! 😊

Note: All videos are used for research and demonstration purposes only. The audio and visual assets are sourced from the Internet. Please contact us if you believe any content infringes upon your intellectual property rights.


💖Acknowledgments

We express our deepest gratitude to the numerous individuals and organizations that have made VideoAgent possible. This framework stands on the shoulders of giants, benefiting from the collective wisdom of the open-source community and the groundbreaking work of researchers worldwide.

🔧 Open-Source Community and Service Providers

🎨 Content Creators and Inspiration

Our work has been significantly enriched by the creative contributions of content creators across various platforms. We acknowledge:

⚠️ Note: All content used in our demonstrations is for research purposes only. We deeply respect the intellectual property rights of all content creators and welcome any concerns or feedback regarding content usage.


Visitors

VideoAgent (HKUDS/VideoAgent)

Searching Database…

这是什么?VideoAgent 是一个一体化的智能体框架,能根据自然语言请求理解、编辑和重制视频,从摘要生成到梗图混剪再到跨语言喜剧改编都能处理。
这是视频编辑器还是智能体框架?它是一个多智能体编排框架,而不是手动编辑器:它把你的请求分解为子意图,并自动构建基于图的工具调用工作流来产出视频。
怎么把它跑起来?快速上手流程是:配置环境,克隆并安装仓库,下载目标功能所需的特定模型,然后在 environment/config/llm.py 中配置你的 LLM。
它需要哪些模型和 API?取决于你使用的功能,你需要 CosyVoice、Whisper、ImageBind、Fish-Speech、DiffSinger 或 Seed-VC 的组合来处理音频/视频,再加上 Claude 3.7、GPT-4o 或 DeepSeek-v3 等 LLM 骨干负责规划。
它现在能开箱即用吗?它是一个研究框架(与一篇 EMNLP2026 论文相关),需要根据任务下载多个可选模型,而且项目明确声明其演示内容仅供研究用途,并不是打包好的消费级应用。
它是为谁打造的?它面向想要快速搭建 AI 驱动的视频理解、编辑和重制流水线的研究者和视频创作者,而不是寻找点点鼠标就能用的编辑器的普通用户。
同类工具做不到、而 VideoAgent 能做到的是什么?根据它自己的对比表,在 Director、Funclip、NarratoAI 和 NotebookLM 之中,只有它在支持标准视频问答和概览之外,还支持卡点剪辑、完整叙事视频、梗图重制、歌曲混音和跨语言改编。
它实际测试过哪些 LLM 骨干?作者对 Claude 3.7、GPT-4o 和 DeepSeek-v3 进行了基准测试,发现 Claude 3.7 的创意工作流表现最稳定。
自我评估循环是做什么的?一个自适应反馈循环在每轮规划迭代后运行两步自我评估,不断打磨工作流,直到它在各种配置下都报告出稳定在约 0.95 的工作流组合成功率。
相声或梗图配音这类功能背后是哪些音频工具?CosyVoice 和 Fish-Speech 负责文本转语音,Whisper 负责转写,ImageBind 提供跨模态嵌入,DiffSinger/Seed-VC 负责歌声转换,用于音乐相关的混剪。
Creator
HKUDS
Size
140.5 MB
Stars
2K
Updated
CommitJul 22
Age
1y
Commits · 90 Days