Encode a media file with Media Encoder
encode_fileTranscodes any media file on disk with an Adobe Media Encoder preset, queuing the job and optionally waiting to return output size, duration, and stream details.
Instructions
Transcode a media file on disk (it does not need to be in the project) with an export preset through Adobe Media Encoder. Queues the job and starts the queue; with wait=true (default) waits for the output and returns its size and, with ffprobe, duration and streams.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "encode_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait until Media Encoder has written the file. Default true. | |
| exporter | No | Narrow preset_name to one exporter, by its exact name from list_exporters, e.g. "H.264", "QuickTime", "Waveform Audio", "MP3". | |
| overwrite | No | Replace an existing output file. Default false. | |
| input_path | Yes | Absolute path of the source media file. | |
| output_path | Yes | Absolute output file path. Its extension is set to the one the preset produces. | |
| preset_name | No | Preset name to look up when preset_path is not given, e.g. "Match Source - High bitrate". Words must all match; an exact name wins. | |
| preset_path | No | Absolute path of an .epr export preset (from find_export_presets). Preferred. | |
| timeout_seconds | No | With wait: how long to wait for the file. Default 600. | |
| remove_on_completion | No | Remove the job from the Media Encoder queue when it finishes. Default false. |