extract_audio_and_metadata
Extract media metadata (FPS, resolution, bitrate, codecs) and optionally rip the audio track to a standalone file for analysis or reuse.
Instructions
Extract complete media metadata (FPS, resolution, bitrate, codecs) and optionally extract audio.
Args: input_path: Path to the media file. extract_audio: Whether to rip the audio track to a standalone file (default: True). audio_format: Format for extracted audio ('wav', 'mp3', 'aac', 'flac'). output_audio_path: Optional destination path for extracted audio.
Returns: JSON string containing comprehensive audio/video stream parameters and audio file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | ||
| audio_format | No | wav | |
| extract_audio | No | ||
| output_audio_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |