FFmpeg Advanced

Process video and audio using FFmpeg with advanced and preset capabilities

Extract Audio

AI-generated

Summary

Rip audio track from a video file and return it as binary data or save it to disk.

Inputs

  • binaryPropertyName (required) — The name of the binary property containing the media file to process. Default: 'data'. Must be set when 'Input Source' is 'binary'.

Output shape

Binary data returned in the property specified by 'binaryPropertyName'. The filename is '{fileName}.{audioFormat}' (or a UUID + '.{audioFormat}' if 'fileName' is empty).

If 'saveToFile' is true, the file is saved to the absolute path given by 'filePath', the binary output is empty, and the JSON includes 'saved: true' and 'outputFilePath'. If 'saveToFile' is false, the audio binary is produced with the computed filename.

Examples

Example 1: Return audio as binary data

audioFormat: 'mp3', saveToFile: false, fileName: '', binaryPropertyName: 'data' (default). Input: video in 'data' binary field. Output: audio in 'data' field as MP3 with UUID filename.

Example 2: Save audio to disk

audioFormat: 'wav', saveToFile: true, filePath: '/tmp/output/audio.wav'. Input: video binary. Output: file written to '/tmp/output/audio.wav', binary output empty, JSON includes 'saved: true' and 'outputFilePath'.

Discussion