Login
Free Sign Up
Docs
/

Media - Video - Audio - Extract

Type identifier: media:video:audio:extract Category: Media Operations

Description

The Media - Video - Audio - Extract node reads a video file, extracts the first audio stream, and outputs a new audio file.

The node supports:

  • A Match original format toggle (enabled by default)
  • Optional explicit output format, bitrate, and sample rate when match-original is disabled
  • Dynamic values for output format, bitrate, and sample rate when match-original is disabled
  • Auto-detection of output format when match-original is enabled, or when no explicit output format is provided

If format detection fails, the node falls back to mp3.

Input Handles

Handle

Data Type

Description

trigger

control

Trigger input for flow control.

videoInput

file

Source video file.

outputFormat

string

(Dynamic) Output audio format (mp3, wav, m4a, ogg, flac, aac).

bitrate

number

(Dynamic) Target audio bitrate in kbps.

sampleRate

number

(Dynamic) Target sample rate in Hz.

Note: Dynamic input handles appear only when Match original format is disabled and the corresponding field is set to dynamic.

Output Handles

Handle

Data Type

Description

success

control

Triggered when extraction succeeds.

error

control

Triggered when extraction fails.

audioOutput

file

Extracted audio file.

Configuration Options

Option

Type

Default

Description

Match original format

boolean

true

When enabled, output format is inferred from the source audio stream and advanced options are hidden.

Output Format

enum/dynamic

null

Output audio format. Available only when Match original format is disabled.

Bitrate

number/dynamic

null

Output bitrate in kbps. Available only when Match original format is disabled.

Sample Rate

number/dynamic

null

Output sample rate in Hz. Available only when Match original format is disabled.

Supported Formats

Format

Extension

MIME Type

MP3

.mp3

audio/mpeg

WAV

.wav

audio/wav

M4A

.m4a

audio/mp4

OGG

.ogg

audio/ogg

FLAC

.flac

audio/flac

AAC

.aac

audio/aac

Behaviour

  1. Reads the videoInput file.
  2. If Match original format is disabled, uses the configured output format, bitrate, and sample rate, including dynamic values.
  3. Detects the output format from the source audio stream if Match original format is enabled or no explicit output format is provided.
  4. Extracts and encodes the audio from the video.
  5. Returns the extracted audio as audioOutput.