Skip to the content.

Abstract

Video-to-music (V2M) generation aims to create music that aligns with visual content. However, two main challenges persist in existing methods: (1) the lack of explicit rhythm modeling hinders audiovisual temporal alignments; (2) effectively integrating various visual features to condition music generation remains non-trivial. To address these issues, we propose Diff-V2M, a general V2M framework based on a hierarchical conditional diffusion model, comprising two core components: visual feature extraction and conditional music generation. For rhythm modeling, we begin by evaluating several rhythmic representations, including low-resolution mel-spectrograms, tempograms, and onset detection functions (ODF), and devise a rhythmic predictor to infer them directly from videos. To ensure contextual and affective coherence, we also extract semantic and emotional features. All features are incorporated into the generator via a hierarchical cross-attention mechanism, where emotional features shape the affective tone via the first layer, while semantic and rhythmic features are fused in the second cross attention layer. To enhance feature integration, we introduce timestep-aware fusion strategies, including feature-wise linear modulation (FiLM) and weighted fusion, allowing the model to adaptively balance semantic and rhythmic cues throughout the diffusion process. Extensive experiments identify low-resolution ODF as a more effective signal for modeling musical rhythm and demonstrate that Diff-V2M outperforms existing models on both in-domain datasets and out-of-domain dataset, achieving state-of-the-art performance in terms of objective metrics and subjective comparisons.

model

Comparisons with SOTA

SymMV Test Dataset

Click to show videos
Diff-V2M (ours) VidMuse GVMGen MuMu-LLaMA Video2Music CMT

BGM909 Test Dataset

Click to show videos
Diff-V2M (ours) VidMuse GVMGen MuMu-LLaMA Video2Music CMT

V2M-Bench Test Dataset

Click to show videos
Diff-V2M (ours) VidMuse GVMGen MuMu-LLaMA Video2Music CMT

More Samples Generated by Diff-V2M

Click to show videos