set_video_codec
Change the video codec of a file while preserving the audio stream. Specify input and output paths along with the desired codec for efficient video format conversion.
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.
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| input_video_path | Yes | ||
| output_video_path | Yes | ||
| video_codec | Yes | 
Input Schema (JSON Schema)
{
  "properties": {
    "input_video_path": {
      "title": "Input Video Path",
      "type": "string"
    },
    "output_video_path": {
      "title": "Output Video Path",
      "type": "string"
    },
    "video_codec": {
      "title": "Video Codec",
      "type": "string"
    }
  },
  "required": [
    "input_video_path",
    "output_video_path",
    "video_codec"
  ],
  "title": "set_video_codecArguments",
  "type": "object"
}