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 |