Skip to main content
This guide shows you how to control background music scene by scene. A scene can play its own track at its own volume, keep the video’s music, or have no music at all, so the opening, the problem and the close of a video can each sound the way they should.

What You’ll Learn

A Track per Scene

Give a scene its own music with musicUrl

Volume per Scene

Set how loud each scene’s music plays

Mixing with Video Music

Combine scene tracks with one track for the rest of the video

Music On and Off

Turn music off on the scenes that need silence

Before You Begin

Make sure you have:

How Scene-Level Music Works

Each scene can have its own backgroundMusic object. What the scene plays depends on what you set: Pictory joins all the scene music into one soundtrack for the video, following these rules:
  • Same track, no restart. If scenes next to each other use the same musicUrl, the music keeps playing without starting over, even if their volumes differ.
  • The video’s music picks up where it would have been. After scenes with their own music, the video’s music comes back as if it had played the whole time, not from the start.
  • Short tracks repeat. A track shorter than its scenes plays again until they end.
  • Changes fade. When one track changes to another, or to a scene with no music, the music fades over half a second or less. A scene turned off with enabled: false goes quiet without a fade.
  • Silence needs the video’s music off. Set backgroundMusic.enabled to false to keep scenes without a musicUrl silent. Otherwise, if you set no video music, those scenes play the template’s music, if it has any.

Complete Example

This video opens on the video-level track, switches to a calmer track for two scenes at different volumes, keeps one scene silent, and returns to the video-level track for the close.

Understanding the Parameters

Video-Level Background Music

Scene-Level Music

If neither the scene nor the video sets a volume, and the video has no music of its own, the scene’s music plays at full volume.
Licensed tracks. Tracks from Search Music Tracks are licensed for you, for the whole video and for single scenes. If a video uses more than one of them, the youtubeClearanceCode on the render job covers the one that plays the longest.

Music Patterns

Pattern 1: A Different Track for Each Part of the Story

Give each part of the video its own track. Scenes in a row that share a track continue it. The top-level volume sets the level of every scene track.
Result: Two tracks, each carried through its part of the story, with a short fade where they meet.

Pattern 2: Music Only on Specific Scenes

With video-level music off, only the scenes with a musicUrl have music.
Result: Music during the intro and outro only. The outro does not continue the intro’s track, because silent scenes sit between them, so the track starts again.

Pattern 3: One Track with a Different Moment

Keep one track for the video and swap it out for a single scene.
Result: The main track plays throughout, gives way to soft piano for the testimonial, and comes back where it would have been.

Pattern 4: Silence for Key Moments

Turn music off where a message must be heard on its own.
Result: Music throughout, except during the critical message.

In Previews, Renders and Saved Projects

All the scene music is joined into one soundtrack, so:
  • The storyboard has one music track. In the preview, the music is one audio element that plays the whole soundtrack. Each scene’s volume is already in the soundtrack.
  • You can change the whole soundtrack, not one scene. With Update Storyboard Elements, you can replace the soundtrack or make it quieter. You cannot change the music of one scene, or make the soundtrack louder than you designed it. To change one scene’s music, create the storyboard again.
  • A saved project keeps the soundtrack. With saveProject: true, the project in your Pictory account uses the soundtrack as one custom music track.

Best Practices

Choose each track for the part of the story it plays under. Group neighboring scenes that share a mood (an opening, the problem, the turn, the close) and give each group one track, so the music changes when the story does rather than on every scene.
With a voice-over, keep music volumes low, around 0.1–0.3. A scene track without its own volume uses backgroundMusic.volume, so setting that once keeps every scene at the same level.
Turn music off for calls to action, statistics, testimonials or disclaimers that must be heard clearly. Silence stands out most when the scenes around it have music.
Build a storyboard preview first and listen to where the music changes. Changes land on scene boundaries, so adjust scene lengths if a change falls in an awkward place.

Troubleshooting

Cause: The scene sets volume without musicUrl, a volume outside 0–1, a musicUrl that is not a valid URL, or a backgroundMusic object with neither musicUrl nor enabled.Resolution:
  1. Add the scene’s musicUrl, or remove the scene volume to use the video-level volume.
  2. Keep volumes between 0 and 1.
  3. Use a complete https:// URL for musicUrl.
Cause: A musicUrl could not be read as audio, for example because it needs a sign-in, has expired, or does not point to an audio file.Resolution:
  1. Open the URL in a private browser window and confirm it plays.
  2. Use a public URL to an MP3 or another common audio format.
  3. For library music, pass the audioUrl from Search Music Tracks exactly as returned.
Cause: A track from Pictory’s music library could not be licensed.Resolution:
  1. Run the request again; the failure is usually temporary.
  2. If it fails again, search for the track once more and use the new audioUrl, or choose another track.
Cause: The scene tracks could not be joined into one soundtrack.Resolution:
  1. Check that every musicUrl plays on its own.
  2. Run the request again. If it keeps failing, contact support with the job ID.
Cause: Video-level music is off (backgroundMusic.enabled is false), or it is on without a track and the template has no music of its own.Resolution:
  1. Set enabled: true with a video-level musicUrl or autoMusic: true to play music under the scenes without a track of their own.
  2. Or give the scene its own musicUrl.
Cause: A track continues only across scenes in a row that use exactly the same musicUrl. A scene in between with other music, or none, ends the run.Resolution:
  1. Use the identical URL on each scene, copied exactly, including any query string.
  2. Keep the scenes that share a track next to each other.

Next Steps

Background Music

Configure music for the whole video

Search Music Tracks

Find licensed tracks by mood, genre and length

AI Voice-Over

Add narration that sits over the music

Update Storyboard Elements

Change a preview before rendering it

API Reference