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.
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 |