Video-to-Music Generation for Gameplay Videos

Felipe Marra Lucas N. Ferreira

Abstract

Video-to-music models have advanced considerably in the last few years, particularly in film and music video applications. In this paper, we investigate this problem in the video game domain, which introduces new challenges for these models: video frames are rendered graphics, music is mostly synthetic audio, and soundtracks loop across entire levels rather than following on-screen events. We introduce a new dataset of 217.6 hours of Super Nintendo (SNES) gameplay video paired with 485 hours of clean soundtracks, free of sound effects and voice-overs, matched to gameplay audio via audio fingerprinting. With this dataset, we train a simple encoder-decoder transformer that passes video features directly to a MusicGen decoder, comparing different encoding strategies: textual descriptions (T5), independent frames (ViT), or spatiotemporal patches (ViViT). Each encoder is tested both frozen and fine-tuned, while the decoder is always fine-tuned. Frozen encoders match or outperform their fine-tuned counterparts on every metric, and the frozen ViViT achieves the best overall results. We compare this model with state-of-the-art baselines using both objective metrics and a listening study (N = 96). Despite having up to 18\% fewer parameters, our model outperforms all baselines on objective metrics, surpasses GVMGen in the listening study, and performs comparably to OSSL.

Code

Our Models and Dataset

Baselines

User Study

Demo Videos

Mega Man X3 (Genre: Action)

Frozen ViViT (ours)

OSSL

GVMGen

Super Mario Kart (Genre: Racing)

Frozen ViViT (ours)

OSSL

GVMGen

Tetris 2 (Genre: Puzzle)

Frozen ViViT (ours)

OSSL

GVMGen