FFmpeg icon

FFmpeg

Process audio files using FFmpeg

Mix Narration with BGM

AI-generated

Summary

Mixes each input item’s narration audio with its BGM audio, placing narration after a BGM intro and lowering the music under the narration. Optionally normalizes the mix and returns it in the selected audio format.

Inputs

  • Binary Property — Binary property containing narration audio; defaults to data.
  • BGM Binary Property — Binary property containing background music on the same item; defaults to bgm.
  • Fade In Duration (seconds) — BGM fade-in duration; defaults to 2 seconds.
  • Intro Duration (seconds) — Time BGM plays at full volume before fading down; defaults to 3 seconds.
  • Fade Down Duration (seconds) — Duration for BGM to fade from full volume to its narration level; defaults to 2 seconds.
  • BGM Volume — BGM level during and after narration, from 0 to 1; defaults to 0.15.
  • Outro Duration (seconds) — Time BGM continues at its lower level after narration; defaults to 0 seconds.
  • Fade Out Duration (seconds) — Duration for BGM to fade to silence after the outro; defaults to 3 seconds.
  • Mix Output Format — Output format: MP3, WAV, OGG, FLAC, AAC, or M4A; defaults to MP3.
  • Mix Output Bitrate — Optional output bitrate from 64 to 320 kbps; Auto leaves FFmpeg’s default.
  • Normalize — Optional loudness normalization preset (Podcast, YouTube, Broadcast), custom filter, or Off.
  • Normalize Custom Value — Custom loudness filter used when Normalize is Custom.
  • Output Binary Property — Binary property for the mixed audio output; defaults to data.

Output shape

One output item for each input item, containing mixed audio in the configured binary property and JSON metadata.

Each input item must contain both narration and BGM binary properties. Metadata includes narration duration, timing and volume settings, total duration, output format, and output size. The output filename uses the narration filename with its extension replaced by the selected format.

Links

Discussion