What You’ll Learn
A Track per Scene
Give a scene its own music with
musicUrlVolume 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:- A Pictory API key
- Node.js or Python installed on your machine
- Familiarity with video-level background music
How Scene-Level Music Works
Each scene can have its ownbackgroundMusic 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: falsegoes quiet without a fade. - Silence needs the video’s music off. Set
backgroundMusic.enabledtofalseto keep scenes without amusicUrlsilent. 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-levelvolume sets the level of every scene track.
Pattern 2: Music Only on Specific Scenes
With video-level music off, only the scenes with amusicUrl have music.
Pattern 3: One Track with a Different Moment
Keep one track for the video and swap it out for a single scene.Pattern 4: Silence for Key Moments
Turn music off where a message must be heard on its own.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
Match Tracks to the Story
Match Tracks to the Story
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.
Keep Music Under the Narration
Keep Music Under the Narration
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.Use Silence on Purpose
Use Silence on Purpose
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.
Preview Before Rendering
Preview Before Rendering
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
Request Rejected for Scene Music
Request Rejected for Scene Music
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:- Add the scene’s
musicUrl, or remove the scenevolumeto use the video-level volume. - Keep volumes between 0 and 1.
- Use a complete
https://URL formusicUrl.
Job Fails with MUSIC_URL_UNREADABLE
Job Fails with MUSIC_URL_UNREADABLE
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:- Open the URL in a private browser window and confirm it plays.
- Use a public URL to an MP3 or another common audio format.
- For library music, pass the
audioUrlfrom Search Music Tracks exactly as returned.
Job Fails with MUSIC_LICENSE_FAILED
Job Fails with MUSIC_LICENSE_FAILED
Cause: A track from Pictory’s music library could not be licensed.Resolution:
- Run the request again; the failure is usually temporary.
- If it fails again, search for the track once more and use the new
audioUrl, or choose another track.
Job Fails with SCENE_MUSIC_BUILD_FAILED
Job Fails with SCENE_MUSIC_BUILD_FAILED
Cause: The scene tracks could not be joined into one soundtrack.Resolution:
- Check that every
musicUrlplays on its own. - Run the request again. If it keeps failing, contact support with the job ID.
A Scene Without a Track Has No Music
A Scene Without a Track Has No Music
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:- Set
enabled: truewith a video-levelmusicUrlorautoMusic: trueto play music under the scenes without a track of their own. - Or give the scene its own
musicUrl.
A Track Starts Again Instead of Continuing
A Track Starts Again Instead of Continuing
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:- Use the identical URL on each scene, copied exactly, including any query string.
- 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
- Create Storyboard Preview: the
scenes[].backgroundMusicobject - Render Storyboard Video: render with the same request
- Get Video Render Job: job status, errors and the YouTube clearance code
