MTVCraft is a framework for generating videos with synchronized audio from a single text prompt, exploring a potential pipeline for creating general audio-visual content.
Specifically, the framework consists of a multi-stage pipeline. First, MTVCraft employs the Qwen3 to interpret the user's initial prompt, deconstructing it into separate descriptions for three audio categories: human speech, sound effects, and background music. Subsequently, these descriptions are fed into ElevenLabs to synthesize the corresponding audio tracks. Finally, these generated audio tracks serve as conditions to guide the MTV framework in generating a video that is temporally synchronized with the sound.
Notably, both Qwen3 and ElevenLabs can be replaced by available alternatives with similar capabilities.
For CUDA 12.1, you can install the dependencies with the following commands. Otherwise, you need to manually install torch, torchvision , torchaudio and xformers.
Download the codes:
git clone https://github.com/baaivision/MTVCraft
cd MTVCraft
Create conda environment:
conda create -n mtv python=3.10
conda activate mtv
Before running the inference script, make sure to configure your API keys in the file mtv/utils.py. Edit the following section:
# mtv/utils.py
qwen_model_name = "qwen-plus" # or another model name you prefer
qwen_api_key = "YOUR_QWEN_API_KEY" # replace with your actual Qwen API key
client = OpenAI(
api_key=qwen_api_key,
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
)
elevenlabs = ElevenLabs(
api_key="YOUR_ELEVENLABS_API_KEY", # replace with your actual ElevenLabs API key
)
If you find our work useful for your research, please consider citing the paper:
@article{MTV,
title={Audio-Sync Video Generation with Multi-Stream Temporal Control},
author={Weng, Shuchen and Zheng, Haojie and Chang, Zheng and Li, Si and Shi, Boxin and Wang, Xinlong},
journal={arXiv preprint arXiv:2506.08003},
year={2025}
}
Files
31 files ยท 113 GBWeights 9.90 GB (safetensors). Sizes and sha256 from the signed manifest.