convert_format
Convert video or audio files to a different container or codec. The output format is determined by the destination file extension, so you can change .mp4 to .mov, .webm, .avi, .mp3, and more.
Instructions
Convert a video/audio file to a different container/codec. The output format is inferred from the output_path extension (e.g. .mp4, .mov, .webm, .avi, .mp3).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Source media path. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. | |
| output_path | Yes | Destination path with the desired extension. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. |