---
title: How to change or edit the background music
description: Change the background music of an invideo AI video with your prompt, the Magic Box or the Music section, and set loop, trim, fade and volume.
---
You can add, change or adjust the background music in three places: in your first prompt, in the workflow, or in the **Music** section after the video is generated.

<Image src="/images/help/s254.webp" alt="The Background music and Music Preference settings in a workflow" />

## Use the Magic Box

When you open a video in invideo AI, it opens in Theatre mode. To show the Magic Box:

1. Click **Edit & Download** to leave Theatre mode.
2. Find the Magic Box below the video.

<Image src="/images/help/s187.webp" alt="Clicking Edit and Download to leave Theatre mode and show the Magic Box" />

After the video is generated, type a command in the Magic Box to edit the music. For example:

- Turn the background music up to full volume
- Mute the background music
- Change the music to be more upbeat and energetic

## Use the Music section

You can also make the changes in the **Music** section.

<Image src="/images/help/s256.webp" alt="Opening the Music section of a generated video" />

From the **Music** section, you can open the stock library. Browse it and replace the music with tracks from the YouTube library or Storyblocks.

<Image src="/images/help/s257.webp" alt="The stock music library in the Music section" />

<Image src="/images/help/s258.webp" alt="A list of music tracks to pick from in the stock library" />

To change the music of one chapter:

1. Select the chapter where you want to change the default music.
2. Click the music title.

<Image src="/images/help/s259.webp" alt="A chapter selected in the Music section with its music title" />

3. Click **Apply**, then save your changes.

## Use Music properties

For more manual control, click **Music properties**.

<Image src="/images/help/s260.webp" alt="The Music properties button in the Music section" />

In **Music properties**, you can loop the music, change its volume, set fade-in and fade-out points, choose where the music starts, and set how long it plays.

<Image src="/images/help/s261.webp" alt="The Music properties panel with loop, trim, fade and volume settings" />

- **Loop music:** The AI makes the music fit the length of each scene. If you set **Trim to** shorter than the scene, the music stops early and the end of the scene is silent. Turn on looping to keep the music playing to the end of the scene.
- **Trim from:** Choose the point in the track where the music starts. This trims the start of the track.
- **Fade-in:** Choose the point in the video where the music fades in.
- **Fade-out:** Choose the point where the music starts to fade out. For fade-out to work, turn off the loop.
- **Music Volume:** Set the music volume up to the limit the product shows. To mute the music for a chapter, click the volume button.