extract_audio_from_video
Extract and save audio from video files using customizable codecs like MP3, AAC, or WAV for standalone audio output.
Instructions
Extracts audio from a video file and saves it.
Args: video_path: The path to the input video file. output_audio_path: The path to save the extracted audio file. audio_codec: The audio codec to use for the output (e.g., 'mp3', 'aac', 'wav'). Defaults to 'mp3'. Returns: A status message indicating success or failure.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
audio_codec | No | mp3 | |
output_audio_path | Yes | ||
video_path | Yes |
Input Schema (JSON Schema)
{
"properties": {
"audio_codec": {
"default": "mp3",
"title": "Audio Codec",
"type": "string"
},
"output_audio_path": {
"title": "Output Audio Path",
"type": "string"
},
"video_path": {
"title": "Video Path",
"type": "string"
}
},
"required": [
"video_path",
"output_audio_path"
],
"title": "extract_audio_from_videoArguments",
"type": "object"
}