convert_video_properties
Convert video files to a target format and customize encoding properties including resolution, codec, bitrate, and frame rate.
Instructions
Converts video file format and ALL specified properties like resolution, codecs, bitrates, and frame rate.
Args: input_video_path: Path to the source video file. output_video_path: Path to save the converted video file. target_format: Desired output video format (e.g., 'mp4', 'mov', 'avi'). resolution: Target resolution (e.g., '1920x1080' or '720' for height). Optional. video_codec: Target video codec (e.g., 'libx264', 'libx265'). Optional. video_bitrate: Target video bitrate (e.g., '1M', '2500k'). Optional. frame_rate: Target frame rate (e.g., 24, 30, 60). Optional. audio_codec: Target audio codec (e.g., 'aac', 'mp3'). Optional. audio_bitrate: Target audio bitrate (e.g., '128k', '192k'). Optional. audio_sample_rate: Target audio sample rate in Hz (e.g., 44100, 48000). Optional. audio_channels: Number of audio channels (1 for mono, 2 for stereo). Optional. Returns: A status message indicating success or failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame_rate | No | ||
| resolution | No | ||
| audio_codec | No | ||
| video_codec | No | ||
| audio_bitrate | No | ||
| target_format | Yes | ||
| video_bitrate | No | ||
| audio_channels | No | ||
| input_video_path | Yes | ||
| audio_sample_rate | No | ||
| output_video_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |