Convert format
convert_formatTranscode video and audio to a different container or codec, with sensible defaults. Adjust encoding settings or extract audio as needed.
Instructions
Transcode a file to a different container or codec.
Sensible codec defaults are chosen per container (H.264/AAC for mp4 and mov, VP9/Opus for webm, MP3 or AAC for audio-only targets); override them through 'encode'. Set audio_only to extract the audio track.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encode | No | Encoder settings. Defaults are chosen to suit the target container. | |
| container | No | Target container extension, e.g. 'mp4', 'webm', 'mp3'. Inferred from output_path when given. | |
| audio_only | No | Drop video and keep only audio. | |
| input_path | Yes | Path to the source media file. | |
| output_path | No | Destination file. If omitted, the output is written into the job's workspace directory and its path is returned by job_result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| job_id | Yes | ||
| status | No | queued | |
| message | No | Job queued. Poll job_status for progress, then job_result. |