Actions21
Extract Audio
AI-generatedSummary
Extract audio from video input and output as a separate audio file.
Inputs
- binaryPropertyName — Name of the binary property containing the input video file
- audioFormat (required) — Audio format to extract (mp3, aac, wav, ogg)
- audioQuality — Audio quality bitrate for extracted audio
- outputBinaryPropertyName — Name of the binary property to store the output audio file
- additionalOptions.timeout — Maximum execution time in seconds
- additionalOptions.enableLogging — Whether to log FFmpeg output to console
- additionalOptions.encodingPreset — Encoding speed preset for x264/x265. Faster presets produce larger files but process much quicker in WebAssembly
Output shape
Each output item contains a json block with ffmpeg metadata (operation, inputFilename, outputFilename, size) and a binary block with the extracted audio data base64-encoded under the specified outputBinaryPropertyName, including fileName and mimeType.
The operation demultiplexes the audio track from the video input, sets audio sample rate to 44100 Hz and stereo channels, applies the selected bitrate via -b:a, and writes the output in the chosen format extension.
Examples
Example 1: Extract audio from a video clip stored in the 'data' binary property, output as MP3 at 128kbps to the 'audioData' binary property.
binaryPropertyName: data; audioFormat: mp3; audioQuality: 128k; outputBinaryPropertyName: audioData