Optical flow-guided video-to-music generation with semantic and temporal alignment
With the rapid growth of video content, automatic music generation has become increasingly important for efficient production in film, advertising, and new media, as it enables alignment with visual rhythm and emotional cues. However, existing methods still fail to achieve high-precision cross-modal temporal and rhythmic alignment in fast-changing scenes and complex musical contexts, limiting the synchronization and expressive quality of generated music. To address this problem, we propose FlowHarmony, a unified video-to-music generation model designed to achieve high audio-visual consistency. Through cross-modal synergistic constraints, the model deeply integrates dynamic optical flow features with video frame semantics. Furthermore, it innovatively introduces an Optical Flow-guided Beat Aligner (OF-BA) to achieve fine-grained anchoring between musical beats and visual events. Coupled with a multi-layer temporal encoding mechanism, FlowHarmony effectively maintains strict synchronization between generated music and scene transitions, significantly enhancing dynamic expressiveness and cross-modal robustness in fast-paced scenarios. Experimental results on the VidMuse-V2M Dataset demonstrate that our model surpasses the state-of-the-art model VeM by 0.037 on the IS metric and 0.143 on the FAD metric, indicating modest improvements advantages in audio quality and generative diversity. This research provides a novel solution for video-to-music generation and lays a theoretical and technical foundation for future high-precision cross-modal generative tasks.
Authors
- Liangjiang Yu
- 党红英
Publication Details
- Journal
- Scientific Reports
- Published
- 2026-12-03
- DOI
- https://doi.org/10.1038/s41598-026-69191-1
- Primary Topic
- Music and Audio Processing
- Type
- article
- Field-Weighted Citation Impact
- 0.00