set_video_codec
Change a video's codec to a specified format such as libx264 or libx265 while preserving the audio stream by copying it. Specify the source video, destination path, and target codec.
Instructions
Sets the video codec of a video, attempting to copy the audio stream.
Args: input_video_path: Path to the source video file. output_video_path: Path to save the video with the new video codec. video_codec: Target video codec (e.g., 'libx264', 'libx265', 'vp9'). 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>",
"video_codec": "<video_codec>"
},
"name": "set_video_codec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_codec | Yes | ||
| input_video_path | Yes | ||
| output_video_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |