ffkit_extract_audio
Extract audio from video or audio files. Keep the original codec or re-encode to MP3, AAC, or PCM, with options to set channels and sample rate.
Instructions
Extract the audio stream from a video/audio file. Can re-encode to a different codec or keep original.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codec | No | Audio codec. 'copy' keeps original; or 'libmp3lame', 'aac', 'pcm_s16le'. | |
| channels | No | Number of audio channels (1=mono, 2=stereo). | |
| input_path | Yes | Source media file. | |
| output_path | Yes | Destination audio file (e.g. 'out.mp3', 'out.wav'). | |
| sample_rate | No | Output sample rate in Hz (e.g. 16000 for ASR). |