This repository contains the official implementation of the paper Deep Video Discovery: Agentic Search with Tool Use for Long-form Video Understanding.
Deep Video Discovery (DVD) is a deep-research style question answering agent designed for understanding extra-long videos. Leveraging the powerful capabilities of large language models (LLMs), DVD effectively interprets and processes extensive video content to answer complex user queries.
The core design of DVD includes:
- Treating segmented video clips as exploration environments
- Autonomous planning and reasoning, dynamically formulating strategies to solve problems efficiently
- Selecting appropriate multi-granular tools, iteratively extracting relevant information from the video environment
- Summarizing and reflecting on observations, to provide comprehensive and accurate answers to user questions
DVD Achieves state-of-the-art performance by a large margin on multiple long video benchmarks using OpenAI o3.
-
Clone the repository:
git clone https://github.com/microsoft/deepvideodiscovery.git cd DeepVideoDiscovery -
Create a virtual environment and install the dependencies:
pip install -r requirements.txt
Note: Set up your configuration by updating the variables in config.py.
The local_run.py script provides an example of how to run the Deep Video Discovery agent by providing a youtube url and question about it.
```bash
python local_run.py https://www.youtube.com/watch?v=ktbGziZlt3c "how many animals appear in this video"
```
- Support OpenAI API key configuration.
- Implement MCP server.
- Release evaluation trajectory data on long video benchmarks.
Compared to the original implementation, we have made the following changes:
- Refactored the code for better readability and maintainability.
- In
global_browse_toolwe leverage the textual description (rather than original video pixels) of multiple video clips to provide global overview of the video content to improve efficency.
If you find our work useful, please consider citing:
@article{zhang2025deep,
title={Deep Video Discovery: Agentic Search with Tool Use for Long-form Video Understanding},
author={Zhang, Xiaoyi and Jia, Zhaoyang and Guo, Zongyu and Li, Jiahao and Li, Bin and Li, Houqiang and Lu, Yan},
journal={arXiv preprint arXiv:2505.18079},
year={2025}
}
