Skip to main content
View as Markdown

Audio Mixing - Content Management

Audio Mixing​

Audio from overlay and background replacement sources mixes with the main video using a complementary volume model.

Volume Model​

SettingMain AudioOverlay/BG Audio
volume=0.0100%0% (muted)
volume=0.370%30%
volume=0.550%50%
volume=0.730%70%
volume=1.00% (muted)100%

The formula: main volume = 1 - overlay volume. Mixed with FFmpeg amix filter (normalize=0).

Audio Attributes​

Add audioAttributes to any overlay or background replacement:

-d "resource[operationAttributes][0][mediaCompositionAttributesArray][0][audioAttributes][volume]=0.3"

This plays the overlay audio at 30% and the main video audio at 70%.

Muting Overlay Audio​

To keep only the main video's audio:

-d "resource[operationAttributes][0][mediaCompositionAttributesArray][0][audioAttributes][volume]=0.0"