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 |