Scrub API
POST/v1/tools/frame_speakerpriced

Frame the speaker

Frames the speaker of a call or a webinar: crops round their face in the call's camera picture, clear of its edge and the name tag, enlarged and cleaned into a clip of its own with its sound, 4:5 for a card. Lists the shots with how much of each the speaker looks into the camera.

Takes src (file). Returns speaker (the speaker framed, as an MP4 in the aspect ratio asked, in time with the video and with its sound, enlarged and cleaned), shots (the shots of the speaker's clip, one row each in order, with when each starts and ends in the clip, whether it shows the speaker or no face, how much of it they look into the camera in %, and Use, Yes where that is at the eye contact asked or more).

$0.05 a minute of video, up to 10 minutes.

Fields

FieldTypeDefaultWhat it is
srcstringRequiredA file_id from create_upload, accepting video/*, up to 4 GB. Get one with create_upload. Or the job_id of a finished job that made a file of this kind: that file is used. Pass the job_id rather than retyping its result.
aspect_ratioone of4:5The aspect ratio the speaker is framed in, width to height. 4:5 is a card for a Short or a feed, 9:16 upright, 1:1 square, 16:9 wide. The clip is made 1080 pixels wide (1920 at 16:9).
9:161:14:516:9
eye_contactnumber90How much of a shot the speaker must look into the camera for it to be one to use, in %. Shots are split where their eye contact rises above this or falls below it.
fromnumbernullOnly this part, where it starts, in seconds into the video; the clip is that part, and only it is priced. Left out, from the start.
tonumbernullGreater than from.

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/frame_speaker \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"src":"w/…/file_id"}'

Answer

{
  "ok": true,
  "result": {
    "job_id": "job_…",
    "status": "running",
    "price_usd": "$…"
  }
}

It starts at once and answers running. Ask job_status with the job_id for its result. quote gives its price first, free.

Every call can also answer an error: what comes back. Try it with your key from Account.