Video Background Music Generation with Controllable Music Transformer

Shangzhe Di, Zeren Jiang, Si Liu, Zhaokai Wang, Leyan Zhu +3 more
11/16/2021
cs.MMcs.SDeess.AS
transformer-attention

Official code: wzk1015/video-bgm-generation (329 stars, Python, MIT, last commit 2025-06-08).

Abstract

In this work, we address the task of video background music generation. Some previous works achieve effective music generation but are unable to generate melodious music tailored to a particular video, and none of them considers the video-music rhythmic consistency.

Show full abstract

To generate the background music that matches the given video, we first establish the rhythmic relations between video and background music. In particular, we connect timing, motion speed, and motion saliency from video with beat, simu-note density, and simu-note strength from music, respectively. We then propose CMT, a Controllable Music Transformer that enables local control of the aforementioned rhythmic features and global control of the music genre and instruments. Objective and subjective evaluations show that the generated background music has achieved satisfactory compatibility with the input videos, and at the same time, impressive music quality. Code and models are available at https://github.com/wzk1015/video-bgm-generation.

View on arXivView PDF

Code Implementations(1)

MIT

[ACM MM 2021 Best Paper Award] Video Background Music Generation with Controllable Music Transformer

32936Python, Jupyter NotebookSep 10, 20211 years agoMIT
ai-musicmusic-generation

Similar Papers

Cite this paper

@article{di2021video,
  title  = {Video Background Music Generation with Controllable Music Transformer},
  author = {Shangzhe Di and Zeren Jiang and Si Liu and Zhaokai Wang and Leyan Zhu and Zexin He and Hongming Liu and Shuicheng Yan},
  year   = {2021},
  eprint = {2111.08380},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.08380}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2111.08380.svg)](https://codeofpaper.com/paper/2111.08380)

Discussion