Extract Audio
AI-generatedSummary
Extract audio from media using FFmpeg
Inputs
- inputMode (required) — How to provide the input file: Binary, File Path, or URL
- binaryProperty — Property name that holds the binary input data
- inputFilePath — Local file path to the input media
- inputUrl — URL to download the media from
- outputMode — How to return the result: Binary or File Path
- outputBinaryProperty — Property name for the binary output payload
- outputFilePath — File system path for the output file
- outputFormat — Target container or codec format for the audio (e.g., mp3, wav)
- customOutputFormat — Custom file extension when outputFormat is set to Custom
- additionalOutputOptions — Additional FFmpeg command-line options, one per line
Output shape
array of result objects
Each result includes the operation name, chosen outputFormat, and outputPath when outputMode is 'filePath'. If outputMode is 'binary', a binary payload is provided under the configured outputBinaryProperty. No binary payload is emitted when outputMode is 'filePath'.
Examples
Example 1: Extract audio from a binary media item and output as MP3 binary
inputMode=binary (default), outputMode=binary (default), outputFormat=mp3 (default)
Example 2: Extract audio from a URL and write to a file
inputMode=url, inputUrl=https://example.com/video.mp4, outputMode=filePath, outputFilePath=/tmp/out.mp3, outputFormat=mp3
Example 3: Extract audio to WebM with custom FFmpeg options
inputMode=filePath, inputFilePath=/data/video.mp4, outputFormat=webm, customOutputFormat=webm, additionalOutputOptions=-vn -b:a 128k