set_video_codec
Change the video codec of a video file while preserving the audio stream. Specify input and output file paths along with the desired codec (e.g., libx264, libx265, vp9) to process and save the updated video.
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 |