FFmpeg.wasm icon

FFmpeg.wasm

Process audio and video files using FFmpeg.wasm

Audio Mix

AI-generated

Summary

Mix multiple audio tracks into one using FFmpeg's amix filter

Inputs

  • audioBinaryProperties (required) — Comma-separated list of binary property names containing audio tracks to mix. At least 2 are required; fewer will cause an error.
  • audioMixOutputFormat — Output audio format extension. Defaults to 'mp3'. Determines the file extension and MIME type of the returned audio.
  • binaryPropertyName — Name of the binary property containing the input file. Defaults to 'data'. Read by the node but not consumed by the audio mix logic.
  • outputBinaryPropertyName — Name of the binary property to store the output file. Defaults to 'data'.
  • additionalOptions — Optional collection of execution controls: timeout (number, seconds), enableLogging (boolean), encodingPreset (options for codec speed/quality).

Output shape

Binary property named by outputBinaryPropertyName containing the mixed audio file. File name format: output_{itemIndex}_{timestamp}{ext}, where ext derives from audioMixOutputFormat (default '.mp3'). Mime type derived from the output format.

The output duration matches the longest input track due to the 'duration=longest' amix setting.

Examples

Example 1: Combine two audio tracks from binary properties 'audio1' and 'audio2' into a single MP3 output stored in binary property 'result'.

audioBinaryProperties: 'audio1,audio2'; audioMixOutputFormat: 'mp3'; outputBinaryPropertyName: 'result'

Links

Discussion