Skip to main content
This guide shows you how to control background music at the scene level. Enable or disable music for individual scenes within the same video to create dynamic audio experiences, emphasize key moments, or add variety to your content.

What You’ll Learn

Video-Level Defaults

Set default background music for entire video

Scene-Level Override

Enable or disable music for specific scenes

Selective Audio

Create videos with dynamic music control

Audio Strategy

Design effective scene-by-scene audio

Before You Begin

Make sure you have:
  • A Pictory API key
  • Node.js or Python installed on your machine
  • Understanding of video-level background music configuration
  • Basic knowledge of scene structure in Pictory API

How Scene-Level Music Control Works

When you configure music at the scene level:
  1. Video-Level Default - Define default background music settings for entire video
  2. Scene Processing - Each scene is evaluated for scene-level overrides
  3. Override Detection - System checks if scene has backgroundMusic.enabled setting
  4. Music Application - Scenes use video-level music unless explicitly overridden
  5. Audio Mixing - Music is mixed with voice-over and other audio per scene
  6. Transition Handling - Smooth transitions between scenes with/without music
  7. Video Rendering - Final video rendered with scene-specific music control
Scene-level control only allows enabling or disabling music. All scenes that have music enabled use the same music track defined at the video level. You cannot use different music tracks for different scenes.

Complete Example

Understanding the Parameters

Video-Level Background Music

Scene-Level Override

Scene-Level Limitations:
  • Scene-level backgroundMusic only accepts the enabled parameter (true/false)
  • You cannot change music track, volume, or clips at scene level
  • All scenes with music enabled use the same track from video-level configuration
  • To use different music tracks, create separate videos

Music Control Patterns

Pattern 1: Music On Most Scenes, Off for Key Moments

Use music throughout, but disable it for important announcements or dramatic pauses.
Result: Music plays throughout except during critical messages for maximum clarity.

Pattern 2: Music Only on Specific Scenes

Start with no music by default, enable only for specific scenes.
Result: Music plays only during intro and outro, main content is music-free.

Pattern 3: Alternating Music for Variety

Alternate music on/off to create rhythm and variety.
Result: Creates dynamic pacing with alternating music and silence.

Pattern 4: Music Only During Transitions

Use music only between content sections for smooth transitions.
Result: Music plays only during transition scenes for smooth section changes.

Common Use Cases

Educational Videos - Focus on Key Concepts

Result: Subtle background music except during key learning moments for better retention.

Marketing Videos - Emphasize Call-to-Action

Result: Energetic music builds excitement, then silence makes CTA stand out.

Podcast/Interview Clips - Highlight Quotes

Result: Music bookends the interview, content is clear and uninterrupted.

Testimonial Videos - Authentic Voice

Result: Authentic testimonials stand out without music, framing content has music.

Best Practices

Use silence strategically to emphasize critical content:
  • Key Announcements: Turn off music for important news or updates
  • Call-to-Action: Disable music during CTA for maximum impact
  • Statistics/Data: Present numbers and facts without musical distraction
  • Testimonials: Let authentic voices speak without background music
  • Complex Concepts: Turn off music when explaining difficult topics
  • Legal/Disclaimers: Ensure disclaimers are heard clearly without music
Enable music strategically to enhance engagement:
  • Intro/Outro: Use music to bookend your content professionally
  • Topic Transitions: Add music during section changes for smooth flow
  • Upbeat Moments: Enable music for exciting or celebratory content
  • Background Context: Use subtle music during supporting information
  • B-Roll Sequences: Add music during visual-only scenes
  • Energy Boost: Turn music on to re-engage viewers during longer content
Alternate music on/off to maintain viewer interest:
  • Vary Audio Landscape: Don’t use the same pattern throughout
  • Match Content Mood: Enable music for lighter topics, disable for serious ones
  • Prevent Fatigue: Alternating helps prevent audio monotony
  • Scene Variety: Mix music/no-music scenes for dynamic feel
  • Rhythm Creation: Establish patterns viewers can anticipate
  • Strategic Silence: Use silence as a tool, not just absence of sound
Balance music with narration for clarity:
  • With Heavy Narration: Consider disabling music for content-heavy scenes
  • Short Voice-Over: Music works well with brief narration
  • Technical Narration: Disable music when explaining complex procedures
  • Volume Balance: Even when music is on, keep it low (0.2-0.3) with voice-over
  • Speaker Changes: Consider music changes when speakers change
  • Emphasis Through Contrast: Use music/silence to emphasize speaker’s words
Always preview to ensure proper music control:
  • Listen Carefully: Review the full video to check music transitions
  • Check Transitions: Ensure smooth audio when music starts/stops
  • Volume Levels: Verify music does not overpower when enabled
  • Scene Timing: Confirm music changes align with scene boundaries
  • Viewer Perspective: Consider if music changes make sense to viewers
  • Iterate: Adjust scene-level settings based on preview feedback

Troubleshooting

Problem: Scene still has music even though enabled: false was set.Solution:
  • Verify you set backgroundMusic: { enabled: false } at scene level
  • Check JSON syntax is correct (proper nesting and commas)
  • Ensure video-level music is enabled first (nothing to override otherwise)
  • Confirm scene-level setting is within the specific scene object
  • Review API response for any validation errors
  • Test with a simple 2-scene example to isolate the issue
Problem: Want different music for different scenes, but it is not working.Solution:
  • Scene-level control only allows enabling/disabling, not changing tracks
  • All scenes with music use the video-level track configuration
  • To use different music tracks:
    • Create separate videos for each music track needed
    • Use video editing software for multi-track music after export
    • Consider using different clips from the same track (video-level clips)
  • This is a current limitation of the scene-level music control feature
Problem: Music starts/stops suddenly between scenes, sounds jarring.Solution:
  • This is expected behavior - music transitions align with scene boundaries
  • The API automatically applies subtle fade in/out at scene transitions
  • For smoother transitions, consider:
    • Adjusting scene durations to align with musical phrases
    • Using longer scenes where music stays consistent
    • Choosing background music with gentle instrumentation
  • Very short scenes may have more noticeable transitions
Problem: Scene-level enabled: false seems to be ignored.Solution:
  • Verify video-level music is properly configured first
  • Check that scene-level override is backgroundMusic: { enabled: false }
  • Ensure you are not just setting enabled: false at video level
  • Confirm proper JSON structure and nesting
  • Example correct structure:
Problem: Set video-level music to disabled, but want to enable for one scene.Solution:
  • This is supported - set video-level to enabled: false
  • Then enable for specific scenes with backgroundMusic: { enabled: true }
  • Ensure video-level still has musicUrl or autoMusic configured
  • Even with enabled: false at video level, you need music source defined
  • Example:
Problem: Want different volume levels for different scenes.Solution:
  • Scene-level control does not support volume adjustments
  • Only enabled (true/false) can be set at scene level
  • All scenes use the video-level volume setting
  • Workaround options:
    • Use audio editing software post-export for scene-specific volume
    • Choose background music with natural volume variations
    • Create separate videos if drastically different volumes needed
  • This is a current limitation of scene-level music control

Hierarchy and Override Rules

Understanding how video-level and scene-level settings interact:

Default Behavior (No Scene Override)

With Scene-Level Override

Video-Level Disabled, Scene-Level Enabled

Next Steps

Enhance your scene-level music control with these complementary features:

Background Music

Learn about video-level background music configuration

AI Voice-Over

Add narration that works with scene music

Intro/Outro Scenes

Combine scene music control with intro/outro

Custom Subtitle Styling

Style subtitles for scenes with/without music

API Reference

For complete technical details, see: