/v1/tools/burn_captionspricedBurn captions into a video
Draws captions onto a video's picture (burned-in subtitles), from a subtitle file, captions written out or one line of text, in the place, style and size chosen.
Takes src (file), subtitle_file (file). Give exactly one of: text, start and end; or captions; or subtitle_file. Returns video, preview, edl (the captions as drawn, each with its words, times, place and style, and the source they were drawn on).
$0.10 a minute of video, up to 60 minutes.
Afterwards, change start, end, position, text or captions with adjust; quote_adjustment prices the change.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
src | string | Required | A file_id from create_upload, accepting video/*, up to 2 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. |
subtitle_file | string | None | A file_id from create_upload, accepting application/vnd.scrub.timed-text+json, application/json, application/x-subrip, text/vtt, text/plain, up to 16 MB. 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. Without one, transcribe (Transcribe a video) from the file given as src makes the transcript_file that convert (Convert a transcript) with as json makes one from: run them in that order first and pass the last one's job_id here. |
text | string | None | One caption's text, with start and end. |
start | number | None | When that one caption appears, in seconds. |
end | number | None | Greater than start. |
captions | array | None | Captions written out, each with start and end in seconds and its text. |
position | one of | lower_third | lower_thirdcentretop_left |
style | one of | clean | How the captions look. clean: White, heavy, a few words at a time. Each word lights up as it is said. pill: The word being said sits in a white pill, in black. box: The phrase on a dark rounded box, for busy footage. bold: Heavy words that pop in as they are said; the word being said grows. subtitles: One or two full lines, smaller, without movement: for talks and wide videos.cleanpillboxboldsubtitles |
font | one of | Inter Tight | The font the captions are set in. Inter Tight: Tight and even; every caption style's face. Inter: The plainest, most legible sans; explainers and data. Manrope: Calm, geometric and modern. Hanken Grotesk: Soft, open grotesque; friendly captions that stay easy to read. Archivo: Sturdy grotesque with real weight; news and how-tos. Montserrat: The face most short-form captions are set in. Poppins: Round geometric sans; friendly brands and lifestyle. Figtree: Clean and warm, a little softer than Inter. Bricolage Grotesque: Quirky editorial sans. Rubik: Slightly rounded corners; playful but tidy. Bebas Neue: Tall capitals; titles, numbers and sport. Anton: Heavy, narrow capitals; the loudest hook text. Oswald: Condensed, with weights; lists and labels. League Gothic: Classic condensed gothic; posters and film titles. Fraunces: Soft, old-style serif; warm stories. Playfair Display: High-contrast serif; elegant titles. Instrument Serif: Narrow editorial serif. DM Serif Display: Bold display serif; quotes and headlines. PT Serif: Classic text serif with italics; reports, history and quotes. Caveat: Quick handwriting; notes and asides. Bangers: Comic-book capitals; reactions and gaming. Luckiest Guy: Fat cartoon capitals; kids, gaming and hooks. JetBrains Mono: Monospace; code, terminals and numbers that line up.Inter TightInterManropeHanken GroteskArchivoMontserratPoppinsFigtreeBricolage GrotesqueRubikBebas NeueAntonOswaldLeague GothicFrauncesPlayfair DisplayInstrument SerifDM Serif DisplayPT SerifCaveatBangersLuckiest GuyJetBrains Mono |
size | number | 72 | The captions' type size, in pixels on a frame whose shorter side is 1080; larger shows fewer words at a time. |
rows | number | 1 | How many lines a caption runs to; as many words show at once as fit. |
case | one of | as_said | Capital letters as said, all capitals, or all lower case.as_saidcapitalslower_case |
weight | one of | style | How heavy its letters are; the nearest weight its font has is drawn. style: its style's ownstyle100200300400500600700800900 |
ahead | one of | style | How the words of a caption not said yet look, in a style that shows a caption's words together. style: as its style shows them faded: faint until each is said full: as clear as the word being saidstylefadedfull |
in | one of | style | How each caption comes in. style: the move its style has none: just there fade: comes up from nothing rise: lifts into place pop: springs up with a little overshootstylenonefaderisepop |
out | one of | fade | How each caption goes as the next comes. fade: a quick fade as the next comes none: just gonefadenone |
colour | string | null | The words' colour. Left alone, the style's own. |
highlight | string | null | The colour of the style's highlight, the pill the word being said sits in, the box behind the phrase, or the word being said, as the style has it. Left alone, the style's own; nothing in a style with no highlight. |
align | one of | centre | Where the words sit in their box. left: the words start at the left of their box centre: the words centred in their box right: the words end at the right of their boxleftcentreright |
background | one of | style | What is behind the words; as its style has it when left. style: its style's own none: nothing behind the words box: a rounded box round the phrase bar: a band the width of the caption's boxstylenoneboxbar |
background_colour | string | #111114 | The background's colour, when a box or a bar is chosen. |
background_opacity | number | 80 | How solid the background is, when a box or a bar is chosen. |
edge | one of | style | What is round each letter; as its style has it when left. style: its style's own none: nothing round the letters outline: a line round each letter shadow: a soft shadow under the wordsstylenoneoutlineshadow |
edge_colour | string | #000000 | The outline's or the shadow's colour, when one is chosen. |
box | object | null | Where the caption sits and the room its words wrap in: x and y its centre, width and height its size, as shares of the frame. Left out, the placement's own place. On the page it is dragged and its handles pulled; it snaps to the frame's safe lines. |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/burn_captions \
-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.