Music2Video: Automatic Generation of Music Video with fusion of audio and text

Joel Jang, Sumin Shin, Yoonjeon KimarXiv 2022

Abstract

Music2Video is a novel framework designed to automate the creation of artistic music videos by integrating both audio signals and lyrical text prompts. By combining the semantic capabilities of CLIP with the generative power of VQ-GAN, and employing dynamic segmentation based on musical onset strength, the system produces visually coherent content that is temporally aligned with the music's rhythm and themes. This approach addresses the challenges of modality conflict and irregular temporal pacing inherent in music-driven video synthesis.

Introduction

Generating a music video automatically is significantly more complex than standard text-to-image synthesis. Previous research typically relied on a single modality—either text (lyrics) or audio (the sound itself). However, relying on just one often fails to capture the full "vibe" of a song. The authors identify two major hurdles in this domain:

  1. Modality Conflict: Naively mixing audio and text representations often leads to visual "noise," where text-based guidance is drowned out by the audio signal.
  2. Temporal Alignment: Music does not change at fixed intervals; it features irregular themes and rhythms. Using fixed-time segments for video generation results in a "choppy" experience that fails to match the music's natural flow.

Methodology

The Music2Video framework utilizes a pipeline of several state-of-the-art models to bridge the gap between sound, text, and vision.

The Music2Video framework pipeline, illustrating dynamic segmentation (Section 3.1) and the generative process using VQ-GAN guided by CLIP and Wav2CLIP (Section 3.2).

Core Components

  • VQ-GAN: Serves as the primary image generator, selected for its ability to create high-quality, diverse images from a discretized latent space.
  • CLIP & Wav2CLIP: These models provide the multi-modal guidance. CLIP encodes text prompts (lyrics), while Wav2CLIP encodes audio segments into a shared representation space.
  • Dynamic Segmentation: Instead of fixed time intervals, the system uses musical statistics—specifically onset strength and beats—to determine when a "scene transition" should occur.
  • Iterative Optimization: The model iteratively updates the VQ-GAN latent code. To represent both modalities, the system alternates or fuses audio and text guidance.
  • Time Consistency Module: To prevent flickering, the authors average the CLIP prompt vectors of the current and previous frames. This provides better visual stability than standard L1 regularization of latent vectors.

Key Insights

  • Music-Driven Pacing: A significant innovation is using audio statistics to drive the pacing of the generation. By calculating the average intensity of a segment, the system determines the iterations per frame, effectively scaling visual complexity with the music's intensity.
  • Prompt Averaging for Stability: Maintaining temporal consistency in GAN-generated video is notoriously difficult. The authors discovered that regularizing the guidance (averaging CLIP embeddings) was more effective than regularizing the pixels (latent code), suggesting that the "intent" is a more stable anchor for consistency.
  • Seamless Fusion: By providing a single guidance vector for multiple frames within a musical section, the model avoids conflicting behaviors that occur when trying to satisfy too many constraints simultaneously.

Results and Discussion

The results are primarily qualitative, demonstrating the system's ability to produce rhythmically synchronized and lyrically relevant content.

Qualitative result showing thematic accuracy where the generated image reflects specific lyrical prompts such as "whiskey."
  • Thematic Accuracy: The system successfully generates images that match specific lyrics (e.g., "whiskey jug") while maintaining an artistic, dream-like aesthetic.
  • Visual Coherence: The "Add prompts" method (averaging CLIP vectors) outperformed L1 loss methods in maintaining object persistence across frames.
  • Rhythmic Sync: By utilizing onset strength, video transitions feel "earned" by the music, creating a more immersive experience than fixed-interval cuts.

Conclusion

Music2Video demonstrates a viable path for multi-modal generative art. While the system is computationally expensive due to iterative optimization and lacks extensive quantitative metrics, it successfully addresses the core challenges of rhythmic pacing and modality fusion. Future work may involve more sophisticated ways to dynamically balance the weight of audio versus text as a song progresses.

Summary updated

BibTeX
@misc{jang2022music,
  author = {Joel Jang and Sumin Shin and Yoonjeon Kim},
  title = {{Music2Video: Automatic Generation of Music Video with fusion of audio and text}},
  year = {2022},
  eprint = {2201.03809},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.03809},
}
Figure