set_video_audio_track_codec
Change the audio codec of a video while preserving the video stream. Specify input path, output path, and target audio codec to convert.
Instructions
Sets the audio codec of a video's audio track, attempting to copy the video stream.
Args: input_video_path: Path to the source video file. output_video_path: Path to save the video with the new audio codec. audio_codec: Target audio codec (e.g., 'aac', 'mp3'). Returns: A status message indicating success or failure.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_video_path": "<input_video_path>",
"output_video_path": "<output_video_path>",
"audio_codec": "<audio_codec>"
},
"name": "set_video_audio_track_codec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio_codec | Yes | ||
| input_video_path | Yes | ||
| output_video_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |