Process media (crop, unletterbox, reframe, smooth slow-mo)
process_mediaRun one ffmpeg preset on an image or video already in emero, in emero's sealed sandbox, and store the result as a new creation (job:#0, same color as the source, high-quality encode). Use this instead of your own sandbox for any file that goes back into emero. Presets: crop (box), face_crop (box = the face; grows it to head and neck), unletterbox (removes baked-in bars; optional target), reframe_aspect (target + anchor), slowmo_smooth (speed 0.1-0.9, fps; motion-interpolated, source 10s max). box is fractions 0-1 of the upright frame (measure it in your own sandbox or by viewing the image). Returns a job id: poll it with check_generation. Free.
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": {
"preset": "<preset>",
"input_id": "<input_id>"
},
"name": "process_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | No | crop, face_crop: {x, y, w, h} as fractions of the upright frame. | |
| fps | No | slowmo_smooth output fps (default 30). | |
| speed | No | slowmo_smooth: 0.5 = half speed. | |
| anchor | No | reframe_aspect: where the slice sits (default center). | |
| preset | Yes | ||
| target | No | reframe_aspect (required), unletterbox (optional). | |
| input_id | Yes | job:<uuid>#n, upload:<id> or memory:<id>#n of ONE image or video. | |
| keep_audio | No | slowmo_smooth: keep the audio, slowed (default off). | |
| project_id | No | Opaque per-chat project id: "p-" plus 6 random letters and digits. Every chat is a new project. Mint one on your first emero call and pass that SAME id on every call in this chat. Never mint a second one in the same chat, even for a new topic, campaign or subject. Only when the user asks to continue an earlier project, reuse its id from get_emero_brain's project list. | |
| project_name | No | Short human title for the project (2-5 words from the user request, e.g. "Perfume ad campaign"). Pass it on your first generate/ingest_url so the project is not left "Untitled". You may also rename at will later — pass an updated project_name (on a generate/ingest_url, or on set_settings with no other change) whenever the user asks, e.g. "call this project cats". |