Skip to content

Agent API

Drive the editor from a script or an AI agent: read the project, make edits, render frames and export.

While a project is open in the editor, window.oryvio lets a script or an AI agent work on it with the same edits the editor makes: read the project, import media, cut, add titles and effects, render frames and export. It runs in the page, so it works from the browser’s developer console, from a browser automation tool such as Playwright, or from an agent that can run code in a page.

Edits made through it are the same as edits made by hand. They’re saved as you go, other tabs see them, and Undo takes them back.

Get started

  1. Open the project in the editor.
  2. Open the browser’s developer console, or have your tool run code in the editor’s page.
  3. Wait until the editor is ready, then call what you need:
await oryvio.ready
const { tracks, duration } = oryvio.getState()
oryvio.addText('Opening night', { at: 0, duration: 4 })
oryvio.split(10)
const png = await oryvio.renderFrame(5, { width: 1280 })

oryvio.ready settles once the saved project has been opened and the preview is up, and fails if the preview can’t start. Await it before the first call.

Give an agent the reference

oryvio.describe() returns everything an agent needs to work out what to call: the project’s model, every op and command, and the settings of each effect, text style, mask and more, with their ranges.

To paste it into an agent’s context, click Copy API reference in the Inspector’s Agent API section with nothing selected. See Project settings.

Edits and errors

Most edits are commands such as split, trimEdit or addText, which check what they’re given and work out the details. For anything else, oryvio.dispatch applies ops to the project directly, as one step:

oryvio.dispatch({ op: 'clip.update', id: clipId, patch: { opacity: 0.5 } })

A command or op that’s given something wrong throws an error saying what was wrong, and leaves the project as it was. Commands that take a while, such as importing or exporting, return a promise that rejects with the reason. oryvio.onOp calls back with every change, whoever made it, and returns a function that stops it.

Commands

Every command, grouped as the editor’s panels are. Type in the box to find one.

550 commands in 68 groups

Project and state

oryvio.version = 2

This API's version.

await oryvio.ready

Resolves when the saved project has been reopened and the renderer is up; rejects if the renderer can't start. Await it before the first call.

oryvio.describe()

Machine-readable overview of the document model, ops and commands.

oryvio.getProject() → Project

A copy of the whole project (describe().model says what's in it). Changing the copy changes nothing.

oryvio.getState()

How things are now: the playhead, what's playing and selected, the open sequence and its tracks, the media, and the project's health.

oryvio.dispatch(ops: Op | Op[], opts: { merge?: string } = {})

Apply ops. Throws on invalid ops; the document is unchanged in that case.

oryvio.onOp(fn: (e: { ops: Op[]; kind: string; remote: boolean }) => void)

Subscribe to every change. Returns an unsubscribe function.

oryvio.undo()

Undo the last edit.

oryvio.redo()

Redo the last edit undone.

oryvio.sessionHistory()

The session's undo history, oldest first, as Session history lists it: where it begins, then each step, with by (how many steps from the present it is: negative for those undo goes back to, 0 the present, positive those undone, to redo), when it was made (ms since 1970, or null when that isn't known), what it did (title, and what else, in brief) and the sequence it was in, if one. jumpHistory(by) goes to one.

oryvio.jumpHistory(by: number)

Go back (negative) or on (positive) by steps at once, as choosing a step in Session history does. Returns how many it went.

oryvio.select(ids: Id[])

Select clips ids, in place of what's selected. Throws if any isn't a clip, or isn't in the open sequence (as the timeline can only select what it shows): openSequence(theirs) first.

Media

oryvio.importUrl(url: string, name?: string, opts: { folder?: Id | null } = {})

Download and import a file. Resolves with the asset id after probing; rejects with the reason (also shown to the user). It goes into opts.folder (null: the top of the bin), or the folder open in the bin.

oryvio.importFiles(files: File[] | FileList, opts: { folder?: Id | null } = {})

Import File objects (or a FileList). Resolves with asset ids in order; rejects if any file can't be imported. opts.folder as for importUrl. A .gltf or .obj comes in with the files it names among them (its .bin buffers, .mtl materials and pictures) as one 3D model; a picture it names resolves to its id. Its .bin and .mtl files aren't media, and have no ids.

oryvio.importImageSequence(files: File[] | FileList, opts: { fps?: number; folder?: Id | null } = {})

Import numbered frames (shot_0001.exr, shot_0002.exr…) as image sequences, each one video clip playing at opts.fps (the project's by default). Resolves with asset ids in order, a sequence's in place of its frames; files that aren't frames of one import as they are. Rejects when there are no numbered frames among them. opts.folder as for importUrl.

oryvio.waitForMedia(timeoutMs = 60000) → Promise<{ problems: MediaProblem[] }>

Waits until no media is being read. Resolves with the media that failed or is missing.

oryvio.insertAsset(assetId: Id, opts: { at?: number; trackId?: Id } = {})

Place an asset on the timeline (at the end by default). Returns the new clip id.

Organizing media

oryvio.getLibrary()

The bin's organization: folders (with their path), collections (with what's in them), metadata fields, and every tag and keyword in use.

oryvio.findMedia(query?: Partial<MediaQuery> | string, opts: { folder?: Id | null; deep?: boolean; sort?: MediaSortKey; desc?: boolean } = {})

The media matching a query (see describe().mediaQuery; a string is the words to find), with its organization. opts.folder looks only in that folder (null: the top of the bin), and in the folders inside it with deep. opts.sort is name (the default), added, kind, duration, size, resolution, fps, rating, label or uses; desc reverses it.

oryvio.createFolder(name: string, parent: Id | null = null)

Make a bin folder, in parent (the top of the bin by default). Returns its id.

oryvio.renameFolder(id: Id, name: string)

Rename a folder of the media bin.

oryvio.deleteFolder(id: Id)

Delete a folder. What was in it (media and folders) moves up to the folder it was in.

oryvio.moveToFolder(ids: Id[], folder: Id | null)

Move media, and folders, into folder (null: the top of the bin). One undo step.

oryvio.setMediaInfo(assetIds: Id[], info: { favorite?: boolean; rating?: number; label?: LabelColor | null; tags?: string[]; addTags?: string[]; removeTags?: string[]; notes?: string; meta?: Record<string, string | null> })

Set how media is organized, for each of assetIds: favorite, rating (0-5), label, tags (replacing them), addTags, removeTags, notes, and meta values by field id or name ("" or null clears one). One undo step.

oryvio.addKeyword(assetId: Id, word: string, range?: { in?: number | null; out?: number | null })

Add a keyword to media, for all of it or for the part from range.in to range.out (media seconds). Returns the keyword's id. Each keyword gathers its media into a keyword collection, with just the parts that have it.

oryvio.removeKeywords(assetId: Id, which: Id[] | string)

Remove keywords from media: those with these ids, or with this word (however it's capitalized). Returns how many went.

oryvio.addMetadataField(name: string)

Add a custom metadata field (a column in the bin's list). Returns its id.

oryvio.createCollection(name: string, opts: { assets?: Id[]; rule?: Partial<MediaQuery> | string } = {})

Make a collection: of opts.assets, picked by hand, or with opts.rule (a media query; see describe().mediaQuery), a smart one holding whatever matches it as the media changes. Returns its id.

oryvio.editCollection(id: Id, assetIds: Id[], opts: { remove?: boolean } = {})

Add media to a collection picked by hand, or with remove, take it out. The media itself stays in the bin.

oryvio.mergeDuplicates(assetIds?: Id[])

Merge copies of the same file (found by content, whatever they're called) into one: those among assetIds, or with none, every file in the project more than once. A copy in assetIds is kept if it plays; the others' clips, favorites, ratings, tags, keywords, notes, metadata and collections move to it, and they're removed. One undo step. Returns each removed id with the id kept in its place, and how many clips moved.

await oryvio.relinkMedia(assetId: Id, file: File)

Relink offline media (its file isn't on this device, or couldn't be read) to a File, whatever it's called. It must hold the same kind of media; a video file can stand in for audio. Resolves with the media's id once it's read.

await oryvio.relinkFiles(files: File[] | FileList, opts: { assets?: Id[] } = {})

Relink offline media (only that among opts.assets, if given) to the Files that match it: by content, else by name and length, else by name, else by name but for the extension. A File of its name whose length is known to differ (another take, most likely) isn't used. Resolves once they're read, with relinked (the ids relinked, and by, how each was found: 'content' or 'name'), mismatched (of those, the ids whose file isn't what it was, of another length or other content), offline (the ids still offline), otherLength (of those, each one a File of whose name was found but of another length: { id, file, length }, file its place in files, to relink it anyway with relinkMedia if it's the right one), and unused (the names of the Files that weren't used).

await oryvio.replaceMediaFile(assetId: Id, file: File)

Replace the file behind media with another File, whatever it's called: its clips show the new file from the same source times (cut short where it's shorter), and the new media takes its place in the bin with its folder, tags, keywords, ratings, notes, metadata and collections, as one undo step. It must be the same kind of media, with a picture or sound if clips show the old one's; a file already in the project is used as it is. Resolves with the id of the media in its place: the old id is gone. To swap the media of one clip only, use replaceMedia.

oryvio.removeUnusedMedia()

Remove the media no clip in any sequence uses, as one undo step. Returns the ids removed.

await oryvio.packageProject(opts: { unused?: boolean } = {})

The project with the media files this device has, as one .oryvio Blob to keep or move to another computer, where it opens as a new project from the projects page. With opts.unused false, media no sequence uses is left out. Resolves with the Blob, a file name for it, how many files and bytes it holds, the names of media whose file isn't on this device (it opens offline) and how many media were left out.

await oryvio.copyRhythm(assetId: Id, opts: { clipIds?: Id[]; beats?: boolean } = {})

Copy the rhythm of a reference video in Media (assetId): its cuts found from its picture, and clips opts.clipIds (those on the open sequence's first visual track with any, when left out) re-timed to its shots' lengths, one after another, each as long as its media lets it be; with opts.beats, the cuts moved onto the reference's beats near them. One undo step. Resolves with the shots' lengths, how many clips were re-timed, and how many couldn't be as long as their shot.

await oryvio.editReplay(opts: { shape?: ReplayFormat; seconds?: number; endCard?: boolean; versions?: boolean } = {})

An edit replay: a short video of the open sequence's timeline being built, edit by edit, from its history (the versions saved to the account before the undo history, unless opts.versions is false, then the undo history), as an MP4 Blob made here, nothing uploaded. opts.shape 'vertical' (1080 by 1920, the default), 'square' or 'wide'; opts.seconds 15, 30 (the default) or 60; ending with "Made in Oryvio" unless opts.endCard is false. Resolves with the Blob, a file name for it, how many edits and saved versions it shows, and its length; null when the sequence has nothing on it.

Text, solids and particles

oryvio.addText(content: string, opts: { at?: number; duration?: number; preset?: string; style?: TextOver; trackId?: Id } = {})

Add a text clip saying content at opts.at (the playhead), in text preset opts.preset's look, for opts.duration seconds (the preset's), with opts.style over it: on opts.trackId, over what's there, or the lowest visual track free there above what's there then (a new top one when none is). Returns its id.

oryvio.styleText(ids: Id | Id[], preset: string) → Id[]

Give text clips ids the look of text style preset (describe().text.presets), made for the project's frame, as one undo step: what each says, how it's laid out, the characters it paints its own way, where it is and how it comes and goes kept. Returns the clips it changed: not those that had the look already.

oryvio.setSolidText(ids: Id | Id[], settings: Partial<TextSolid> = {}) → Id[]

Build text clips ids' letters in 3D, as one undo step: in material's look and lit by rig lighting (describe().text.solid), with the rest of settings (text.solid's) over them; on: false makes them flat again. Returns the clips it changed.

oryvio.addSolid(color: string, opts: { at?: number; duration?: number; trackId?: Id } = {})

Add a color clip of color (hex, like "#1f6feb") at opts.at (the playhead), opts.duration seconds long (5): on opts.trackId, over what's there, or the lowest visual track free there above what's there then (a new top one when none is). Returns its id.

oryvio.addParticles(preset?: string, opts: { at?: number; duration?: number; trackId?: Id } = {})

Add a particles clip at opts.at (the playhead), for opts.duration seconds: preset preset's look (describe().particles.presets lists them, by id or label), made for the project's frame, or the defaults'.

oryvio.setParticles(clipId: Id, settings: Record<string, EffectValue>)

Set a particles clip's settings (describe().particles.settings lists them), each outright; one with keyframes is set by them. A mask or path emitter chosen with no points is given some to start from. Returns its settings.

oryvio.applyParticlePreset(clipId: Id, preset: string)

Give a particles clip preset preset's look (by id or label): its settings, and its points when it has any, in place of the clip's, their keyframes and channels too. Where the emitter is, and its object, stay as they were.

Shapes

oryvio.addShape(preset?: string, opts: { at?: number; duration?: number; trackId?: Id; shape?: unknown; x?: number; y?: number; name?: string } = {})

Add a shape clip at opts.at (the playhead), for opts.duration seconds: preset or element preset's shape (describe().shapes.presets and describe().shapes.elements, by id or label; a rectangle when neither it nor opts.shape is given), or one of its own, opts.shape (describe().shapes.shape), its middle at opts.x, opts.y px from the frame's. An element (an arrow, badge, speech bubble, frame, line, hand-drawn mark, icon or more shape) is drawn in its own colors, each a layer of its own to recolor, its lines strokes to trim and draw on. Returns its id: its parts' numbers animate as "sh{partId}.{key}", the shape's own as "sh.{key}".

oryvio.addSvgShape(svg: string, opts: { at?: number; duration?: number; trackId?: Id; x?: number; y?: number; name?: string } = {}) → Promise<{ id: Id; notes: string[] }>

Add SVG code svg (as a vector editor copies it, or an .svg file holds it) as a shape clip, fitted inside the frame, each of its outlines a part to change and animate, its gradients, strokes and dashes kept: at opts.at (the playhead) for opts.duration seconds, its middle at opts.x, opts.y px from the frame's, named opts.name (its title, by default). Made off the page's thread. One undo step. Returns its id, and what of the SVG a shape can't take or only comes near to (its text, pictures, filters…), a sentence each.

oryvio.addSvgAsShape(assetId: Id, opts: { at?: number; duration?: number; trackId?: Id; x?: number; y?: number; name?: string } = {}) → Promise<{ id: Id; notes: string[] }>

Add SVG assetId from the media as a shape clip, as addSvgShape adds code: named for its file, by default. Returns its id and notes.

oryvio.convertToShape(clipId: Id) → Promise<{ id: Id; notes: string[]; kept: SvgKept[] }>

Convert a clip of an SVG image to a shape (describe().shapes.svg): the shape takes its place, moved, keyed, faded, animated and parented as it was, at the size its picture was fitted to; the clip stays, turned off, on the track below, with what a shape can't take (kept: its crop, masks, effects and the like). What followed the clip follows the shape. One undo step. Returns the shape's id, kept, and what of the SVG it leaves out (notes).

oryvio.setShape(clipId: Id, settings: Record<string, unknown>) → Shape

Change a shape clip's fill, stroke, offset, offsetJoin, trim, reveal or burst (describe().shapes.shape), merged into what they are (a list, such as fill.stops, given whole). A number that's keyed is set by its keys: change those instead (keyframe.set "sh.{key}"). Returns the shape as it's set.

oryvio.addShapePart(clipId: Id, kind: ShapeKind, settings: Record<string, unknown> = {}, opts: { index?: number } = {})

Add a part of kind to a shape clip, its settings as settings says (describe().shapes.part), at opts.index in the list (the end: on top). One the stroke alone draws (a line, or a path left open) turns the stroke on if it's off, so it shows. Returns its id.

oryvio.updateShapePart(clipId: Id, partId: number, settings: Record<string, unknown>, opts: { at?: number } = {}) → ShapePart

Change a shape part's settings (describe().shapes.part). A number that's keyed is set by its keys (keyframe.set "sh{id}.{key}"), and a keyed path's points by setShapePartPath. Made a path, a part becomes its outline as it is at opts.at (the playhead); made another kind, a path's points go. Returns the part as it's set.

oryvio.removeShapePart(clipId: Id, partId: number)

Remove a shape's part, with its keyframes and channels. A shape keeps one part at the least.

oryvio.moveShapePart(clipId: Id, partId: number, index: number)

Move a shape's part to index in its list (clamped to it): they're joined in order, so where it is changes what shows. Returns where it went.

oryvio.duplicateShapePart(clipId: Id, partId: number)

Copy a shape's part, with its keyframes and channels, to right after it. Returns the copy's id.

oryvio.setShapePartPath(clipId: Id, partId: number, pts: number[] | number[][], opts: { at?: number; key?: boolean } = {})

Set a path part's points (as many as it has; pts as describe().shapes.part.pts says) as they're to be at opts.at (the playhead): keyed there, all together, once they're keyed, or with opts.key; else as they are without keys. Returns the points as they are there.

oryvio.animateShapePartPath(clipId: Id, partId: number, animate: boolean, opts: { at?: number } = {})

Key a path part's shape at opts.at (the playhead), all its points together, holding it there; or with animate false, take all its points' keys away, leaving it the shape it has there.

oryvio.insertShapePartPoint(clipId: Id, partId: number, segment: number, u = 0.5)

Put a point in a path part, u of the way along segment segment (from point segment to the next), keeping its shape, at each of its keys too. Returns the new point's index.

oryvio.removeShapePartPoints(clipId: Id, partId: number, points: number[])

Take points points (their indexes) out of a path part, keys and all, as one change. A path keeps 2 at the least.

oryvio.animateShape(clipId: Id, anim: ShapeAnim, opts: { duration?: number } = {}) → Record<string, number[]>

Give a shape clip an animation preset (describe().shapes.animations): an in over its first second (or half of it, when it's shorter), an out over its last, or a loop all the way through; an in or out opts.duration seconds long instead, when it's given (half the clip at most). It keys its own settings over its stretch, taking their keys there away and keeping those outside it, so an in and an out go together. One undo step. Returns the times (clip-local seconds) it keyed each property at.

oryvio.morphShapePart(clipId: Id, partId: number, kind: ShapeKind, opts: { style?: MorphStyle; at?: number; duration?: number } = {}) → number

Turn a shape's part into a part of kind (describe().shapes.morphKinds), opts.style's way (direct): a part of that kind added right after it, off (so it's seen only in this one), as big as it and where it is; and the part's morph keyed from 0 at opts.at (the playhead) to 1 opts.duration seconds (1) later, within the clip. Change the new part (updateShapePart) to change what it turns into. Returns the new part's id.

oryvio.clearShapeAnimation(clipId: Id) → boolean

Take a shape clip's animation away: the keys animateShape and morphShapePart set (trim, reveal, break apart, fill opacity, stroke width and every part's morph), trim, reveal and burst put back as they start, its dashes stopped, and its parts no longer turning into others (the parts they turned into are kept, off). Returns whether there was any to take away.

Charts

oryvio.addChart(kind?: ChartKind, opts: { at?: number; duration?: number; trackId?: Id; chart?: unknown; data?: unknown; x?: number; y?: number; name?: string; build?: boolean } = {})

Add a chart clip of kind (bar; describe().charts.kinds) at opts.at (the playhead), opts.duration seconds long (6), on opts.trackId or the first visual track with room. It's its kind's sample made for the frame, in its middle (or opts.x, opts.y px from it), building in over its first second and a half unless opts.build is false. opts.data gives its data (as setChartData takes it), opts.chart its settings (describe().charts.chart: rows and series of its own, or anything else), not both rows and data. Returns its id.

oryvio.setChart(clipId: Id, settings: Record<string, unknown>) → Chart

Change a chart clip's settings (describe().charts.chart), its format merged into what it is. Its kind, rows and series change by their own commands. A number that's keyed is set by its keys: change those instead (keyframe.set "ch.{key}"). Returns the chart as it's set.

oryvio.setChartKind(clipId: Id, kind: ChartKind) → Chart

Make a chart clip a kind (describe().charts.kinds): its data kept (a sample's swapped for the new kind's), its look the new kind's where it's as the old kind's starts. Returns the chart as it's set.

oryvio.setChartData(clipId: Id, data: unknown, opts: { at?: number } = {}) → { rows: number; series: number; keyed: number }

Set a chart clip's data: CSV or tab-separated text (its first line its series' names when it has words over its numbers), { series: [name], rows: [{ label, values }] }, or a list of rows ({ label, values } or [label, ...values]). Its rows and series are matched to the data by their places: those kept keep their ids, colors, notes and places, and their keys; those past it go, with theirs. A value that's keyed is keyed at opts.at (the playhead), so the chart animates from its old data to the new. Data with no names over it keeps the series' names. One undo step. Returns how many rows and series it has, and how many values it keyed.

oryvio.addChartRow(clipId: Id, row: Record<string, unknown> = {}, opts: { index?: number } = {}) → number

Add a row to a chart clip at opts.index in its list (the end), as row says (describe().charts.row) and the rest as its last row (its values its last row's, or 0). Returns its id.

oryvio.updateChartRow(clipId: Id, rowId: number, change: Record<string, unknown>) → ChartRow

Change a chart row's label, note, color, values (the first as many as it gives; the rest are kept) or place (describe().charts.row). A value or place that's keyed is set by its keys: change those instead (keyframe.set "ch{rowId}.v{seriesId}"), or setChartData, which keys them. Returns the row as it's set.

oryvio.removeChartRow(clipId: Id, rowId: number)

Remove a chart's row, with its keys.

oryvio.moveChartRow(clipId: Id, rowId: number, index: number)

Move a chart's row to index in its list (0: first).

oryvio.addChartSeries(clipId: Id, series: { name?: string; color?: string } = {}) → number

Add a series to a chart after its last, named and colored as series says (describe().charts.series), each row's value for it its last series'. Returns its id.

oryvio.updateChartSeries(clipId: Id, seriesId: number, change: { name?: string; color?: string }) → ChartSeries

Change a chart series' name or color. Returns the series as it's set.

oryvio.removeChartSeries(clipId: Id, seriesId: number)

Remove a chart's series, with each row's value for it and their keys. A chart keeps one series at the least.

oryvio.moveChartSeries(clipId: Id, seriesId: number, index: number)

Move a chart's series to index in its list (0: first), each row's values with it.

oryvio.animateChart(clipId: Id, anim: ChartAnim, opts: { duration?: number; at?: number } = {}) → Record<string, number[]>

Give a chart clip an animation preset (describe().charts.animations): a build in over its first second and a half or out over its last (opts.duration seconds instead, half the clip at most), its data keyed at opts.at (the playhead) to change from, or a tour of a map's places. Each takes its own keys away over its stretch and keeps those outside it, so an in and an out go together. One undo step. Returns the times (clip-local seconds) it keyed each property at.

oryvio.clearChartAnimation(clipId: Id) → boolean

Take a chart clip's animation away: its build's and its tour's keys (its data's are kept), built whole. Returns whether there was any to take away.

Logo animation

oryvio.getLogoAnimation(clipId: Id) → (LogoAnimation & { summary: string }) | null

A clip's logo animation: its record (clip.logo) and what it is in words ("Fade in over 1 s, Glitch out over 1 s"); null when it has none.

oryvio.clearLogoAnimation(clipId: Id, end?: LogoEnd) → boolean

Take a clip's logo animation away, at end ("in" or "out") or at both: its keys, effects, masks and the clips it added. Returns whether there was any to take away.

Motion style

oryvio.getMotionStyle() → { style: MotionStyle | null; named: MotionStyleId | null; animations: StyleTally; corners: StyleTally; transitions: StyleTally }

The project's motion style (describe().motionStyle), the one way its graphics come in and go out: the ease its entrances move along and the one its exits do (left out: each preset's own), how long each takes, and how far a snap, spring or bounce goes past its place; how round its graphics' corners are (radius) and the transition its cuts take (transition), each left out for each one's own; null for none. With the named style it is (null for one of its own); and of the project's animations that play, its graphics with corners when the style has a radius and its pictures' transitions when it has a transition (but cuts and morphs not linked), how many there are (all), how many follow it (following), and how many of the rest are on locked tracks (locked).

oryvio.setMotionStyle(style: MotionStyle | MotionStyleId | null)

Set the project's motion style: a named one's id (describe().motionStyle.styles), or { enter?, exit?, duration?, overshoot?, radius?, transition?: { type, variant?, ease?, duration? } } (what's left out its default, an ease left out each preset's own, a radius or a transition left out each one's own); null for none, every animation, corner and transition kept as it is. What follows it takes its length, eases and overshoot, its radius and its transition; what's added after follows it. One undo step. Returns getMotionStyle().

oryvio.followMotionStyle() → { linked: number; locked: number }

Link everything that doesn't follow the project's motion style and could to it, as one undo step: each animation that plays, to take its length, eases and overshoot; each graphic with round corners, when the style has a radius, to be rounded so (those made square are left so); and each transition between pictures (but a cut's and a morph's), when it has a transition, to be the style's. What's on locked tracks is left as it is. (One clip's are linked with updateClip: animIn or animOut { follow: true }, followCorners: true, transition: { follow: true }.) Returns how many things were linked, and how many were left on locked tracks.

Expressions

oryvio.getExpression(clipId: Id, prop: string, opts: { at?: number } = {}) → ExpressionInfo | null

Clip clipId's formula for property prop (describe().expressions), or null when it has none: its text (src), whether it's off (kept, not worked out), its seed and phase; what it gives at opts.at (seconds on the timeline, the playhead's time by default, held in the clip) and what the property has there before it (its keys, repeats and wiggle), both in the units the editor shows; what's wrong with it ({ message, line, column }) or null; and notes on what it needs that isn't there yet.

oryvio.listExpressions(clipIds?: Id[]) → ExpressionInfo[]

Every formula on clips clipIds (all the project's by default): getExpression's, at the playhead, in the order the clips are listed.

oryvio.setExpression(clipId: Id, prop: string, src: string | null, opts: { off?: boolean; seed?: number; phase?: number } = {}) → ExpressionInfo | null

Give clip clipId's property prop a formula (describe().expressions): src, its text (up to 8000 characters), worked out in place of its value every frame; null (or only spaces) to take it off. opts.off keeps it without working it out; opts.seed makes its random(), noise() and wiggle() another way (a new one's comes from the clip, so clips given the same formula differ); opts.phase is the seconds before the clip's start its clipTime starts from. One that can't be read, names what isn't there or gives no number is refused, with its line and column. Its keys, repeats and wiggle stay: they're its value. One undo step. Returns getExpression's, or null when it's taken off.

oryvio.checkExpression(clipId: Id, prop: string, src: string, opts: { at?: number } = {}) → Omit<ExpressionInfo, 'off' | 'seed' | 'phase'>

Try formula src on clip clipId's property prop without giving it it: what it gives at opts.at (seconds on the timeline, the playhead's time by default), what the property has before it, what's wrong with it (null when nothing is) and notes, as getExpression's.

oryvio.enableExpressions(clipIds: Id[], on: boolean, opts: { props?: string[] } = {}) → number

Turn the formulas of clips clipIds (props opts.props of them, all by default) on or off, kept either way, as one undo step. Returns how many changed.

oryvio.bakeExpression(clipId: Id, prop: string, opts: { step?: number } = {}) → number

Bake clip clipId's formula for prop into keys: its value every opts.step frames (1 by default) across the clip (as it gives when on, if it's off), but those a straight line between their neighbours gives, in place of its keys, repeats, wiggle, link to the sound and formula. One undo step. Returns how many keys it has.

oryvio.applySoundPreset(ids: Id | Id[], preset: SoundPresetId) → { clip: Id; props: AnimProp[] }[]

Put ready-made reaction preset on clips ids (describe().soundLinks.presets), each in place of any link its properties had, as one undo step: bass-scale pulses its scale with the bass; kick-glow lights a glow on each kick (giving it one, dark between kicks, when it has none); band-emit gives off a particles clip's particles with the sound around 100 Hz; level-size sizes it (a text clip's text) with the loudness; beat-shake shakes it (a camera, and what it films) on each beat; kick-punch makes it a little bigger at each kick; beat-hop lifts it on each beat; hats-flicker dims it at each hi-hat tick; mids-sway tips it with the mids. One that can't go on a clip is refused, saying why, and nothing changes. Returns the properties it linked on each clip, in the order given.

oryvio.removeSoundPreset(ids: Id | Id[], preset: SoundPresetId) → number

Take ready-made reaction preset off clips ids: the links to the sound it put on their properties go (anything it added, a glow, stays). As one undo step. Returns how many clips it was on.

Lottie animations

oryvio.getLottie(clipId: Id)

Clip clipId's Lottie animation (describe().lottie), as its file has it and as the clip draws it: its format (json or dotlottie), size, frame rate and length (s); the colors it draws with, the most used first (hex, how many things each colors, and now: what the clip draws in its place); its text layers (key, name, what the file says, and now); the slots a clip can set (id, kind, the file's value, and now: its theme's or the clip's); its themes (id, name, the slots each sets), theme (the one drawn, or null) and fileTheme (the one its file starts with); its segments (name, start and end, s into it); its fonts; whether it loops; changes (clip.lottie: what the clip changes of it); and notes, each saying what of it isn't drawn as it was made.

oryvio.setLottie(clipId: Id, change: { colors?: Record<string, string | null> | null; texts?: Record<string, string | null> | null; slots?: Record<string, string | number | [number, number] | null> | null; theme?: string | null })

Change what clip clipId changes of its Lottie animation (describe().lottie), as one undo step. change.colors swaps colors it draws with, each by its hex as the file has it (getLottie's colors) for the one drawn in its place; change.texts rewrites text layers, by key, each keeping its font, size and animation; change.slots sets slots, by id, to a value of their kind; change.theme draws it with a theme of its dotLottie, by id, or '' for none. What's given is merged with what the clip changes already; a null, for one or for all of a kind, puts it back as its file has it, and theme null goes back to the theme its file starts with. Returns getLottie's.

oryvio.resetLottie(clipId: Id)

Draw clip clipId's Lottie animation as its file has it: its colors, texts, slots and theme; whether it loops is kept. One undo step. Returns getLottie's.

oryvio.setLottieLoop(clipId: Id, on: boolean)

Loop clip clipId's Lottie animation for as long as the clip is (on), or play it once and hold its last frame. Stopping it looping, a clip that starts past the animation's end starts where it showed, in the animation. One undo step. Returns getLottie's.

oryvio.playLottieSegment(clipId: Id, segment: number | string) → { in: number; duration: number }

Play segment segment of clip clipId's Lottie animation (by its index in getLottie's segments, or its name) from its start: the clip slipped to it and, when it's longer than the segment plays at its speed, cut to that length. Only for a clip played forward at a steady speed. One undo step. Returns the clip's in point and duration.

oryvio.saveLottie(clipId: Id, as: 'json' | 'lottie' = 'json', opts: { save?: boolean; text?: boolean } = {}) → Promise<{ name: string; size: number; text?: string }>

Save clip clipId's Lottie animation as a Lottie file, as "json" (Lottie JSON) or "lottie" (dotLottie), drawn as the clip draws it: its colors, texts and slots, with its theme's values in them. It's the whole animation: where the clip's cut and how fast it plays aren't saved. Downloaded unless opts.save is false. Returns its name and size (bytes), and with opts.text a JSON file's text.

await oryvio.exportMotion(format: MotionFormat = 'json', opts: { seqId?: Id; range?: MotionRange; from?: number; to?: number; fps?: number; background?: boolean | string; save?: boolean; text?: boolean } = {})

Export a sequence (the open one by default) as motion graphics in format (describe().lottie.formats): "json" (Lottie JSON, its pictures in it), "lottie" (dotLottie) or "svg" (an animated SVG). Its shapes, texts (as the outlines of their letters), solids and pictures, and the sequences nested in it, each clip a layer, placed and keyed as it plays. What's exported is opts.range (all, marks: its In to Out, selection: the span of its clips selected, frame: the frame at the playhead, as a still), or from opts.from to opts.to (seconds on it); the whole of it by default. opts.fps is its frame rate (the project's, up to 120, or 30, by default), at most 3600 frames in all. opts.background draws it on the project's background color (true) or on a hex color; left out, it's see-through. Downloaded unless opts.save is false. Returns its name, size (bytes), how many layers and frames it is, the span exported, what of it wasn't (report: notes, and lost, clip by clip), and with opts.text a JSON file's or an SVG's text.

Pan and zoom

oryvio.panAndZoom(ids: Id | Id[], preset: PanZoomPreset | 'vary', opts: { amount?: number; toward?: boolean; depth?: number } = {}) → Promise<(PanZoom & { clip: Id; summary: string })[]>

Pan and zoom clips ids (images and videos, on unlocked tracks; describe().panZoom) with preset preset, or with "vary" a preset each that goes with its picture's shape and differs from the one before it, in the order they play. Each is a window the frame's shape moving across the picture and zooming as the clip plays, filling the frame, in place of what it had. opts.amount (0..1, ${PANZOOM_AMOUNT} by default) is how strong the moves are; opts.toward (true by default) pushes in towards, and pans at the height of, what stands out most in each picture, read from it (about its middle where nothing does, or it can't be read). opts.depth (0..1) gives each image's move depth, as setPanZoom's does (videos' have none, and only videos given some is refused); left out, each image keeps what it had. One undo step. Returns each one's pan and zoom, as getPanZoom does, in the order they play.

oryvio.setPanZoom(clipId: Id, set: { from?: Partial<PanZoomFrame> | 'fill' | 'whole' | 'same'; to?: Partial<PanZoomFrame> | 'fill' | 'whole' | 'same'; ease?: PanZoomEase; curve?: [number, number, number, number]; reverse?: boolean; depth?: number; turn?: { from?: Partial<PanZoomTurn>; to?: Partial<PanZoomTurn> } | null } | null) → (PanZoom & { clip: Id; summary: string }) | null

Change clip clipId's pan and zoom (an image's or a video's, on an unlocked track): set.reverse plays it backwards first (its ends swapped, its ease turned round); set.from and set.to set an end's x, y and zoom (those left out kept), or make it "fill" the frame from the picture's middle, show the "whole" picture, or be the "same" as the other end (a still view); set.ease and a custom one's set.curve how it eases; set.depth (0..1, 0 for none; an image's only) how much its near parts slide past its far ones as it pans, and grow faster as it zooms in, its depth found in the picture, which changes nothing of the move itself; set.turn how each end's view is turned in 3D, in degrees (-${TURN_MAX}..${TURN_MAX}; from and to each of x, tilting the picture's top away, and y, turning its right side away, those left out kept), zoomed in as far as keeps the frame covered, or null for both face on. Ends are kept inside the picture; an end made the "same" as the other is turned as it is too. A clip with none starts from a still view filling the frame; a piece of a split clip's move is made its own first (but by depth alone). null takes it off. One undo step. Returns it as getPanZoom does, or null once it's off.

oryvio.getPanZoom(clipId: Id) → (PanZoom & { clip: Id; summary: string; ends: { from: PanZoomFrame; to: PanZoomFrame }; turns: { from: PanZoomTurn; to: PanZoomTurn } }) | null

Clip clipId's pan and zoom: its record (clip.panZoom), what it is in words ("Push in, 100% to 145%, easing in and out"; "Orbit left, 104% to 104%, turning 26° left, easing in and out"), and the ends it plays from and to and how its view's turned at each, as they're shown: inside the picture, a split piece's its own part of the move, face on as { x: 0, y: 0 }. null when it has none.

oryvio.clearPanZoom(ids: Id | Id[]) → Id[]

Take the pan and zoom off each of clips ids that has one (none on a locked track). One undo step. Returns the clips it changed.

The project's own fonts

oryvio.getFonts()

The project's own fonts: font files added to it, each family set in by its name as describe().text.fonts' are (a text clip's fontFamily, a chart's font, a caption track's style). Each with its kind, whether text is set in it, whether its files are on this device (files: ready, partial, missing, or loading while they're read; text in a font whose files aren't here is drawn, and exported, in a similar font: addFonts with them brings it back), and its files: each a style (its weight, a range for a variable font, and italic) and whether it's here. And how many fonts a project, and files a font, can have.

oryvio.addFonts(files: Blob | Blob[], opts: { into?: Id } = {}) → Promise<FontsImported>

Add font files to the project's fonts: Files or Blobs of .ttf, .otf, .woff or .woff2 fonts, each to the family its own tables name (a WOFF 2 file's, its file's name, as "Family-BoldItalic.woff2"), new when the project hasn't it, or all to font opts.into. A file of a style its family has takes that one's place; one the project has already isn't added again, but is brought back to this device when it wasn't on it. The files are kept on this device, as media is (a package carries them). One undo step. Returns the families added (added), those files went to (fonts), how many files joined families there (joined), how many were brought back (relinked), the families named from files' names (guessed: look them over, renameFont), and why each file not added wasn't.

oryvio.renameFont(id: Id, name: string)

Rename project font id to name: the text, charts and caption tracks set in it are set in it by its new name. Its name can't be another font's, the project's or bundled. One undo step. Returns the font.

oryvio.setFontCategory(id: Id, category: ProjectFont['category'])

Set what kind of font project font id is (sans, serif, display, script or mono): where it's listed, and the kind of font text in it is drawn in when its files aren't here. One undo step.

oryvio.removeFont(id: Id)

Take project font id out of the project: text set in it is drawn in a similar font, until another's chosen (or undo). One undo step.

oryvio.removeFontFile(id: Id, hash: string)

Take the file hash (getFonts' faces) out of project font id: its last takes the font out, as removeFont. One undo step.

Color and LUTs

oryvio.getLuts()

The LUTs there are: the built-ins, the project's own with whether their numbers are on this device (ready, missing: import its .cube file again; loading; or unread, not used yet) and whether the project uses them, its LUT folders, and this device's starred LUTs and display LUT, and the project's output LUT.

oryvio.importLut(source: string | Blob, opts: { name?: string; folder?: string } = {}) → Promise<Lut>

Import a .cube file as one of the project's LUTs: source its text, or a File or Blob of it, into opts.folder ('' the top, the default; made, with its parents, when it isn't there), named opts.name (its TITLE, or the file's name, by default). A LUT the project has already (the same numbers) isn't added again: that one's returned, its numbers brought back to this device when they weren't on it. One undo step. Returns the LUT.

oryvio.applyLut(ref: string, ids?: Id[], opts: { amount?: number } = {}) → { clipId: Id; effectId: number }[]

Put LUT ref on clips ids (the selected ones by default): in each one's LUT effect (its last that's on, turned on), or a new lut effect last; opts.amount (0..1) sets that effect's amount. One undo step. Returns each clip with its LUT effect's id.

oryvio.setInputLut(assetIds: Id | Id[], ref: string | null, amount = 1)

Set the input LUT of media assetIds (video and pictures), what their picture goes through first, before their clips' effects: ref at amount (0..1, all of it by default); null takes it away. One undo step.

oryvio.setOutputLut(ref: string | null, amount = 1)

Set the project's output LUT, every frame drawn through it last, in the preview and exports: ref at amount (0..1, all of it); null takes it away.

oryvio.getColor()

The project's color space, every field there, and how each piece of media with a picture is read in it: its file's color tags, what it's badged as, how it's told to be read (interpret), and so what it's read as.

oryvio.setViewer(opts: { hdr?: boolean; zebra?: Zebra })

Set what the viewer shows, on this device alone (exports never have it): hdr true shows an HDR project as HDR where it can be (WebGPU, on an HDR screen), false as an SDR export has it; zebra stripes light brighter than SDR's white ('white', 203 nits), 1,000 nits ('bright') or the project's peak ('peak'), or none ('off'): an SDR project's, or one drawn without WebGPU, stripe what nears white, whichever's set. Returns what it shows.

oryvio.getScopes()

The program's frame at the playhead measured as the scopes measure it, whether they're open or not: read as the signal an export in the project's color codes (space; Canvas 2D, which is SDR, measures Rec.709), the Display LUT included. Its luma (Y′, 0 to 1: least, most, average), the most of each of R′, G′ and B′, how much of it is clipped and black, and for an HDR project its brightest pixel's light in nits and how much of it is brighter than SDR's white (203 nits). Null when there's no frame to measure.

oryvio.setProjectColor(color: ProjectColor | ProjectColor['space'] | null)

Set the project's color space: a space id (rec709, p3, rec2020, pq, hlg), or { space, peak?, toneMap? } (a PQ project's peak in nits; how media brighter than it, or HDR media in an SDR project, is tone-mapped to fit); null makes it Rec.709. What's not said is the default. One undo step. Returns the color, every field there.

oryvio.interpretColor(assetIds: Id | Id[], interpret: (Omit<ColorInterpret, 'expand'> & { expand?: number | boolean }) | null)

Tell media assetIds (video and pictures) how their picture's color is read when it isn't as their files say: interpret { gamut?, transfer? (ids in describe().color.gamuts and transfers: log footage tagged Rec.709, say), peak? (a PQ picture's brightest, in nits), expand? (SDR highlights in an HDR project expanded to this many nits, or true for 400) }; null reads them as their files say. One undo step.

oryvio.setRawSettings(assetIds: Id | Id[], raw: { [K in keyof RawDevelop]?: RawDevelop[K] | null } | null) → Record<Id, ResolvedDevelop>

Set how camera raw photos assetIds (DNG, CR2, NEF, ARW, RW2, ORF, PEF, RAF, and CinemaDNG sequences) are developed, without touching their files: raw { exposure? (stops, -5 to 5, on top of the file's baseline), wb? ('shot' as the camera set it, 'auto' estimated from the picture, or 'custom'), temperature? (kelvin, 2000 to 50000) and tint? (-150 green to 150 magenta), for a custom white balance (either alone makes it custom), recovery? (0 clips highlights, to 1 rebuilds clipped channels and rolls them off into white), demosaic? ('auto', 'best' always full size, 'fast' each sensor cell a pixel) }. Settings left out keep what each has; null as a setting's value puts it back as shot, and raw null develops them all as shot. One undo step. Returns each one's settings, every field there. Their media's raw (in findMedia) says how each is developed, and rawFile what its file says: its camera, the white balance shot at, and where its color comes from ('dng', 'camera', or 'generic': a typical camera's, approximate). Pro's, as importing raws is: on the free plan they're refused, raw media kept shown as its embedded preview, its settings as they are.

oryvio.setDisplayLut(ref: string)

Set the viewer's display LUT, on this device only ('' for none): the preview shows every frame through it, and exports never have it.

oryvio.starLut(ref: string, on = true) → string[]

Star LUT ref on this device (on false unstars it): starred LUTs are listed first in the LUTs bin and LUT lists. Returns the starred LUTs.

oryvio.makeLut(clipId: Id, opts: { size?: number; name?: string; folder?: string; at?: number } = {}) → Promise<{ lut: Lut; used: number; left: string[] }>

Make a LUT of clip clipId's color effects as they are at opts.at (clip seconds; where the playhead is by default): opts.size points a side (describe().luts.makeSizes; 33), named opts.name (its name and "grade"), in opts.folder. Effects a LUT can't hold (those that blur or move the picture, or change part of it) are left out, and said in left. The project's own LUT of the same numbers is returned if it has one. One undo step.

oryvio.updateLut(id: Id, patch: { name?: string; folder?: string }) → Lut

Rename LUT id or move it to another folder ('' the top). Returns it.

oryvio.removeLut(id: Id)

Take LUT id out of the project, and off every effect, input LUT and the output LUT that names it. Undo brings it back.

oryvio.exportLut(ref: string) → Promise<string>

LUT ref (a built-in or one of the project's) as a .cube file's text. Throws when its numbers aren't on this device.

oryvio.addLutFolder(path: string)

Add a LUT folder: "Name" at the top, or "Parent/Name" in a folder there is.

oryvio.renameLutFolder(path: string, to: string)

Rename or move LUT folder path to to, with all in it.

oryvio.removeLutFolder(path: string)

Take LUT folder path away: what was in it goes up to its parent.

3D objects and lights

oryvio.addModel(shape?: ModelShape, opts: { at?: number; duration?: number; trackId?: Id; preset?: string; model?: unknown; x?: number; y?: number; name?: string; file?: Id } = {})

Add a 3D object clip at opts.at (the playhead), opts.duration seconds long (5), on opts.trackId or the first visual track with room: a shape (describe().models.shapes; a cube), or opts.preset's solid of a material (describe().models.presets), sized for the frame and turned so its sides show, its middle at opts.x, opts.y px from the frame's. opts.model gives settings over it (describe().models.model), as setModel takes them. opts.file (or shape 'mesh', the model imported last) makes it of a model file in the project (an asset of kind 'model'), in its proportions, named for it. Returns its id.

oryvio.addLight(kind?: LightKind, opts: { at?: number; duration?: number; trackId?: Id; light?: unknown; x?: number; y?: number; z?: number; name?: string } = {})

Add a light clip, a kind light (describe().lights.kinds; a spot), from opts.at for opts.duration seconds (5), else over the marked range, the selected clips or five seconds from the playhead: on opts.trackId, else the top visual track when it's free there, else a new track on top, so it's above the 3D text and objects it lights. Put where a new light is (above to the left, in front of the frame) pointing at the frame's middle, opts.light's settings over it (describe().lights.light), as setLight takes them; opts.x, opts.y and opts.z place it. Returns its id.

oryvio.setLight(clipId: Id, settings: Record<string, unknown>) → Light3D

Change a light clip's light (describe().lights.light): its kind first (as the inspector changes it), then the rest of what's given over it. A clip named for its old kind is named for its new one. A number that's keyed is set by its keys: change those instead (keyframe.set "lt.{key}"). Where it is and which way it's turned are its transform's. One undo step. Returns the light as it's set.

oryvio.setModel(clipId: Id, settings: Record<string, unknown>) → Model3D

Change a 3D object clip's object (describe().models.model): a shape, material or lighting first (as the inspector changes them), then the rest of what's given over those. A clip named for its old shape is named for its new one. A number that's keyed is set by its keys: change those instead (keyframe.set "md.{key}"). One undo step. Returns the object as it's set.

Editing

oryvio.split(at: number, clipIds: Id[] = [], opts: { linked?: boolean } = {})

Split clips at a time: the given clips (each must span it) and, unless linked is false, the clips linked to them that span it too; or every unlocked clip under it. Right-hand pieces of linked clips stay linked to each other. Returns the ids of the new right-hand clips.

oryvio.setParent(clipIds: Id[], parentId: Id | null, opts: { at?: number; rotation?: boolean; scale?: boolean; opacity?: boolean; tip?: number | null; tracker?: number | null; pin?: 'corner' | 'mesh' | null } = {})

Make clips follow parentId (a visual clip in their sequence) from time at (the playhead when left out), where they are then; with null, let them go of what they follow, keeping them where they're seen at at. A clip whose position, turns or scale are animated can't take in its parent's turn or scale exactly when let go: it goes back to where its own keyframes put it. rotation, scale and opacity say what it takes from its parent. With tip, the id of one of the parent's paint effects, it follows the tip of what that draws instead, turning as it heads (null: the parent itself again). With tracker, the id of one of the parent's trackers, it follows that instead: carried by its shape's middle, turns and scale; or, with pin ('corner' or, on a surface tracker, 'mesh'), pinned to it, its picture's corners on the tracker's pin or bent over its grid, its own transform having no say. Returns the ids it changed.

oryvio.deleteClips(ids: Id[], opts: { ripple?: boolean } = {})

Delete clips. With ripple, later clips close the gaps, on their tracks and on sync-locked ones; clips linked to them go too.

oryvio.trimEdit(clipId: Id, edge: Edge, delta: number, mode: TrimMode = 'trim', opts: { linked?: boolean } = {})

Move one edge of a clip by delta seconds. mode "trim" moves only that edge (stopping at the next clip), "ripple" also moves everything after it (on sync-locked tracks too), "roll" moves the cut between the clip and the one against it. Clips linked to it trim with it unless linked is false. Returns the clip's new edges.

oryvio.multiTrim(points: TrimPoint[], delta: number, opts: { linked?: boolean } = {})

Trim several edit points at once, one per track, by the same delta seconds, each in its own mode: a ripple moves what follows on its own track, a roll moves the cut, a trim moves only the edge. Ripples on either side of a cut on different tracks go opposite ways (an asymmetric trim). Sync-locked tracks without a point follow the first rippled point, and every point stops where the first reaches a limit. Clips linked to a point trim with it unless their track has a point or linked is false. Returns how far the edges moved and, per track, how far what follows the point moved.

oryvio.selectEditPoints(points: TrimPoint[])

Select edit points, the first leading, as if Shift-clicked in the timeline; [] clears them. The trim keys then move them all.

oryvio.extendTo(ids: Id[], t: number, edge?: Edge)

Move the nearest edge of each clip (or edge) to time t, rolling when a clip is against it.

oryvio.slip(ids: Id[], delta: number)

Show earlier (negative) or later frames of the clips' media, keeping them in place.

oryvio.slide(ids: Id[], delta: number)

Move clips between their neighbors, which trim to make room.

oryvio.setMarks(inPoint?: number | null, outPoint?: number | null)

Set the open sequence's in and out points in seconds (null clears one; undefined leaves it).

oryvio.setSourceMarks(assetId: Id, inPoint?: number | null, outPoint?: number | null)

Mark the part of a media file that source edits, inserts and drags use, in its own seconds. Pass null to clear a mark, or leave it out to keep it. Stills have no marks.

oryvio.trimToRange(ids: Id[] = [], range?: Range)

Trim clips (and their linked partners) to a range, the marked one by default, leaving gaps. With no ids, trims what crosses the range on the targeted tracks.

oryvio.deletePart(ids: Id[], keep: 'audio' | 'video')

Delete the video or the audio of clips and their linked partners, keeping the other half in place. keep "audio" pulls a video's own sound out onto an audio track before removing the pictures; keep "video" removes audio clips and mutes the video's own sound.

oryvio.syncOffsets()

Frames each clip on the open sequence is out of sync with its linked partner, for the ones that are.

oryvio.resync(clipId: Id, how: 'move' | 'slip' = 'move')

Bring a clip back into sync with its linked partner: "move" shifts it along its track, "slip" changes which media it shows.

oryvio.lift(range?: Range)

Remove a range (the marked one by default) from the targeted tracks, leaving a gap.

oryvio.extract(range?: Range)

Remove a range (the marked one by default) from the targeted tracks and close it up.

oryvio.trimToPlayhead(side: 'previous' | 'next', opts: { at?: number; ripple?: boolean } = {})

Remove from time t back to the previous edit, or on to the next one, on the targeted tracks. Ripples by default.

oryvio.sourceEdit(assetId: Id, opts: { mode?: SourceEditMode; at?: number; sourceIn?: number; sourceOut?: number } = {})

Edit media into the open sequence at at (or the in point) on the targeted tracks, with its audio linked. mode "insert" pushes later clips along; "overwrite" replaces what's there; "append" adds it after the end. sourceIn/sourceOut pick part of the media, in its own seconds; without them, the asset's source marks do. Returns the new clip id.

oryvio.replaceMedia(clipId: Id, assetId: Id)

Swap a clip's media for another asset, keeping its place, length and look. Returns whether it had to get shorter.

oryvio.matchFrame(t: number, clipId?: Id)

What's on screen at time t in the open sequence: the asset (and its frame) or nested sequence it comes from.

oryvio.setEnabled(ids: Id[], enabled: boolean)

Turn clips off (skipped in preview and export, but kept) or back on.

oryvio.group(ids: Id[])

Group clips so they select together. Returns the group id.

oryvio.ungroup(ids: Id[])

Take clips out of their groups.

oryvio.nest(ids: Id[], name?: string)

Move clips into a new sequence, leaving one clip that plays it. Returns both ids.

oryvio.breakApart(clipId: Id)

Replace a nested sequence clip with copies of the clips inside it. Returns their ids.

oryvio.joinThroughEdits(ids?: Id[])

Join cuts that change nothing (same media, continuous) among the clips, or in the whole sequence. Returns how many.

oryvio.closeGaps(ids: Id[])

Close the gaps before each clip.

oryvio.removeEmptySpace()

Close every stretch of time that is empty on all tracks.

oryvio.rippleDeleteGap(t: number, trackIds?: Id[])

Close the gap at time t on the given tracks (the targeted ones by default). Returns the gap that was closed.

oryvio.moveClip(id: Id, start: number, trackId?: Id)

Move a clip; anything it lands on is trimmed away (overwrite edit).

oryvio.trimClip(id: Id, edges: { start?: number; end?: number })

Trim a clip's edges to new timeline times (clamped to the available media). Returns the resulting edges.

oryvio.updateClip(id: Id, patch: ClipPatch)

Change clip id's fields (describe().clip) by patch, as one undo step. Throws when its track is locked.

Sequences

oryvio.openSequence(seqId: Id)

Open a sequence for editing; commands that take a time then work in it.

oryvio.newSequence(name?: string)

Add an empty sequence (tracks V2, V1, A1, A2) after the others. Returns its id; openSequence to edit in it.

oryvio.duplicateSequence(seqId: Id = getSeq(), name?: string)

Copy a sequence (the open one by default) with its tracks, clips, markers and marks. Returns the copy's id.

oryvio.branchSequence(seqId: Id = getSeq(), opts: { kind?: BranchKind; name?: string } = {})

Branch a sequence (the open one by default), as Git branches: a copy of it as it is, its clips, tracks, markers and mixer, that knows what it was made from and what each thing in it is a copy of. kind 'revision' (the default) is listed under it, to try changes on: a client's notes, a grade, a mix; 'version' is listed beside it, named with the next number (V3 after V2). Without a name, a revision's is its original's with "revision" after it. Returns the branch's id; openSequence to edit in it.

oryvio.markFinal(seqId: Id = getSeq(), on = true)

Make a sequence (the open one by default) its family's final cut, in place of any other of its family; with on false, no longer final. A family is a sequence and the branches made from it, and theirs.

oryvio.compareSequences(a: Id, b: Id)

Compare two sequences, as Git compares two branches. Each row is something different: its key (the same whichever way round), kind (clip, marker, track, bus or settings), status (changed, only-a, only-b, deleted-in-a or deleted-in-b, the last two for what one has deleted since the other was made from it, or both from one), the parts of it that differ (edit, picture, color, audio, words, details), whether a clip moved or was trimmed, together (the same for linked clips' rows, which are brought together), where it is in each in seconds, its id in each, and its label. relation is how the two are related: a-from-b, b-from-a, family (both made from one) or loose (of no family: clips are matched by their media and where they are, tracks by name and place).

oryvio.bringOver(into: Id, from: Id, opts: { rows?: string[]; aspect?: 'all' | CompareAspect } = {})

Bring what's chosen of sequence from into sequence into, as Git merges a branch, in one step (one undo). By default it's what compareSequences(into, from) has new in from (only-b), what from deleted (deleted-in-b) and what's changed, made as it is in from; what's only in into stays. rows: the keys of the rows to bring instead (a linked clip's come with it). aspect: one part of each alone, one of all, edit, picture, color, audio, words or details. What's brought where it is in from makes room for itself, trimming what's in the way; a track deleted that still has clips on it is kept. Returns the counts (added, deleted, changed, trimmed, tracksKept) and the rows that couldn't be brought, and why.

oryvio.sequenceTree()

The project's sequences as their families' trees, as the Sequences list shows them: each sequence, its revisions under it (depth one more, parent its id), next versions beside what they were made from. kind is the branch's, or null for a sequence of its own; orphan says what it was made from has been deleted; family is the id of its family's first; final marks the family's final cut.

oryvio.renameSequence(seqId: Id, name: string)

Rename a sequence, and the clips nesting it that still go by its old name. Whitespace is tidied; names over 80 characters are cut.

oryvio.getTimecode(seqId: Id = getSeq())

A sequence's timecode (the open one by default): start, the timecode of its first frame as it reads ("01:00:00;00" drop frame, with a semicolon; "01:00:00:00" non-drop); drop, whether it counts drop frame, as it does at 29.97 and 59.94 fps unless it's set not to (canDrop says whether the project's rate can); and fps. Every timecode the API gives of it (getState's, timecodeAt's) counts by it, and its exports carry it.

oryvio.setTimecode(opts: { start?: string; drop?: boolean }, seqId: Id = getSeq())

Set a sequence's timecode (the open one by default) as one undo step: opts.start, its first frame's timecode, "HH:MM:SS:FF" (or ";" before the frames), from 00:00:00:00 to 23:59:59 ("01:00:00:00" as broadcast masters start, "00:59:50:00" with bars and a slate first); opts.drop, whether it counts drop frame, at 29.97 and 59.94 fps only. What's left out stays as it is. A start is kept as it's written, so it stays 01:00:00:00 when the count or the project's rate changes. Returns getTimecode's.

oryvio.timecodeAt(t: number, opts: { seqId?: Id; length?: boolean } = {}) → string

Time t, seconds into a sequence (the open one by default), as its timecode: from its start, drop frame as it counts ("01:00:05;00"); with opts.length, as a length, from 00:00:00:00. One before 00:00:00:00 has a minus sign.

oryvio.readTimecode(text: string, opts: { seqId?: Id } = {}) → number

A time typed as the editor reads it, in a sequence's own frame of reference (the open one by default): a timecode of its, from its start and drop frame as it counts ("01:00:05;00" is 5 seconds in when it starts at 01:00:00;00; a label drop frame skips is the frame after it); one before its start as a time from it ("5:10"); digits alone filled from the right ("110"); or seconds ("2.5s"). Returns seconds into it, on a frame.

oryvio.setMainSequence(seqId: Id)

Make a sequence the main one: it plays when the project opens. exportVideo exports the open sequence unless its seq says otherwise.

oryvio.deleteSequence(seqId: Id)

Delete a sequence (not the main one) and the clips elsewhere that nest it. Returns how many of those went.

oryvio.nestSequence(seqId: Id, opts: { at?: number; trackId?: Id } = {})

Place a sequence in the open one as a nested clip, at at (the playhead by default). With trackId it covers what's there on that track; otherwise it goes on the lowest video track with room. Returns the clip id.

oryvio.importTimeline(text: string | Uint8Array | ArrayBuffer, name = 'timeline.fcpxml', opts: { adopt?: boolean } = {})

Make sequences of a timeline from another editor, as one undo step: text is a Final Cut Pro XML (.fcpxml), Premiere Pro XML (xmeml .xml), CMX 3600 EDL (.edl) or OpenTimelineIO (.otio) file's contents, told by what it says before name's extension; or an AAF's (.aaf) bytes, from Avid Media Composer, Pro Tools, Premiere Pro or DaVinci Resolve, as a Uint8Array, an ArrayBuffer or base64 text. Its sequences come in with those nested in them, and the one it opens to is opened. Its media is the project's of the same name, or added offline to relink (relinkFiles). The project takes the timeline's frame size and rate while it has no clips, or with opts.adopt. Returns the sequence opened, all those made, how many clips, the offline media added, and what didn't carry over (report: notes, and lost, clip by clip). An AAF is Pro's, both ways.

oryvio.exportTimeline(format: F = 'fcpxml' as F, opts: { seqId?: Id; mediaFolder?: string; binFolders?: boolean; drop?: boolean; track?: number; save?: boolean; audio?: AafAudio; handles?: number } = {}) → F extends 'aaf' ? Promise<AafExported> : TimelineExported

A sequence (the open one by default), with those nested in it, as a timeline for another editor in format (fcpxml, xmeml, aaf, edl or otio: describe().interchange.formats). opts.mediaFolder is the absolute folder its media's files are in on the computer that opens it, in the bin's folders inside it with opts.binFolders (as copying the used media to a folder lays them out); opts.drop writes drop-frame timecode at 29.97 and 59.94 fps, or not (by default, as each sequence counts: getTimecode); it starts at the sequence's start timecode; an EDL's opts.track is the picture track to write, from 0 for V1. With opts.save, it's downloaded too. Returns the file's text and name, and what doesn't carry over (report: notes, and lost, clip by clip).

An AAF (for Avid Media Composer and Pro Tools) resolves, as its sound is made first: each sound clip's media as Broadcast WAVs of what it uses with opts.handles seconds either side (2 by default), beside it in a ZIP (opts.audio 'referenced', the default) or held in it ('embedded'); media not on this device is named, not made. It resolves the AAF's name and size, its base64 (when it's at most 32 MB), what's saved (the AAF, or the ZIP and the files in it) and the report.

Version history and snapshots

await oryvio.versionHistory()

The open project's version history, as Version history lists it: the version it's at (current; its id is null until it's kept, as a snapshot keeps it), and those kept before it, newest first. Each has id, at (when it was saved, ms since 1970), revision and name: null for one kept automatically, for 30 days; named ones, snapshots among them, are kept until they're deleted. Only for a project on the account.

await oryvio.takeSnapshot(name?: string, opts: { rename?: boolean } = {})

Take a snapshot of the open project: the version it's at, named name ("Snapshot" and the time, by default), so it's kept until it's deleted, once what's unsaved is on the account. Resolves { taken, name }: taken false, with the name it has, when nothing's changed since the version it's at was named; opts.rename names it name instead then.

oryvio.restoreSequence(versionId: string, seqId: Id)

Put sequence seqId back as it was in version versionId (versionHistory lists them), as one undo step, the rest of the project as it is; one deleted since is brought back. What it needs comes with it: sequences nested in it deleted since (nested), and media (assets, reconnected from this device's storage where it's there), LUTs and fonts the project no longer has. Resolves { seqId, nested, assets, left: nests left out, as they'd put it inside itself or nest too deep }, or null when it's as it was then.

oryvio.sequenceRevisionFrom(versionId: string, seqId: Id)

A revision of sequence seqId as it was in version versionId, listed under it, as one undo step: to compare with it (compareSequences) and bring over what's wanted. Named after it and the version. Resolves as restoreSequence does, seqId the revision's. It must be in the project now, and not a thumbnail.

Templates

oryvio.templates()

The templates (describe().templates): each one's settings (params) with their kinds, defaults and limits, the frame it's designed for, whether it's drawn over footage, and palettes of its colors that go together. pro: one of Pro's, which an account on the free plan can't add; those already in a project keep working. Group "thumbnail"'s are stills: newTemplateSequence makes a thumbnail of one.

oryvio.addTemplate(id: string, opts: { params?: Record<string, unknown>; at?: number; trackId?: Id } = {})

Put template id (templates()) in the open sequence at opts.at (the playhead), built with opts.params over its defaults for the project's frame: as a sequence of its own, shown there by a clip. One drawn over footage goes on the lowest video track above what's there then (or a new top one); opts.trackId puts it on that video track. In a thumbnail it's a layer showing it once all of it's in. One undo step. Returns the clip's id and the sequence's.

oryvio.newTemplateSequence(id: string, opts: { params?: Record<string, unknown>; name?: string } = {})

A new sequence of template id, after the others, built with opts.params and named opts.name (the template's): a thumbnail for one of group "thumbnail". Returns its id; openSequence to edit in it.

oryvio.getTemplate(id: Id)

What the template id was made from is set to: id a sequence made from one, a clip showing it or one of its parts. Its settings as they take effect, the frame it's laid out for, and its parts' clips by part name (a part split has more than one; one deleted, none).

oryvio.setTemplate(id: Id, params: Record<string, unknown> = {}, opts: { relayout?: boolean } = {})

Change the settings of the template id was made from (as getTemplate takes it): params over what they are. Its parts are built again with them, all that's been done to them since kept: one that's been moved stays that far from where the template puts it, one retimed stays that much off its beat, one restyled keeps its style, and one deleted stays deleted (until its text is set again). A text setting not in params is what its part says now. Parts on locked tracks are left; clips showing it are made as long as it is, where there's room. opts.relayout lays it out for the project's frame as it is now. One undo step. Returns getTemplate's.

oryvio.resetTemplate(id: Id)

Make every part of the template id was made from again as the template makes it, its settings kept: what's been done to them is lost, parts on locked tracks left. One undo step. Returns getTemplate's.

Thumbnails

oryvio.thumbnails()

The project's thumbnails (describe().thumbnails): each one's id, name, whether it's open, whether it's the project's picture on the projects page (cover), and its layers, the one in front first: each clip's id, name (as the layers list and the checks say it: a text that's kept its style's name, by its first line of words) and type, its track's id, whether that's hidden or locked, whether it's seen (in the picture, its track shown), and where it's drawn (box, in the frame's pixels), when it is.

oryvio.newThumbnail(opts: { name?: string; color?: string; from?: { seq?: Id; at?: number } } = {})

Make a thumbnail after the other sequences, named opts.name ("Thumbnail", "Thumbnail 2", …), and open it: on a background of opts.color (hex; a dark grey), or with opts.from the frame of sequence from.seq (the open one) at from.at seconds (the playhead), the video or picture on top there, as its layer. What's added while it's open (addText, addShape, insertAsset, …) is laid in as a layer over the others, still. One undo step. Returns its id.

oryvio.newThumbnailVariant(seqId?: Id)

A copy of thumbnail seqId (the open one), named after it ("Name B", "Name C", …), to try against it; it's opened. One undo step. Returns its id.

oryvio.setThumbnailCover(seqId: Id, on = true)

Make thumbnail seqId the project's picture on the projects page, in place of any other's; on false stops it being. One undo step. Returns whether it changed.

oryvio.alignLayers(ids: Id[], edge: AlignEdge, opts: { toFrame?: boolean } = {})

Line clips ids of the open sequence up by edge (describe().thumbnails.align) as they're seen (a thumbnail's picture; elsewhere, the frame at the playhead): with each other, by the box round them all, or with the frame when opts.toFrame or there's one. Those on locked tracks or placed by a parent stay, and the others line up to them. One undo step. Returns whether any moved.

oryvio.distributeLayers(ids: Id[], axis: DistributeAxis)

Space clips ids of the open sequence (three or more seen) out evenly across ('x') or down ('y'), the outermost staying where they are. One undo step. Returns whether any moved.

oryvio.arrangeLayers(ids: Id[], how: thumbStore.Arrange)

Move layers ids of the open thumbnail 'forward' or 'backward' a place, or to the 'front' or the 'back', kept in their order among themselves; one held at the end stays. One undo step. Returns whether any moved.

oryvio.moveLayer(clipId: Id, index: number)

Move layer clipId to place index among its thumbnail's layers (0 in front, as thumbnails() lists them). One undo step. Returns whether it moved.

oryvio.setLayer(clipId: Id, patch: { name?: string; hidden?: boolean; locked?: boolean })

Change layer clipId: its name, and whether it's hidden or locked (its track is). One undo step each. Returns whether anything changed.

oryvio.pickLayerFrame(clipId: Id, t: number)

Show video or nested-sequence layer clipId from t seconds into what it shows: the frame that's its picture. One undo step. Returns whether it changed.

await oryvio.checkThumbnail(seqId?: Id)

Check thumbnail seqId (the open one) as YouTube's feeds show it (describe().thumbnails.checks): what won't read at the smallest it's shown. Each check's kind, severity ('problem', 'warning' or 'tip'), the layers it's about (ids), what's found (say), why it matters and what fixes it (detail), and the fix fixThumbnail makes, when there's one; counts of each severity; and partial, when what's behind its words couldn't be drawn: why, those not checked.

oryvio.fixThumbnail(clipId: Id, fix: ThumbFix)

Make fix fix (a check's, from checkThumbnail) to layer clipId of the open thumbnail: { kind: 'grow', scale } makes it bigger about its anchor, up to 4 times; { kind: 'outline', color, width } outlines a text's letters, width in the frame's pixels; { kind: 'move', dx, dy } moves it by that many of the frame's pixels. One undo step. Returns whether it changed.

await oryvio.exportThumbnails(opts: { seqs?: Id[] | 'all'; sizes?: string[]; format?: StillFormat; mode?: ReframeMode; transparent?: boolean; download?: boolean; as?: 'blob' | 'dataUrl' } = {})

Export thumbnails opts.seqs (the open one; 'all' for every one) at sizes opts.sizes (describe().thumbnails.sizes; 'youtube' when left out; 'frame' as it's designed) as opts.format ('jpeg', 'png' or 'webp'; JPEG). A size of another shape is drawn as the thumbnail's version of it when it has one, else fitted as opts.mode says ('fill', 'fit' or 'blur'; fill). A PNG or WebP can be opts.transparent. YouTube's is made at the best quality under its 2 MB. Up to 60 pictures; on the free plan, sizes past 1080p are made smaller. Downloaded unless opts.download is false: one as it is, more in one zip. Returns each picture made (its file, seq, size, width, height, bytes, quality, smaller, over its place's bytes; with opts.as 'blob' or 'dataUrl' the picture), what couldn't be made and why, and the file downloaded.

Adjustment layers and cameras

oryvio.addAdjustmentLayer(from: number, to: number)

Add an adjustment layer from from to to: its effects apply to every track below it. Returns the clip id.

oryvio.addCamera(from: number, to: number)

Add a camera from from to to, over every visual track: it films them all. Give it moves with its camera patch. Returns the clip id.

Captions

oryvio.captionTracks()

The current sequence's caption tracks, top first: each track's id, name, language, look (null when it's been changed from any) and settings, and how many captions it has. captions(trackId) lists a track's captions.

oryvio.captions(trackId?: Id, opts: { from?: number; to?: number } = {})

Caption track trackId's captions in order (the current sequence's first caption track's when it's left out), those from timeline time opts.from to opts.to when given: each one's id, times, what it says, who says it, its words and when each is said (timeline seconds; spread by their length unless timed), and which are stressed.

oryvio.makeCaptionTrack(opts: { look?: string; lang?: string; name?: string } = {}) → Id

A new caption track on top of the current sequence, in look opts.look (describe().captions.looks; Subtitle by default), for language opts.lang, named opts.name (Captions, or Captions (lang)). Returns its id.

oryvio.importCaptions(text: string, name = 'captions.srt', opts: { at?: number; trackId?: Id | null; look?: string; replace?: boolean } = {})

Put a caption file's text on the timeline as one undo step: SubRip, WebVTT, ASS/SSA, SCC (CEA-608, its CC1 as a decoder shows it) or TTML (IMSC, EBU-TT-D, DFXP; .ttml, .dfxp, or an .xml that is TTML), told by name's extension or by what it says (its language from a name like film.fr.srt, or a TTML's xml:lang). An SCC, and a TTML whose captions start an hour in or later, are timed by a master's timecode: put by the sequence's start timecode when they're after it, else from the hour the first caption's in (01:00:00;00 is the timeline's 0). Its cues go on a new caption track on top of the sequence, in look opts.look (an ASS file's own look, or Subtitle), or onto caption track opts.trackId; its 0 at timeline time opts.at (0). Cues said over each other go on tracks above, up to the most (describe() .captions.lanes); long ones are split to fit the track's lines. A track with captions where the file's go is refused, unless opts.replace takes them out. Returns the tracks they went on (the first the main one), how many captions were made, how many cues split and left out, and the language.

oryvio.exportCaptions(trackId: Id, format: CaptionFormat = 'srt', opts: { from?: number; to?: number; save?: boolean; timecode?: boolean; sccStyle?: SccStyle } = {}) → string

Caption track trackId's captions as a file's text, in format (srt, vtt, ass, scc or ttml): those from timeline time opts.from to opts.to, timed from opts.from (so a part exported with its video lines up). WebVTT keeps the track's language and, while its words are marked, when each is said; ASS its look and karaoke; TTML (IMSC 1.1 Text) its language, look, italics and the top or bottom of the frame; SCC is CEA-608 captions at 29.97 fps, drop frame, pop-on unless opts.sccStyle says roll-up ('roll-up-2', 'roll-up-3' or 'roll-up-4': each line written under those before, that many rows on at once, as live captions are), describe().captions.scc saying its limits and what didn't fit being in getState().lastCaptionWarnings. With opts.timecode, each is timed by the sequence's timecode instead (one at 01:00:05:00 is at 1:00:05; an SCC's timecode is the sequence's own at 29.97), to go with a master that starts at it. With opts.save, it's downloaded too.

oryvio.setCaptionTrack(trackId: Id, settings: CaptionTrackPatch)

Change caption track trackId's settings (describe().captions.settings), and its captions with them, as one undo step: its style given to every caption, where they sit, their lines broken again to new lengths, how their words are marked as they're said. Settings left out are kept; those out of range are refused.

oryvio.applyCaptionLook(trackId: Id, look: string)

Give caption track trackId look look (describe().captions.looks), and all its captions with it: what they say, who says it, their words, painted spans, italics, and where they sit kept.

oryvio.placeCaptions(trackId: Id, place: CaptionPlace)

Put caption track trackId's captions at the bottom, the middle or the top of the frame: as far in from the edge as they were.

oryvio.addCaption(text = 'Caption', opts: { at?: number; duration?: number; trackId?: Id } = {})

A new caption saying text (broken into lines as its track has them) at timeline time opts.at (the playhead), in the gap there: after the caption it's in, when it's in one, for opts.duration seconds (2) or as long as the gap. On caption track opts.trackId, the current sequence's first, or a new one. Returns the caption.

oryvio.updateCaption(id: Id, change: { text?: string; speaker?: string; words?: { text: string; start: number; end: number }[] | null; emphasis?: number[] })

Change caption id as one undo step: what it says (text, broken into lines as its track has them when it's on one line; its words keep their times and stress as they're still said), who says it (speaker; '' for no one), when each of its words is said (words: { text, start, end } in timeline seconds within it, one for each word it says, in order; null spreads them by their length), and which are stressed (emphasis: indices of its words). Returns the caption.

oryvio.mergeCaptions(ids: Id[])

Merge captions ids, next to each other on one caption track, into one, as one undo step: what they say joined and broken into lines again, their words kept to when they're said, their stress kept; who says it, the first who's named. Returns the caption.

oryvio.fitCaptions(trackId: Id, ids?: Id[])

Break caption track trackId's captions (or those of ids on it) into lines again as it has them, splitting those too long at their words, their time shared out by how long each part is. Returns its captions.

oryvio.captionChecks(trackId: Id)

How well caption track trackId's captions read, as the Captions panel's Readability says: each finding's kind (overlap, contrast, small, fast, short, long, gap or lines), the ids of the captions it's about, what's found and what fixes it, the worst first. Those turned off aren't checked. [] when they read well.

oryvio.boxCaptions(trackId: Id, ids?: Id[])

Put a box behind those of caption track trackId's captions (or of ids on it) too faint to read over any footage, as one undo step: just opaque enough for 4.5:1, a box already there made more opaque, never less; the track's own look too, when it's faint. Returns captionChecks(trackId) after.

oryvio.sizeCaptions(trackId: Id, ids?: Id[])

Make those of caption track trackId's captions (or of ids on it) too small to read as big as reads well in the frame, a 25th of its shorter side, as one undo step: the track's own size too when it's small. Those bigger already are kept as they are. Returns captionChecks(trackId) after.

oryvio.guessCaptionStress(ids: Id | Id[])

Guess which of captions ids' words are stressed (those in capitals, with exclamation marks, numbers and the like). Returns them.

Speed

oryvio.changeSpeed(ids: Id | Id[], change: SpeedChange, opts: { ripple?: boolean } = {}) → { ids: Id[]; duration: number }

Change how clips ids (or one id) play, as one undo step: change is one of describe().speed.changes. The sound linked to a video changes with it, in sync. Each clip's length changes to fit what it plays, as long as its media lasts; what's after it moves along (opts.ripple: the editor's preference, on by default) or, not rippling, it's kept to the space before the next clip. Returns the clips changed and how long the first is now.

oryvio.setSpeed(ids: Id | Id[], speed: number, opts: { ripple?: boolean } = {}) → { ids: Id[]; duration: number }

Play clips ids at one speed throughout: 0.01..100 (1 = 100%), below 0 backwards, 0 a held frame. As changeSpeed.

oryvio.setSpeedCurve(clipId: Id, points: SpeedPoint[], opts: { in?: number; duration?: number; ripple?: boolean } = {}) → { ids: Id[]; duration: number }

Give clip clipId speed curve points (clip.retime's speed points, in its own time: time remapping), from opts.in in its source (where it starts now) and opts.duration long (as long as it is), cut to its media. As changeSpeed.

oryvio.freezeFrame(clipId: Id, opts: { at?: number; length?: number; ripple?: boolean } = {}) → { ids: Id[]; duration: number }

Freeze clip clipId on its frame at opts.at (a timeline time; the playhead by default) for opts.length seconds (2), then play on: it's that much longer. As changeSpeed.

oryvio.holdFrame(clipId: Id, opts: { at?: number; ripple?: boolean } = {}) → { ids: Id[]; duration: number }

Hold clip clipId on its frame at opts.at (a timeline time; the playhead by default) from there to its end. As changeSpeed.

oryvio.reverseClips(ids: Id | Id[]) → { ids: Id[]; duration: number }

Play clips ids the other way round: what each showed at its end, it shows at its start. As changeSpeed.

oryvio.speedRamp(clipId: Id, edge: 'in' | 'out', opts: { length?: number; from?: number; ripple?: boolean } = {}) → { ids: Id[]; duration: number }

Ramp clip clipId up to its speed at its start (edge 'in') or down at its end ('out'), from opts.from times it (0.25), over what opts.length seconds (1) of it played. As changeSpeed.

oryvio.beatRamp(clipId: Id, opts: { beats?: number[]; onBeat?: 'slow' | 'fast'; ripple?: boolean } = {}) → { ids: Id[]; duration: number }

Ramp clip clipId to the beat: slowed on each beat and sped up between them (opts.onBeat 'fast': the other way). The beats are opts.beats (timeline times) or else those found in the music under it, or the markers over it where there's none. As changeSpeed.

oryvio.timelapse(ids: Id | Id[], opts: { length?: number; ripple?: boolean } = {}) → { ids: Id[]; duration: number }

Make clips ids a timelapse: 10 times as fast, or as fast as plays each in opts.length seconds; frames blend where they showed the nearest. As changeSpeed.

oryvio.speedAt(clipId: Id, opts: { at?: number } = {}) → { at: number; speed: number; source: number }

How fast clip clipId plays at opts.at (a timeline time, brought into the clip; the playhead by default): its speed there (1 = 100%, below 0 backwards, 0 held), and where in its source it is, in seconds.

oryvio.setFrames(ids: Id | Id[], set: { frames?: FrameMode; estimation?: 'faster' | 'better' }) → boolean

How video clips ids show what's between their media's frames when slowed: set.frames nearest|blend|flow, and set.estimation faster|better for optical flow. One undo step. False when nothing changed.

Stabilize

oryvio.stabilize(ids: Id | Id[], set: Partial<Stabilize> | null = {}) → boolean

Stabilize video clips ids (or one id) as set says, one undo step: any of describe().stabilize.default's settings, those left out as each clip has them (as default has them, not stabilized yet); null stops stabilizing them. Their media's motion is then analyzed of its own accord: analyseMotion waits for it. Whether anything changed.

oryvio.analyseMotion(clipId: Id) → Promise<AnalyseResult>

Analyze the motion of stabilized clip clipId's media, what it shows and a second either side, once what's queued before it is; analyzed already, it settles at once. Settles with how it ended: done, stopped (stopAnalysis, keeping what was done) or failed (message says why), and how many frames were analyzed.

oryvio.stopAnalysis(clipId?: Id) → boolean

Stop analyzing clip clipId's motion (or all that's being or waiting to be), keeping what's done. False when none was.

oryvio.stabilizeStatus(clipId: Id) → { stabilized: boolean; motion: MotionState; analysing: { done: number; total: number } | null; queued: boolean; steadied: { zoom: number; limited: number; readout: number | null; hyperlapse: number | null } | null }

How stabilizing clip clipId is going: its media's motion analyzed for all it shows (ready), some, none, or none of its file as it is now (stale); whether it's being analyzed (done of total frames) or waiting to be; and, steadied, how far it zooms in, how much of it had less shake taken out to keep the edges hidden (0..1), the readout rolling shutter's taken out with, and a hyperlapse's frames.

oryvio.unsteadyClips(seqId?: Id) → Id[]

Stabilized clips in sequence seqId (the open one by default) whose motion isn't all analyzed yet: they'd play, and export, less than steadied.

Camera solve

oryvio.solveCamera(clipId: Id, opts: { motion?: SolveMotion; lens?: number | null } = {}) → Promise<CameraSolveResult>

Solve the camera that filmed clip clipId (a video or a nested sequence, 3 to 3,000 frames): points of detail are followed over all of its picture and the camera that saw them worked out, then a camera clip is put above it moving as that one did, filming down to it, with its scene's points (describe().cameraSolve). Solved again, its camera's solved again in place. opts.motion: ${SOLVE_MOTIONS.join('|')} (auto works it out); opts.lens: the lens's field of view across the frame, 1..170 degrees, when it's known. One undo step. Settles with how it ended: done (camera: its id, solve: its record, fov, warnings), stopped (stopCameraSolve, Esc or playing; nothing changed) or failed (message says why).

oryvio.stopCameraSolve()

Stop the camera being solved, changing nothing: its solveCamera settles stopped. False when none is.

oryvio.scenePoints(cameraId: Id, at?: number) → { i: number; x: number; y: number }[]

Where solved camera cameraId sees its scene's points at at (a time in its sequence; the playhead by default): each by its index in camera.solve.points (3 numbers a point), at x, y px in the frame. Only those in the frame.

oryvio.placeInScene(cameraId: Id, points: number[], piece: 'title' | 'card' | { clip: Id }, opts: { at?: number } = {}) → Id

Put something in solved camera cameraId's scene at its points points (indexes, as scenePoints has them), as the camera sees them at opts.at (the playhead by default): with one or two, where they are, facing the camera; with three or more, lying on the plane they're on. piece: 'title' or 'card' makes one, on a track it films; { clip } moves a clip it films there (sized as it is, its x, y, z, turn and scale keys cleared). One undo step. Returns the clip's id.

Multicam

oryvio.makeMulticam(ids: Id[], opts: { sync?: MulticamSync; by?: AngleBy; name?: string; place?: MulticamPlace } = {}) → Promise<MakeMulticamResult>

Make a multicam of ids: media ids (from the bin), or clip ids of the open sequence (each the part of its media used there). Its angles are cameras (picture) and sound recorders, at most 16. opts.sync: how they're lined up, audio|timecode|recorded|start|in|out|placed (by default what suits them: their timecode, their sound, when recorded…; 'placed' only for clips); opts.by: camera (each camera's clips on one angle, by their metadata or file names, the default) or clip (one each); opts.name; opts.place: open (the default for media: made and opened), add (in the open sequence at the playhead) or replace (in place of the clips, the default for clips). Lining up by sound hears each clip on this computer first; one at a time. Settles with how it ended: done (seqId, clipId when put on a timeline, angles, notes: what was left out and why), stopped (stopMulticam or Esc; nothing changed) or failed.

oryvio.stopMulticam()

Stop lining clips up for a multicam, making nothing: its makeMulticam settles stopped. False when none is.

oryvio.getMulticam(id?: Id)

A multicam, by the id of a multicam clip (the one at the playhead by default) or of its sequence: its sequence, how it was lined up, what cutting to an angle changes (mode), and its angles, numbered from 1 as they're cut to, each a camera or a recorder; for a clip, the angle each piece shows (seen) and those it's heard from (heard).

oryvio.cutToAngle(angle: number | Id, opts: { at?: number; clipId?: Id; mode?: SwitchMode } = {}) → Id

Cut a multicam clip to an angle at opts.at (sequence seconds, the playhead by default), to the frame, as live switching does: it's split there and the piece after shows it. angle: its number (from 1) or its id; opts.clipId: the multicam clip (the one at the time by default); opts.mode: both|video|audio, what changes (picture and sound, picture or sound; by default as set, setMulticamMode). Returns the piece's id.

oryvio.switchAngle(ids: Id[], angle: number | Id, opts: { mode?: SwitchMode } = {}) → number

Switch all of each multicam clip ids to an angle (its number from 1, or its id, in each's multicam), as cutToAngle's opts.mode says. Returns how many changed.

oryvio.hearAngle(ids: Id[], angle: number | Id, on = true) → number

Have multicam clips ids hear angle angle (its number from 1, or its id) as well as what they're heard from, or (on false) no longer hear it. Returns how many changed.

oryvio.flattenMulticam(ids: Id[])

Put the clips of the angles multicam clips ids show and are heard from in their place, trimmed as they are. Returns their ids, and what didn't carry over (dropped). One undo step.

oryvio.shiftAngle(seqId: Id, angle: number | Id, seconds: number)

Move an angle's clips in its multicam (seqId) by seconds (earlier when below 0), to line it up by hand. Every multicam clip of it plays it so.

oryvio.setMulticamMode(mode: SwitchMode | null)

What cutting and switching to an angle changes from now on: both|video|audio, or null for what suits each multicam (picture alone when it has a recorder's sound, else both).

Versions

oryvio.getVersions()

The open sequence's versions: each a frame of its own (width × height, even sides), how a picture of another shape meets it (fill: fill, fit or blur, over a blur of itself), the safe area its titles and captions are kept in (shares of the frame from each side), the platform it's for, and how many clips are moved, zoomed or hidden in it over its smart layout (moved). shown: the one the program monitor shows, null for the master.

oryvio.addVersion(from: string | { name?: string; width: number; height: number; fill?: VersionFill; safe?: Partial<SeqVersion['safe']>; platform?: string }) → Id

Add a version to the open sequence: a preset by id (describe().versions.presets: 'reel', at the master's size as near as its shape lets it be), or one of one's own, { width, height, name?, fill?, safe?, platform? } (fill by default what suits its shape; safe 5% in from each side). Returns its id.

oryvio.addSpecVersions() → Id[]

Add the full set of versions (YouTube, Reel, Shorts, LinkedIn, Instagram, Trailer) that the open sequence doesn't have yet, as many as fit, in one undo step. Returns their ids.

oryvio.updateVersion(id: Id, patch: { name?: string; width?: number; height?: number; fill?: VersionFill; safe?: Partial<SeqVersion['safe']>; platform?: string | null })

Change version id of the open sequence: its name, width, height, fill, safe (sides given in part keep the rest) or platform (null for none).

oryvio.duplicateVersion(id: Id) → Id

Copy version id of the open sequence, with what's moved in it, next to it. Returns the copy's id.

oryvio.removeVersion(id: Id)

Remove version id of the open sequence, and what's moved in it (undo puts both back). The master's shown when it was.

oryvio.showVersion(id: Id | null)

Show version id of the open sequence on the program monitor in place of the master, or (null) the master. Exports draw a version only when they're asked to.

oryvio.getVersionLayout(id?: Id)

How version id (the one shown, by default) lays the open sequence out: for each clip it lays out, its role (main: the picture that fills the frame; frame: part of the frame, as a background; layout: one of a layout's pictures; caption; overlay: a title, logo or picture over the rest, kept in the safe area; child: carried by another), its place there (x, y in the version's pixels and scale over the smart layout's, and hidden), and whether that's its own (own) or the smart layout's.

oryvio.setClipVersion(clipId: Id, place: Partial<ClipVersion>, opts: { version?: Id } = {})

Move, zoom or hide clip clipId in a version (opts.version, or the one shown) over what its smart layout makes of it: place { x, y (pixels of the version's frame, from where the layout has it), scale (times the layout's, from 0.1 to 10), hidden }, given in part keeps the rest. It's kept in bounds: the main picture still fills (or stays in) the frame, anything else's middle in it. Returns its place, as kept.

oryvio.hideInVersion(ids: Id[], hidden = true, opts: { version?: Id } = {}) → number

Hide clips ids in a version (opts.version, or the one shown), or (hidden false) show them again: their sound plays still. Returns how many changed.

oryvio.resetClipVersion(ids: Id[], opts: { version?: Id } = {}) → number

Put clips ids back where a version's (opts.version, or the one shown) smart layout has them. Returns how many moved.

oryvio.resetVersionLayout(id: Id) → number

Put every clip of the open sequence back where version id's smart layout has it, in one undo step. Returns how many moved.

await oryvio.renderVersions(ids: (Id | null)[], settings: { format?: 'mp4' | 'webm'; quality?: ExportOptions['quality']; audio?: boolean; captions?: boolean } = {})

Render versions ids of the open sequence (null for the master) one after another, each at its own frame (made as much smaller as fits on the free plan), with the same settings: format mp4|webm, quality low|medium|high|very-high (Draft, Good, High and Master in the dialog), audio and captions (burned in, laid out for each frame). One failing doesn't stop the rest; stopVersionRender (or Esc in the editor) stops the one rendering and those after it. Settles with each: its state (done, failed or stopped), frame, file name, blob when done, why it failed, and its warnings.

oryvio.stopVersionRender() → boolean

Stop rendering versions: the one being made and those after it. False when none is.

Automatic captions

oryvio.transcribe(opts: { model?: SpeechModelId; language?: string | null; translate?: boolean; source?: Id | null; marked?: boolean; from?: number; to?: number; look?: string; trackId?: Id | null; download?: boolean; cpu?: boolean } = {}) → Promise<TranscribeResult>

Make captions of what's said in the open sequence, heard on this computer (describe().captions.transcribe). opts.model: fast (the default) or accurate; opts.language: the code of the language spoken (found from what's said by default); opts.translate: written in English, whatever's said (fast only); opts.source: a track heard alone (everything heard by default); opts.marked: between the sequence's In and Out, or opts.from/opts.to sequence seconds; opts.look: a new track's look; opts.trackId: a caption track they go on instead, replacing those where they go; opts.download: when Accurate's model isn't on this computer, the user's asked, in a dialog saying its size, whether it may be downloaded, and it's only downloaded if they agree; opts.cpu: heard on the processor even with a graphics card. One run at a time. Settles with how it ended: done (trackId, count, language), empty (nothing said that could be heard), stopped (stopTranscribe, or the user didn't agree to the download: the message says so; nothing changed) or failed (message says why); with what it ran on, the seconds heard, how long it took, and warnings.

oryvio.stopTranscribe()

Stop the captions being made, changing nothing: its transcribe settles stopped. False when none are.

Caption translation

oryvio.translateCaptions(opts: { to: string | string[]; trackIds?: Id[]; trackId?: Id; from?: string; bilingual?: boolean; glossary?: string | string[]; keepNames?: boolean; fresh?: boolean; download?: boolean | 'ask' }) → Promise<TranslateResult[]>

Translate caption tracks into other languages, on this computer (describe().captions.translate). opts.to: a language or several (a tag like fr or pt-BR, M2M100's code, or its English name), each in turn; opts.trackIds: the caption tracks (the open sequence's first by default); opts.from: the language they're in, when their tracks don't say (found from what they say otherwise); opts.bilingual: under the original, caption for caption; opts.glossary: never translated, a term a line or an array ("term = translation" always says it so); opts.keepNames (true): names kept as they're written; opts.fresh: onto a new track even when there's a translation into the language already (otherwise that's translated again, its hand fixes kept). Its model (640 MB) is downloaded the first time: opts.download 'ask' (the default) asks the user in a dialog, true when they've agreed, false fails. Each translation is one undo step. Settles with each one's end (done, stopped, failed), its track, captions made, those fixed by hand kept, those that may need a look (review), sentences translated, found kept and tried again, where it ran, ms a sentence, and warnings (a script no font shows). Part of Pro.

oryvio.stopTranslate()

Stop the captions being translated: those done are kept, the one being made changes nothing. False when none are.

oryvio.translationLanguages(from?: string)

The languages caption track trackId's captions (or those in from) translate into, the interface's first: tag, code, English name, and whether it's one of the interface's.

oryvio.captionTranslation(trackId: Id)

Of caption track trackId: the language it's in (its own, or as found from what it says), and when it's a translation, what of, from what, whether bilingual, its glossary, and how many of its parts are fixed by hand.

await oryvio.captionFiles(format: 'srt' | 'vtt' | 'ass', opts: { save?: boolean } = {})

Every caption track of the open sequence as a file of format (srt, vtt or ass), named by its language: their names and text; opts.save downloads them too (in one zip when there are more).

Transcript

oryvio.transcript(trackId?: Id)

What's said on caption track trackId (the open sequence's first caption track when it's left out), word by word, in timeline seconds, as the Transcript tab shows it: each word's place i, text, start, end, the caption it's in, and whether it's a filler ("um", "uh") in the track's language. transcribe makes one.

oryvio.deleteWords(from: number, to: number = from, trackId?: Id)

Delete words from to to (their places in transcript().words) and what's said of them from the open sequence: cut from every clip playing then and closed up, picture, sound and captions together, as one undo step. Returns the seconds taken out. Throws if a clip playing there is on a locked track.

oryvio.moveWords(from: number, to: number, before: number, trackId?: Id)

Move words from to to (their places in transcript().words) to just before word before (words.length for after the last), with what's said of them: picture, sound and captions playing then move together, and what was between moves back, so the sequence stays as long, as one undo step. Returns how many moved and the place of the first of them now; none when that's where they are. Throws if a clip playing there is on a locked track.

oryvio.removeFillers(trackId?: Id)

Take every filler word on caption track trackId out of the open sequence, as deleteWords takes words, as one undo step. Pro's (and a trial's, and the beta's): on the free plan, delete them one by one. Returns how many, and the seconds taken out.

oryvio.removePauses(opts: { longest?: number; trackId?: Id } = {})

Shorten every pause longer than opts.longest seconds (1 when left out) between words on caption track opts.trackId to 0.3 s, half after the word before and half before the next, as one undo step. Returns how many, and the seconds taken out.

Track mattes

oryvio.setTrackMatte(clipId: Id, track: Id | null, opts: { mode?: MatteMode; invert?: boolean } = {}) → { matte: TrackMatte; note: string | null } | null

Show clip clipId only through the picture on video track track, one above its own in its sequence: where it's opaque (opts.mode 'alpha') or bright over black ('luma'), or with opts.invert true, where it isn't; those left out are as the clip's matte has them (alpha, not inverted, for a new one). That track's then a matte track all through the sequence, drawn only to cut what uses it. null takes the clip's off. As one undo step; returns the clip's matte, and why it isn't used when it can't be (its own track's a matte, say), or null.

oryvio.getTrackMattes(seqId?: Id) → { tracks: { track: Id; name: string; usedBy: { track: Id; name: string }[] }[]; unused: { clipId: Id; matte: TrackMatte; why: string }[] }

Sequence seqId's (the open one's) track mattes: its matte tracks, each with the tracks whose clips are shown through it (from the bottom up); and the clips whose mattes aren't used, saying why.

Layouts

oryvio.layout(ids: Id[], id: LayoutId, opts: Partial<LayoutOptions> = {})

Lay clips ids out as layout id (describe().layouts): split screens, grids, pictures in pictures, collages and pages. Each is moved, sized and cropped to its place in the frame as it is, put flat (its 3D turn, skew, stretch and corner pin, and keys of what moves, sizes, turns or crops it, taken off) and given the layout's corners, border and shadow, as one undo step. Places go to the lowest track's clip first, then by start. opts are the layout's options (describe().layouts.options), over its own; those it doesn't use are left as they'd be. Clips that can't be laid out (sounds, adjustments, captions, clips that follow another, on a locked track or in another sequence, or whose media's size isn't known) are skipped, saying why. When the frame changes size, they're laid out again. Returns the clips placed, in the order of their places, those skipped and anything else to know.

oryvio.layoutChoices(ids: Id[])

The layout clips ids are in now (all of them, and only them, still where it put them), with its options, or null; and each layout, with why they can't be laid out in it (null when they can).

Transitions

oryvio.setTransition(clipId: Id, type: TransitionType | null, settings: number | Partial<Transition> = {}) → Transition | null

Set the transition into a clip from the one before it on its track, or remove it with null. settings is its duration in seconds, or any of its settings (see schema.clip.transition); those left out are kept from the one it has, when that's of the same type, and else are the type's preset (as long as the one it had, and aligned as it was). Returns the transition as it's set.

oryvio.setPluginTransition(clipId: Id, pluginId: string, opts: { duration?: number; align?: Transition['align']; ease?: Transition['ease']; sound?: Transition['sound']; params?: Record<string, EffectValue> } = {}) → Transition

Put transition plugin pluginId (a "transition" kind's: listPlugins) into a clip from the one before it on its track, drawn from the two pictures in place of a cut, as far along as its own timing says: opts.duration (seconds), align (center, start or end), ease and sound (how it crosses their sound), each kept from the transition it has when not given, and params, its plugin's settings by key over its defaults (its progress is its timing's). The plugin goes in the project in the same step when it's one of yours it hasn't. Drawn as its cut while the project hasn't the plugin, it's off here, or there's no WebGPU. Returns the transition as it's set.

Effects

oryvio.addEffect(clipId: Id, type: EffectType, params: Record<string, EffectValue> = {}, opts: { at?: number } = {})

Add an effect to a clip: params over its defaults (describe().effects lists each type's), at opts.at in its list (the end by default; effects are drawn in their list's order). Returns the effect's id: its number settings animate as "fx{id}.{key}".

oryvio.updateEffect(clipId: Id, effectId: number, patch: { params?: Record<string, EffectValue>; enabled?: boolean; mix?: number; blend?: BlendMode }) → Effect

Change an effect's settings (a number is brought into its key's range; one with keyframes is set by them, so change those instead), switch it on or off, or set its mix (0..1, how much of what it draws is laid over the picture as it was before it; animates as "fx{id}.mix") and blend (how: describe().effectBlends). Returns the effect as it's set.

oryvio.removeEffect(clipId: Id, effectId: number)

Remove an effect from a clip, with its keyframes and channels.

oryvio.moveEffect(clipId: Id, effectId: number, index: number)

Move an effect to index in its clip's list (clamped to it), which is the order effects are drawn in. Returns where it went.

oryvio.duplicateEffect(clipId: Id, effectId: number)

Copy an effect, with its keyframes and channels, to right after it. Returns the copy's id.

oryvio.resetEffect(clipId: Id, effectId: number)

Put an effect's settings back to its defaults, removing their keyframes and channels.

oryvio.applyEffectPreset(clipId: Id, effectId: number, presetId: string)

Set an effect's settings to one of its presets (describe().effects[].presets): its settings over the effect's defaults, the effect's mix kept, and the keyframes and channels of the settings it sets removed. Returns its settings as they are then.

oryvio.getEffectPreset(clipId: Id, effectId: number) → string | null

Which of its presets an effect's settings are (its mix aside), or null for none of them or keyframed ones.

oryvio.copyEffectsTo(fromClipId: Id, toClipIds: Id[], opts: { replace?: boolean; effectIds?: number[]; at?: number } = {})

Copy a clip's effects (all of them, or those of opts.effectIds, in its order), with their keyframes, channels, mix and blend, onto other clips: after their own (or at opts.at in their lists), or in their place with replace. Each gets ids of its own there; keyframes past a clip's end are left out, and so are effects a clip can't have (or past the most it can). The source can be among them: its copies go after its own. One undo step. Returns, by clip, the ids of those it got and how many were left off.

oryvio.clearEffects(clipIdList: Id[])

Remove every effect from the clips, with their keyframes and channels, as one undo step. Returns how many clips had some.

Effect plugins

await oryvio.installPlugin(source: string | Record<string, unknown>, opts: { project?: boolean; mine?: boolean } = {})

Install an effect plugin (help: effect-plugins): source is a .oryvio-effect file's text, or its JSON as an object. It's checked strictly (every reason it can't be is thrown, the shader's by line), compiled here when there's WebGPU, then put in the open project (opts.project, true by default: in place of an earlier version there, its effects' settings and keyframes moved to the new one, one undo step) and saved to your plugins (opts.mine, true by default, when signed in). Plugins are shaders only: they can't reach the network, the page or files. Effect plugins are Pro's: on the free plan installing, putting on and changing them is refused, and those kept in a project are drawn as if they were off, their settings kept.

oryvio.listPlugins()

The effect plugins there are: the open project's and your own, each with its id, name, version, kind, category, author and description; its settings as it declares them (their stored keys: a point's are key+"X" and key+"Y", a transition's progress is "progress"); whether the project has it, it's yours, and it's off here; how many effects use it; and what's been said of it (a shader that doesn't compile, one turned off as it drew).

oryvio.pluginSource(pluginId: string) → string

An effect plugin's file, as .oryvio-effect text: the project's, else your own.

await oryvio.removePlugin(pluginId: string, opts: { from?: 'project' | 'mine' | 'both' } = {})

Remove an effect plugin: from the open project (opts.from 'project', the default; its effects keep their settings and keyframes, drawn as if they were off until it's back; one undo step), from your plugins ('mine'), or both. Returns where it was removed from.

oryvio.setPluginOff(pluginId: string, off: boolean)

Turn an effect plugin off on this device, or on again: off, its effects are drawn as if they were off, here and in exports.

oryvio.addPluginEffect(clipId: Id, pluginId: string, params: Record<string, EffectValue> = {}, opts: { at?: number } = {})

Put effect plugin pluginId's effect on a clip, params (by its stored keys: listPlugins says them) over its defaults, at opts.at in its list. The plugin goes in the project in the same step when it's one of yours it hasn't. A transition plugin's effect goes only on a clip with a node graph, as a two-input node (in: what it goes from, fg: what it goes to), its progress keyed as "fx{id}.progress". Returns the effect's id.

oryvio.setPluginParams(clipId: Id, effectId: number, params: Record<string, EffectValue>) → Effect

Set a plugin effect's settings, by their stored keys, as its plugin declares them (numbers brought into range): as updateEffect's params. One with keyframes is set by them. Returns the effect as it's set.

Keying and backgrounds

oryvio.keyColorAt(clipId: Id, x: number, y: number, opts: { at?: number } = {}) → Promise<string>

The color of clip clipId's own picture (a video, picture or nested sequence's, before its effects key it) at frame point x, y px, as it's drawn at opts.at (the playhead by default), the pixels about it averaged, as #rrggbb: a keyer's color, as its eyedropper picks it. The clip must be in the open sequence, and showing then.

oryvio.guessBackground(clipId: Id, opts: { at?: number } = {}) → Promise<ScreenGuess>

What clip clipId's background is, guessed from the ring round the edges of its own picture (before its effects key it) at opts.at (the playhead, or the clip's middle when that's off it): the keyer for it with its settings, or 'clear' when it's clear already, and how much of the ring it's of. Rejects with why when it can't be told.

oryvio.replaceBackground(clipId: Id, fill: BackgroundFill) → Promise<{ keyer: BackgroundEdit['keyer']; backdrop: number | null; under: Id | null }>

Replaces clip clipId's background, as one undo step: keyed out with the keyer guessed for it (guessBackground) when it has none (one that's off is turned on), and fill put behind: { kind: 'gradient', style?: 'radial' | 'linear', color?, color2? } or { kind: 'color', color } as a backdrop effect; { kind: 'media', assetId } on the visual track under it, filling the frame; or { kind: 'clear' }, nothing. Resolves with the keyer used, the backdrop's effect id and the id of the clip put under it.

oryvio.findFloor(clipId: Id, opts: { at?: number } = {}) → Promise<number>

Where the floor is that what's in front of clip clipId's background stands on, from its own picture at opts.at (the playhead, or the clip's middle when that's off it): the bottom of what's lowest in front, as a share of the way down the picture, 0 to 1. Rejects with why when it can't be told, as when it runs off the bottom.

oryvio.virtualStudio(clipId: Id, opts: { set?: BackgroundFill | null; floor?: number; reflection?: boolean; shadow?: boolean } = {}) → Promise<Pick<StudioEdit, 'keyer' | 'backdrop' | 'under' | 'reflection' | 'shadow' | 'floor'>>

Stands clip clipId in a virtual studio, as one undo step: keyed out as replaceBackground keys it, opts.set put behind (a fill as replaceBackground takes; what's behind is kept without one), and its reflection and shadow (floor-reflection and floor-shadow effects; opts.reflection or opts.shadow false to leave that one be) on the floor at opts.floor, 0 at the top of its picture to 1 at the bottom, or where findFloor finds it. Resolves with the effect ids of what was added or set, and the floor.

oryvio.removeBackground(clipId: Id, opts: { quality?: 'fast' | 'best'; background?: { kind: 'blur'; blur?: number } | BackgroundFill; refine?: Record<string, EffectValue>; download?: boolean | 'ask' } = {}) → Promise<{ effect: number; added: boolean; quality: 'fast' | 'best'; backdrop: number | null; under: Id | null }>

Removes clip clipId's background by AI on this computer (the remove-background effect, in Keying), as one undo step: a video's or a picture's, with no screen behind it, and none of its footage leaving the computer. opts.quality: 'fast' (MODNet: people, each frame's matte made as it's drawn; the default) or 'best' (BiRefNet lite: anything in front, finer edges, its mattes made ahead for the stretch the clip shows and kept; part of Pro). opts.background: { kind: 'clear' } (what's below shows through), { kind: 'blur', blur? } (its own background blurred behind it, blur in pixels), or a fill as replaceBackground takes ({ kind: 'color', color }, a gradient, or { kind: 'media', assetId } on the track under it); left as it is without one. opts.refine: its matte's settings, as a keyer's are set (choke, edgeSoft, despot, clipBlack, clipWhite, hair, despill, color, edgeWidth, edgeClean…), which updateEffect changes later too. Its model's downloaded the first time it's used (Fast 13 MB, Best 115 MB, or 224 MB where the graphics card doesn't do 16-bit floats or there's none): opts.download true when the user's agreed to that, 'ask' (the default) to ask them in a dialog, false to fail when it isn't on this computer. Resolves with the effect's id, whether it was added, its quality, and the backdrop's effect id and the clip put under it, when there are. backgroundRemoval says how its mattes stand.

oryvio.backgroundRemoval(clipId: Id)

How clip clipId's background removal stands: whether it's on and at which quality, its effect's id, what's behind ('clear' or 'blur'), its model's state on this computer ('missing', 'downloading', 'loading', 'ready', 'failed' or 'unknown', what's still to download, and where it runs: 'webgpu' or 'wasm'), and for Best, the share of its mattes made ahead and whether they're being made now. Null when it has none.

oryvio.makeMattes(clipId: Id) → Promise<{ end: 'done' | 'stopped' | 'failed'; frames: number; message: string | null }>

Makes clip clipId's Best mattes now (they're made of their own accord too), waiting while others are; they're kept by their media's content, so never made twice. Resolves how it ended: 'done', 'stopped' or 'failed', how many frames were made, and why it failed.

oryvio.keepBackground(clipId: Id) → boolean

Turns clip clipId's background removal off, as one undo step, its settings kept. Whether it was on.

Voice enhance

oryvio.enhanceVoice(clipId: Id, opts: { amount?: number; room?: boolean; loudness?: 'off' | -14 | -16 | -23 | -24; download?: boolean | 'ask' } = {}) → Promise<{ effect: number; added: boolean }>

Enhances clip clipId's voice by AI on this computer (the voice-enhance audio effect, in Noise; DeepFilterNet3), as one undo step: noise, hum, a fan, voices far off and a room's echo taken out from under it, the voice kept, and none of its sound leaving the computer. Free on every plan. It's made ahead from the clip's media (a video or audio clip, not a sequence clip or a strip) and kept, so playing and exporting have just what it made; until a stretch is made, it plays as recorded, and an export waits for it. opts.amount 0 to 1 (1 by default): how much of the cleaned voice against the sound as recorded. opts.room: true to keep some of the room's sound around the voice. opts.loudness: 'off' (the default), -14, -16, -23 or -24, the LUFS the cleaned voice is levelled to, as normalize measures it. Its model's a one-time 8 MB download: opts.download true when the user's agreed to that, 'ask' (the default) to ask them in a dialog, false to fail when it isn't on this computer. Resolves with the effect's id and whether it was added (or the clip's own set and turned on). voiceEnhance says how it stands.

oryvio.voiceEnhance(clipId: Id)

How clip clipId's Voice enhance stands: whether it's on, its effect's id and settings (amount, room, loudness), its model's state on this computer ('missing', 'downloading', 'loading', 'ready', 'failed' or 'unknown', what's still to download, and where it runs: 'webgpu' or 'wasm'), the share of the clip's stretch of media made ahead, whether it's being made now and how fast (seconds taken a second of sound), and whether the preview's playing it as recorded to compare. Null when it has none.

oryvio.makeVoice(clipId: Id) → Promise<{ end: 'done' | 'stopped' | 'failed'; made: number; message: string | null }>

Makes clip clipId's enhanced voice now (it's made of its own accord too), waiting while others are; it's kept by its media's content, so never made twice. Resolves how it ended: 'done', 'stopped' or 'failed', how many 10-second parts were made, and why it failed.

oryvio.stopVoice(clipId?: Id) → boolean

Stops clip clipId's voice being made ahead (or every clip's, with none), keeping what's made. Whether any was.

oryvio.compareVoice(clipId: Id, original: boolean)

Has the preview play clip clipId as it was recorded (original true), at the enhanced voice's loudness, or enhanced again: A/B.

oryvio.keepVoice(clipId: Id) → boolean

Turns clip clipId's Voice enhance off, as one undo step, its settings kept. Whether it was on.

Auto-reframe

await oryvio.autoReframe(clipId: Id, opts: { shape: string | { width: number; height: number }; subject?: { at: number; x: number; y: number } | null; framing?: 'wide' | 'close'; smooth?: number; version?: Id; download?: boolean | 'ask' })

Reframe clip clipId (a video or a still) for another shape, its window following a subject as a camera operator would, found on this computer by RT-DETR (Pro; a one-time 22 MB download, asked for unless download is true): shape '9:16', '1:1', '4:5', '16:9' or { width, height }; subject { at, x, y }, the thing at that point (shares of the picture across and down) at clip time at, found again in other shots by its look (reframeSubjects says what's where), or null for each shot's main one; framing 'wide' (as much as the shape takes) or 'close'; smooth, how slowly the camera follows, 0.4 to 3 seconds (1). It cuts only where the shots do, holds still when it can, eases into and out of moves, keeps the subject inside a margin every frame, and never shows past the picture's edges. Written as ordinary keys, one undo step: the clip's own x, y and scale (covering the frame) in a sequence of that shape; else its place in version (a version's id; the first of that shape by default, made when there's none). Its media's analysis is kept by content, so it's never done twice. Resolves where the keys went, how many, the shots and each one's subject, how the path keeps to it (frames outside the margin, frames past the picture's edges, the fastest move and its largest change, in shares of the window a frame), and the analysis's speed, or null when stopped.

await oryvio.reframeVersion(versionId: Id, opts: { framing?: 'wide' | 'close'; smooth?: number; download?: boolean | 'ask' } = {})

Reframe every main picture (a video or still filling the master's frame) of version versionId of the open sequence to follow its subject, as autoReframe does, in one undo step: what was done for each, or null when stopped.

await oryvio.reframeSubjects(clipId: Id, at?: number, opts: { analyse?: boolean; download?: boolean | 'ask' } = {})

What auto-reframe finds in clip clipId's media (analysed now when it isn't yet, and analyse isn't false): its shots (clip times), and what's in the frame at clip time at (its middle by default): each thing's track, whether it's a person, its box (shares of the picture) and how sure it is. Pick one for autoReframe's subject by a point inside its box. Null when nothing's been found and analyse is false.

oryvio.reframeStatus()

How auto-reframe stands: its model on this computer, the analysis running (its clip, frames done of how many, ms a frame and a look of the model), and the last reframe of each clip this session.

oryvio.stopReframe() → boolean

Stop the analysis running (what's found is kept). Whether one was.

oryvio.stopFollowing(clipId: Id, versionId: Id) → boolean

Stop clip clipId following its subject in version versionId: its place there still, as it was at its start. Whether it was following.

Grading: white balance, grade versions and stills

oryvio.pickWhiteBalance(clipId: Id, at: [number, number] | [number, number, number, number], opts: { effect?: number } = {}) → Promise<{ effect: number; added: boolean; temperature: number; tint: number; white: [number, number] }>

Pick clip clipId's white balance from what should be neutral (white or gray) in its picture at the playhead: frame point at ([x, y] px, its pixels about it averaged) or box at ([x0, y0, x1, y1] px, all of it averaged), measured as its color correction opts.effect is drawn on it (by default its first that's on, or a new one added after its color space transforms), in the project's working space. Sets that effect's temperature and wbTint (keyed at the playhead where they're keyed) so it's neutral, and the clip's Color section temperature to 0, as one undo step. The clip must be in the open sequence and under the playhead. Rejects, changing nothing, when the part is off the clip, clipped, too dark or too colorful to be a neutral. Resolves with the effect, what it's set to, and the part's white (CIE xy) before.

oryvio.getGradeVersions(clipId: Id) → { shown: Id; versions: { id: Id; n: number; name: string; shown: boolean; effects: number; empty: boolean }[] } | null

Clip clipId's grade versions: the one shown, and each in the order made, its name as it's shown (Version n when it has none of its own), how many effects its grade has and whether it's empty (no effects, the Color sliders neutral). A clip without any has the one it's made with, g1. Null for a clip without a grade.

oryvio.addGradeVersion(ids: Id | Id[], opts: { from?: 'current' | 'empty'; name?: string } = {}) → Record<Id, Id>

Add a version to the grade of each of clips ids (one id, or a list), called opts.name (Version n when left out), and show it: a copy of the grade shown (opts.from 'current', the default) or none ('empty'). The one shown is kept as it was. One undo step. Returns each clip's new version's id.

oryvio.showGradeVersion(clipId: Id, versionId: Id) → { shown: Id }

Show version versionId of clip clipId's grade: its grade put on the clip, the one it had kept with its own version. One undo step.

oryvio.duplicateGradeVersion(clipId: Id, versionId?: Id) → { id: Id }

A copy of version versionId of clip clipId's grade (the one shown, when left out), called after it and shown. One undo step. Returns its id.

oryvio.renameGradeVersion(clipId: Id, versionId: Id, name: string) → { name: string }

Call version versionId of clip clipId's grade name: '' for Version n. One undo step.

oryvio.deleteGradeVersion(clipId: Id, versionId: Id) → { shown: Id }

Delete version versionId of clip clipId's grade: the one shown, the next (or the one before) is shown in its place. A clip keeps one. One undo step.

oryvio.copyGradeVersion(clipId: Id, versionId: Id, ids: Id[], opts: { asVersion?: boolean } = {}) → { clips: Id[]; skipped: number }

Put version versionId of clip clipId's grade on clips ids (not the clip itself): in place of the grade each shows, or with opts.asVersion, as a new version of its own, called as it is, and shown. Effects a clip of its type can't have are left out, and counted. One undo step.

oryvio.compareGradeVersion(clipId: Id, versionId: Id) → Promise<boolean>

Compare the program monitor with clip clipId showing version versionId of its grade, as compare is set to show (a wipe, side by side or the difference): the frame at the playhead drawn so. The clip must be under the playhead in the open sequence. Resolves true once it's shown; setCompare('off') stops comparing.

oryvio.grabStill() → Promise<StillInfo>

Grab the program's frame at the playhead as a still of the stills gallery, with the grade of the clip it's of (the selected clip under the playhead, or else the top one showing there, one with a picture first; none without one) and where it's from. Kept on this device with the project, describe().grading.maxStills at most. Resolves with the still as listStills lists it.

oryvio.listStills() → Promise<StillInfo[]>

The stills in the open project's gallery, oldest first: each one's id, name, where it's from, and whether it has a grade (and how many effects).

oryvio.applyStill(stillId: string, ids?: Id[], opts: { asVersion?: boolean } = {}) → Promise<{ clips: Id[]; skipped: number; lost: number; failed: { clip: Id; why: string }[] }>

Put still stillId's grade on clips ids (those selected, by default): in place of the grade each shows, or with opts.asVersion, as a new version of its own called after the still, and shown. Effects a clip of its type can't have and LUTs gone from the project are left out, and counted. One undo step.

oryvio.renameStill(stillId: string, name: string) → Promise<{ name: string }>

Call still stillId name ('' for Still n).

oryvio.deleteStills(ids: string[]) → Promise<number>

Delete stills ids from the gallery, and their pictures from this device. Resolves with how many were.

oryvio.compareWithStill(stillId: string) → Promise<boolean>

Compare the program monitor with still stillId's frame, as compare is set to show (a wipe, by default). Resolves true once it's shown.

oryvio.saveStillAsLook(stillId: string, opts: { name?: string } = {}) → Promise<{ id: string; name: string }>

Save still stillId's grade as a look preset (its effects and color), called opts.name (by default the still's own name, or one made up), to be put on clips of any project. Needs a signed-in account. Resolves with its id and name.

await oryvio.applyLatestStill(ids?: Id[], opts: { asVersion?: boolean } = {})

Put the grade of the still grabbed last on clips ids (those selected, by default), as applyStill does: what the Put the grade of the still grabbed last command (Mod Shift Alt G) does. Resolves as applyStill, with the still's id.

await oryvio.exportStills(ids?: string[], opts: { download?: boolean; as?: 'blob' | 'dataUrl' } = {})

Export stills ids of the gallery (all of them when left out) as a file of stills (a .stills.zip: a manifest of describe().grading.stillsFile's version, and each still's thumbnail and frame), with their grades, names, where they're from and the project LUTs their grades name, to importStills into another project, here or on another device. Downloaded unless opts.download is false; opts.as 'blob' or 'dataUrl' returns the file too. Stills whose pictures aren't on this device are left out, and counted. Resolves with the file's name, how many stills are in it, how many were left out, and its bytes.

await oryvio.importStills(file: Blob)

Import a file of stills (exportStills's, a File or Blob) into the open project's gallery. Stills it has already (the same grab, under its id or another) are left out (already), as are those past describe().grading.maxStills (full) and those that can't be read (damaged); each keeps its id, number and name unless another still here has them. The project LUTs their grades name are found in this project by their numbers (lutsFound, those under another id); those it hasn't are let go of, their LUT effects drawing nothing (lutsMissing, by name). A file of a newer version is refused. Resolves with the stills added, as listStills lists them, and those counts.

oryvio.exportStillLut(stillId: string, opts: { size?: number; download?: boolean } = {}) → Promise<{ file: string; cube: string; used: number; left: string[] }>

Save still stillId's grade as a .cube LUT of opts.size points a side (describe().luts.makeSizes; 33), as makeLut makes a clip's: of its color effects, those that change a pixel by those around it or where it is, or only where masks or a qualifier say, left out (left, each why), as its Color section's sliders are. Refused for a grade that changes as it plays (keys at more than one time, a wiggle, a formula or sound), or that names a LUT this project hasn't, or whose numbers aren't on this device. Downloaded unless opts.download is false. Resolves with the file's name, its text, and how many effects went into it.

Secondary color

oryvio.setQualifier(clipId: Id, effectId: number, settings: Partial<Omit<Qualifier, 'view'>> | null) → Qualifier | null

Set effect effectId's qualifier (describe().qualifier): settings over what it has, or over a new one's, which selects everything; a setting out of its range is an error, and null takes the qualifier off, so the effect shows wherever its masks say. Returns the qualifier as it's set, or null.

oryvio.setQualifierPreset(clipId: Id, effectId: number, preset: string) → Qualifier

Set effect effectId's qualifier to select what preset preset does (describe().qualifier.presets), its clean-up the preset's. Returns it.

oryvio.pickQualifier(clipId: Id, effectId: number, points: [number, number] | [number, number][], opts: { add?: boolean; at?: number; radius?: number } = {}) → Promise<Qualifier>

Set effect effectId's qualifier to select the colors about frame points points (one [x, y] px, or a list of them, as a drag's), opts.radius px each way (3), on the picture the effect's drawn on as it is before it, at opts.at (the playhead): each range from the least picked to the most, with a margin. With opts.add, those as well as what it selects already. The clip must be in the open sequence and showing then. Resolves with the qualifier as it's set.

oryvio.setMatteView(clipId: Id, effectId: number, mode: QualifierView | null = 'matte') → MatteView | null

Show effect effectId's selection on the program monitor in place of what it does: mode 'matte' (white on black) or 'highlight' (what's selected in color, the rest gray), by its qualifier and its masks; null shows the effect again. Only the preview: exports and renderFrame draw the effect. The clip's selected; the view's let go when it isn't, or the effect's off or gone. Returns the view now shown, or null.

oryvio.getMatteView() → MatteView | null

The selection shown on the program monitor in place of what its effect does (setMatteView), or null.

oryvio.setEffectSolo(clipId: Id, effectId: number | null) → EffectSolo | null

Solo effect effectId of clip clipId on the program monitor: the clip drawn with only that one of its effects on, to see what it does alone; null shows them all again. Only the preview: the project keeps them on, and exports and renderFrame draw them all. The clip's selected; the solo's let go when it isn't, the sequence changes, or the effect's off or gone, and when another of the clip's effects' selection is shown (setMatteView). Returns the solo now shown, or null.

oryvio.getEffectSolo() → EffectSolo | null

The effect soloed on the program monitor (setEffectSolo), or null.

Color matching

oryvio.matchColor(ids: Id[] | undefined, target: MatchTarget, opts: { parts?: ColorMatchPart[]; effect?: number } = {}) → Promise<{ made: MatchMade[]; failed: { clip: Id; why: string }[] }>

Match clips ids' color (the selected ones by default) to target: { clip, at? }, another shot as it's graded, at its second at (where the playhead is on it, or its middle); { asset, at? }, a media file as it is, at its second at (a still's 0; the source monitor's, or its middle), or with at null across all of it, as one camera's footage is matched to another's (every clip of the clips' media then set, the match first among its effects); or { skin: true }, the skin tone line. opts.parts lists what's matched (describe().colorMatch.parts; all by default, and skin tones alone to the line); opts.effect is the color match effect on the one clip that's set (by default its own, or a new one at its end). Each clip is measured as it's graded up to that effect. One undo step. Resolves with each match made (its effect, the settings found, notes on what couldn't be matched, whether it changed anything; effect -1 when a new one would've changed nothing, so none was added) and the clips that couldn't be, and why.

oryvio.matchColorAgain(clipId: Id, effectId: number) → Promise<MatchMade>

Match clip clipId's color match effectId again as its record (effect.match) says: to the same shot, media or line, the same parts, at the same second of the clip; for after the clip, what it was matched to or what's before it changed. One undo step. Resolves with the match made.

oryvio.changedColorMatches(ids?: Id[]) → { clip: Id; effect: number }[]

The color matches on clips ids (every clip in the project by default) that have changed since they were matched: what each was measured from, the clip's picture before it or what it was matched to, isn't what's there now (its record's seen). Each one's clip and effect, in the order the clips are kept and their effects drawn; matchColorAgain matches one as it is now. Matches whose reference is gone aren't listed (they can't be matched again).

oryvio.checkColorConsistency(ids?: Id[], opts: { ref?: Id } = {}) → Promise<Omit<Consistency, 'keys'>>

Check a scene's shots are consistent: clips ids (two or more; by default every enabled video and picture clip on the open sequence's visible video tracks, the first describe().colorMatch.mostShots of them), each measured as it's graded a quarter, half and three quarters through, and compared with opts.ref (by default the scene's most typical shot): how far off its exposure (stops), white balance (mireds and duv), saturation (times) and contrast (stops) are, and what of it doesn't match, said. The editor shows it as its scene consistency report. Resolves with it: each shot but the reference in the order they play, those that couldn't be measured and why, and each one's look.

Node graphs

oryvio.makeNodeGraph(clipId: Id) → NodeGraph

Make clip clipId's effects a node graph (schema.clip.comp, describe().nodes): each that can be a node wired to the one before it in the list's order, so the picture's as it was. Returns the graph (getNodeGraph).

oryvio.removeNodeGraph(clipId: Id) → { removed: number; off: number }

Make clip clipId's node graph a list of effects again: those the output's picture is drawn from, in the order they're drawn, and the rest kept after them, switched off. Merges, which a list can't draw, are removed with their keyframes. Returns how many were removed, and how many switched off.

oryvio.getNodeGraph(clipId: Id) → NodeGraph | null

Clip clipId's node graph (schema.clip.comp), each node with its effect's type and name (as the node editor shows it), whether it's on, and whether it's drawn: whether the output's picture is made with it. Null for a clip whose effects are a list.

oryvio.addNode(clipId: Id, type: EffectType, opts: { after?: CompRef; at?: CompPos; params?: Record<string, EffectValue> } = {}) → number

Add an effect of type to clip clipId as a node of its graph, its settings opts.params over its defaults: drawn on opts.after's picture (0, the clip's own; or a node's id), what took that picture taking the new node's, the nodes after it moved along to make room; or without after, wired to nothing. Set at opts.at on the board, or beside what it's drawn on. A merge's foreground is wired to nothing (connectNodes). Returns its id, which is its effect's: change its settings with updateEffect, remove it with removeNodes or removeEffect.

oryvio.insertNode(clipId: Id, type: EffectType, opts: { from?: CompRef; to?: NodePort; at?: CompPos; params?: Record<string, EffectValue> } = {}) → number

Add an effect of type to clip clipId as a node of its graph, its settings opts.params over its defaults, wired between opts.from's picture (0, the clip's own; a node's id; left out, none) and opts.to, which takes the new node's picture in place of what it took: 'out', the output, or { node, port: 'in' | 'fg' }. Onto a wire, say, with the two ends it joins. Set at opts.at, or beside from or before to. Returns its id.

oryvio.connectNodes(clipId: Id, from: CompRef, to: NodePort) → boolean

Wire from's picture (0, clip clipId's own; a node's id; or null, none, unwiring it) into to: 'out', the output, whose picture is the clip's; { node, port: 'in' } (or { node }), what a node's drawn on (a merge's background); or { node, port: 'fg' }, a merge's foreground. What it took before is let go; one picture can be wired into many. A wire that would make a loop is refused. Returns false when it was wired so already.

oryvio.moveNodes(clipId: Id, places: Record<string, CompPos>) → boolean

Set nodes of clip clipId's graph where places says on its board: { [node id, or 'src' (where its own picture comes in) or 'end' (where it goes out)]: { x, y } }, their top left. Where they're set changes nothing drawn, only how the node editor shows them. Returns false when none moved.

oryvio.removeNodes(clipId: Id, ids: number[])

Remove nodes ids of clip clipId's graph, and so their effects with their keyframes, channels and masks: what took each one's picture taking what it took its own from. One undo step.

oryvio.duplicateNodes(clipId: Id, ids: number[]) → number[]

Copy nodes ids of clip clipId's graph, and so their effects with their keyframes, channels and masks: the copies wired among themselves as the nodes are, taking what those took from outside them, and taken by nothing (wire them on with connectNodes), so the picture's as it was. Set together below them. Returns the copies' ids, in ids' order.

oryvio.layOutNodes(clipId: Id) → boolean

Lay clip clipId's node graph out tidily on its board: each node as many steps right of the source as the longest way to it from there, the output's line of pictures level with the source, each foreground's line in a row of its own below, and the nodes the output doesn't use below them all. Returns false when it's laid out so already.

oryvio.viewNode(clipId: Id, node: number | null) → EffectSolo | null

View node node of clip clipId's graph (0, its own picture) on the program monitor: the clip drawn with the picture made there, as if it were wired to the output, to see the graph part way along; null shows the output again. Only the preview: exports and renderFrame draw the output. The clip's selected; the view's let go when it isn't, the sequence changes, or the node's gone. Returns what's now viewed or soloed (getEffectSolo), or null.

Cinematic looks

oryvio.applyLook(clipIdList: Id[], id: string, opts: { strength?: number } = {})

Put a cinematic look (describe().looks) on clips, in place of any look they have: its effects, each set as the look sets it and tagged with its id, where their old look's were or after the clip's own, opts.strength of it (0..1, 1 by default). Applied again, its effects are put back as it sets them. Effects of it a clip can't have are left off. One undo step. Returns, by clip, the ids of the look's effects there and the types it left off.

oryvio.removeLook(clipIdList: Id[])

Take the clips' looks off: the effects tagged with them, with their keyframes and channels, the clips' own kept. One undo step. Returns how many clips had one.

oryvio.setLookStrength(clipIdList: Id[], strength: number)

Set how much of each clip's look is mixed in, 0..1: each of its effects' amount (its mix, intensity or grain) as that much of the look's own; those keyframed are left to their keyframes. One undo step. Returns how many clips changed.

oryvio.getLook(clipId: Id)

The look on a clip: its id and name, its effects' ids and how much of it is mixed in (0..1); null when it has none.

Saved presets

await oryvio.listPresets()

The account's saved presets (describe().presets), there in every project: each one's id, name, kind (look, captions or stack), the parts a look has, what it has in it, its size in bytes, and waiting: true when it was saved, renamed or deleted on this device and is still to be sent to the account. status is ready, or offline: as they were last time, with changes sent once the editor's back online. Asked for again each time.

await oryvio.savePreset(kind: ClipPresetKind, opts: { name?: string; parts?: string[]; clipId?: Id; trackId?: Id; ids?: Id[] } = {})

Save a preset to the account (describe().presets): kind look, from clip opts.clipId (the one selected by default), keeping opts.parts of it (those it has by default); captions, from caption track opts.trackId (the selected captions' track, or the sequence's caption track); or stack, clips opts.ids (the selected ones) as they are on their tracks. Named opts.name: a preset of its kind with that name already (any case) is saved in its place; left out, it's given one ("My Glow", "My stack 2"). Sent to the account before it returns; offline, it's kept on this device, waiting: true, and sent once the editor's back online. Returns the preset, and notes on what was left out of it.

await oryvio.applyPreset(id: string, opts: { ids?: Id[]; replace?: boolean; trackId?: Id; at?: number; nest?: boolean } = {})

Put preset id on (describe().presets): a look on clips opts.ids (the selected ones), with what they have of its parts or, with opts.replace, in their place; captions on caption track opts.trackId (the selected captions' tracks, or the sequence's caption track); a stack in at opts.at seconds (the playhead), from track opts.trackId up (down, for sound) on tracks with room, or with opts.nest as a sequence of its own nested there. One undo step, its clips selected. Returns the clips changed or added, and notes on what was left out.

await oryvio.renamePreset(id: string, name: string)

Rename preset id: no other of its kind can have the name (any case). Returns the preset.

await oryvio.duplicatePreset(id: string)

Save a copy of preset id, named for it ("My Glow 2"). Returns the copy.

await oryvio.deletePresets(ids: string[])

Delete presets ids from the account, on every device. Not undone by undo. Returns how many were.

await oryvio.exportPresets(ids?: string[])

Presets ids (all of them, by default) as a .presets.json file's text, as Export saves it: to keep, or for importPresets in another account. Not downloaded. Returns its text, the name it'd be saved as, and how many are in it.

await oryvio.importPresets(source: string | Blob)

Save the presets in a .presets.json file to the account (exportPresets makes one): source its text, or a File or Blob of it. Each is saved as a new preset, named for itself or, when that's taken, "Name 2". Returns those saved, and notes on those that weren't.

Brand kits

await oryvio.listBrandKits()

The account's brand kits (describe().brand), there in every project: each one's id, name, what it has, its size in bytes, and waiting: true when it was changed on this device and is still to be sent to the account. project is the kit this project has on it (its id, name and when it was put on), or null. Asked for again each time.

await oryvio.getBrandKit(id: string, opts: { seqs?: Id[] } = {})

Brand kit id (describe().brand), as the kit editor has it when it's open there: its logos, colors, type styles, motion style, captions, lower third, intro, outro, watermark, transition, LUTs, grade and music (kit), the media, fonts and LUTs it has for them, and what each of its parts would do on sequences opts.seqs (the open one): parts, each with has (the kit has it) and applies (there's something for it to do there).

await oryvio.createBrandKit(opts: { name?: string; fromProject?: boolean } = {})

Make a brand kit, named opts.name ("Name 2" when that's taken; "My brand kit" when left out): empty, or with opts.fromProject this project's fonts, its caption track's style and its motion style. Sent to the account before it returns; offline, it's kept on this device, waiting: true. Returns the kit, and notes on what couldn't be taken.

await oryvio.updateBrandKit(id: string, patch: Record<string, unknown>)

Change brand kit id (describe().brand): each of patch's keys (logos, colors, styles, luts, music; captions, lowerThird, intro, outro, watermark, motion, transition, grade) in place of what the kit has, as getBrandKit gives it; a one of them null takes it out. An entry without an id is given one. What a kit can't have is left out, said in notes, and so is what names what isn't in the kit any more (a watermark of a logo taken out). Media, fonts and LUTs are added with addToBrandKit. Returns the kit as it was saved.

await oryvio.addToBrandKit(id: string, what: { logo?: Id; music?: Id; intro?: Id; outro?: Id; duration?: number; fonts?: true | Id[]; lut?: string; captions?: Id; style?: Id })

Add to brand kit id from this project (describe().brand), one at a time: what.logo a picture (media id), as a logo; what.music a sound; what.intro or what.outro a picture or video, a picture shown what.duration seconds (3); what.fonts true for all the project's fonts, or an array of their ids; what.lut a LUT's ref (builtin:… or one of the project's), its grade too when it has none; what.captions a caption track, its style the kit's; what.style a text clip, its type one of the kit's styles. Returns the kit as it was saved, and added: the new logo's, music's or style's id, or how many fonts.

await oryvio.renameBrandKit(id: string, name: string)

Rename brand kit id: no other kit can have the name (any case). Returns the kit.

await oryvio.deleteBrandKits(ids: string[])

Delete brand kits ids from the account, on every device. Not undone by undo; what a kit put on a project stays there. Returns how many were.

await oryvio.applyBrandKit(id: string, opts: { seqs?: Id[]; parts?: BrandPart[]; music?: Id } = {})

Put brand kit id on the project (describe().brand): its opts.parts (all it has) on sequences opts.seqs (the open one), with its music opts.music (its first, by its id in the kit). What it (or the kit before it) put on is replaced, part by part. One undo step, its clips selected. Throws when there's nothing to do. Returns what was done, the clips added or changed, and notes.

await oryvio.putBrandPiece(id: string, what: { logo?: Id; style?: Id; content?: string; lowerThird?: true }, at?: number)

Put a piece of brand kit id in at at seconds (the playhead) of the open sequence, over what's there: what.logo one of its logos (by its id in the kit); what.style a title in one of its type styles, saying what.content; or what.lowerThird true, its lower third. One undo step, selected. Returns the clip and notes.

await oryvio.giveBrandStyle(id: string, styleId: Id, ids?: Id[])

Give text clips ids (the selected ones) one of brand kit id's type styles, by its id in the kit, as one undo step. Returns the clips changed and notes.

await oryvio.exportBrandKit(id: string)

Brand kit id as a .brandkit.json file's text, as Export saves it, its small files with it: to keep, or for importBrandKit in another account. Not downloaded. Returns its text, the name it'd be saved as, and notes on what stays on this device only.

await oryvio.importBrandKit(source: string | Blob)

Save the brand kit in a .brandkit.json file to the account (exportBrandKit makes one): source its text, or a File or Blob of it. Returns the kit.

Marketplace packs

await oryvio.findPacks(opts: { q?: string; category?: PackCategory; price?: PackPriceFilter; sort?: PackSort; creator?: string; cursor?: string } = {})

Packs listed in the marketplace (describe().packs), a page at a time: with each of the words opts.q in their names, what they're for, their tags or their creators' names; in category opts.category; opts.price free or paid; by creator opts.creator; in order opts.sort (popular by default). Each one's id, name, summary, category, price in cents of its currency (0 for a free one), creator, latest version, how many presets it has (count) and of each kind, size in bytes, installs and the address of its page. next, when there are more, is opts.cursor for the next page.

await oryvio.getPack(id: string)

Pack id's page in the marketplace (describe().packs): as findPacks lists it, with its description, tags, the presets in its latest version (each one's id, name, kind, parts, what it has and size), its versions, the latest first (with what's new in each), and what the account has of it: access (install: it's free or bought; buy; creator: it's the account's own; none), the version installed and whether it's bought.

await oryvio.listPacks()

The packs the account has installed or bought (describe().packs), the last first, as findPacks lists them, with: installed, the version installed on the account (null when it's bought and not installed); onDevice, the version on this device (null when it's installed on another and not downloaded here yet: applyPackItem or installPack downloads it); update, a later version when there is one; bought; access; busy (install or uninstall, while one is); and presets, those of the version on this device (each one's id, name, kind, parts and what it has), or null. status is ready, or offline: as they were last time. Asked for again each time.

await oryvio.installPack(id: string)

Install pack id on the account, and so on every device it's signed in on, and download it to this one: a free pack, or one bought (on its page: it's not bought here) or the account's own. One installed already is updated to its latest version, or downloaded here when it's on another device only. Returns the pack as listPacks lists it, and notes.

await oryvio.uninstallPack(id: string)

Uninstall pack id from the account, and so from every device: its presets leave the Packs tab. What's been made with it stays, in every project; one that's bought can be installed again at no charge, and a free one its creator has withdrawn can't be. Returns notes.

await oryvio.applyPackItem(packId: string, itemId: string, opts: { ids?: Id[]; replace?: boolean; trackId?: Id; at?: number; nest?: boolean; open?: boolean; add?: boolean } = {})

Put preset itemId of installed pack packId to use (describe().packs), as clicking or dropping it in the Packs tab does: a look on clips opts.ids (the selected ones), with what they have of its parts or, with opts.replace, in their place; captions on caption track opts.trackId (the selected captions' tracks, or the sequence's caption track); a stack in at opts.at seconds (the playhead), from track opts.trackId up (down, for sound), or with opts.nest as a sequence of its own nested there; a LUT on clips opts.ids (the selected ones) or, with none or opts.add, added to the project's LUTs; a template nested at opts.at on video track opts.trackId (one with room), or with opts.open added as a sequence of its own and opened. A pack not on this device yet is downloaded first. One undo step. Returns its kind, what it made (the clips changed or added; a LUT added, its id in the project; a template opened, its sequence) and notes.

await oryvio.savePackItems(packId: string, itemIds?: string[])

Save copies of presets itemIds of installed pack packId (all of them, by default) to the account's presets, theirs to rename and change: looks, captions and stacks with its presets, LUTs with its LUTs and templates with its templates, each under a name of its own ("Glow 2" when "Glow" is taken). A LUT saved already isn't again. Returns those saved, as listPresets lists them, and notes on those that weren't.

Masks

oryvio.addMask(clipId: Id, shape: MaskShape, settings: Partial<Omit<Mask, 'id' | 'shape'>> = {}, opts: { effectId?: number; index?: number; at?: number } = {})

Add a mask to a clip, or with opts.effectId to one of its effects (so the effect shows only where the mask does): a shape (describe().masks has them and what each setting is), half the picture's size in its middle unless settings says otherwise, at opts.index in the list (the end; masks are combined in their list's order, each by its mode). A path needs its points, settings.pts. Returns its id: its number settings animate as "mk{id}.{key}".

oryvio.updateMask(clipId: Id, maskId: number, settings: Partial<Omit<Mask, 'id'>>, opts: { at?: number } = {}) → Mask

Change a mask's settings (describe().masks.mask says what each is). A number setting that's keyed is set by its keys, so change those instead (keyframe.set "mk{id}.{key}"), and a keyed path's points with setMaskPath. Made a path, a shape becomes its outline as it is at opts.at (the playhead); made another shape, a path's points go. Returns the mask as it's set.

oryvio.removeMask(clipId: Id, maskId: number)

Remove a mask, with its keyframes and channels.

oryvio.clearMasks(clipId: Id, opts: { effectId?: number } = {})

Remove every mask from a clip, or from its effect opts.effectId, with their keyframes and channels. Returns how many there were.

oryvio.moveMask(clipId: Id, maskId: number, index: number)

Move a mask to index in its list (clamped to it): they're combined in order, so where it is changes what shows. Returns where it went.

oryvio.duplicateMask(clipId: Id, maskId: number)

Copy a mask, with its keyframes and channels, to right after it. Returns the copy's id.

oryvio.setMaskPath(clipId: Id, maskId: number, pts: number[] | number[][], opts: { at?: number; key?: boolean } = {})

Set a path's points (as many as it has; pts as describe().masks.mask.pts says) as they're to be at opts.at (the playhead): keyed there, all together, once they're keyed, or with opts.key; else as they are without keys. Returns the points as they are there.

oryvio.animateMaskPath(clipId: Id, maskId: number, animate: boolean, opts: { at?: number } = {})

Key a path's shape at opts.at (the playhead), all its points together, holding it there; or with animate false, take all its points' keys away, leaving it the shape it has there.

oryvio.insertMaskPoint(clipId: Id, maskId: number, segment: number, u = 0.5)

Put a point in a path, u of the way along segment segment (from point segment to the next), keeping its shape, at each of its keys too. Returns the new point's index.

oryvio.removeMaskPoints(clipId: Id, maskId: number, points: number[])

Take points (their indexes) out of a path, keys and all, as one undo step. A path keeps three at the least.

oryvio.copyMasksTo(fromClipId: Id, toClipIds: Id[], opts: { fromEffectId?: number; toEffectId?: number; ids?: number[]; replace?: boolean } = {})

Copy masks, with their keyframes and channels, from a clip (or its effect opts.fromEffectId; only those of opts.ids, if given) to other clips (or each one's effect opts.toEffectId): after their own, or in their place with replace. Each gets an id of its own there; keys past a clip's end are left out, and masks past the most there can be. One undo step. Returns, by clip, the ids they got and how many were left off.

oryvio.masksFromSvg(clipId: Id, opts: { svg?: string; assetId?: Id; effectId?: number; replace?: boolean }) → Promise<{ ids: number[]; notes: string[] }>

Add an SVG's outlines as masks on a clip (or its effect opts.effectId), fitted inside its picture, so the picture shows only where the SVG is filled: a logo or lettering cut out of it (describe().masks.vector). The SVG is code, opts.svg, or one in the media, opts.assetId. Each outline's a path mask, those cut out of others subtracted; lines and strokes aren't masks. After the masks there, or in their place with opts.replace: all of them, or none when they don't all fit. One undo step. Returns their ids, and what of the SVG they leave out, a sentence each.

oryvio.shapeToMasks(shapeId: Id, clipId: Id, opts: { effectId?: number; replace?: boolean } = {}) → { ids: number[]; notes: string[] }

Add a shape clip's outlines, as they are at the playhead, as masks on a clip (or its effect opts.effectId), at its picture's middle: a mask a part when the shape is of one layer (a rectangle stays a rectangle mask, joined as the part is), else what it all fills. After the masks there, or in their place with opts.replace. One undo step. Returns their ids, and what of the shape they leave out (its lines and strokes, its animation), a sentence each.

oryvio.trackMask(clipId: Id, maskId: number, opts: { direction?: TrackDirection; motion?: TrackMotion; at?: number } = {}) → Promise<TrackResult>

Track a mask: follow what's under it from opts.at (the playhead, which follows along) in opts.direction (${TRACK_DIRECTIONS.join(', ')}: on to the clip's end or start, or a frame), taking up opts.motion of what it follows (the mask's own track setting; describe().masks.tracking), and key it to keep with it. In perspective a shape is made a path first. The clip must be in the open sequence. One undo step. Settles with how it ended, when it has: done, lost (where and why), stopped (stopTracking, Esc or playing), interrupted (the clip, the mask or its keys changed meanwhile) or failed; what it keyed is kept whichever.

oryvio.stopTracking()

Stop tracking a mask or tracker, keeping what's been tracked: its trackMask or trackTracker settles stopped. False when none is being tracked.

Trackers

oryvio.addTracker(clipId: Id, kind: TrackerKind = 'point', start: TrackerStart = {}, settings: Partial<Omit<Tracker, 'id' | 'kind'>> = {})

Add a tracker (describe().trackers) to a clip's picture: a point tracker with start.points points (1 to 4), a planar one's 4 corners or a surface's grid, about (start.x, start.y), px from the picture's middle as it's fitted to the frame (its middle), start.w by start.h in size: a lone point's box (a tenth of the picture across), or the shape (a third). settings sets the rest (describe().trackers.tracker): its name, color, motion, box, cols and rows. Returns its id.

oryvio.updateTracker(clipId: Id, trackerId: number, settings: Partial<Omit<Tracker, 'id'>>, opts: { at?: number } = {}) → Tracker

Change a tracker's settings (describe().trackers.tracker). Points, a turn or a scale that are keyed are set by their keys: move them with moveTrackerPoints, or change the keys with keyframe.set. Made another kind, or a surface given another grid, it's laid out afresh where it is at opts.at (the playhead), and its points' keys go. Returns the tracker as it's set.

oryvio.setTrackerPoints(clipId: Id, trackerId: number, n: number, opts: { at?: number } = {}) → Tracker

Give point tracker trackerId n points (1 to 4), laid out over it as it is at opts.at (the playhead). Its points' keys go.

oryvio.moveTrackerPoints(clipId: Id, trackerId: number, moves: readonly (readonly [number, number, number])[], opts: { at?: number } = {}) → Tracker

Put points of a tracker where moves says ([point index, x, y] each, px from the picture's middle as it's fitted to the frame) at opts.at (the playhead), as one undo step: keyed there when they're keyed, set otherwise.

oryvio.removeTracker(clipId: Id, trackerId: number)

Remove a tracker, with its keyframes: what follows it lets it go where it is, and a clip pinned to it goes back to where its own transform puts it.

oryvio.duplicateTracker(clipId: Id, trackerId: number)

Copy a tracker, keys and all, right after it. Returns the copy's id.

oryvio.clearTrackerKeys(clipId: Id, trackerId: number, opts: { after?: boolean; at?: number } = {})

Clear a tracker's keys: all of them, leaving it where it is at opts.at (the playhead), or with opts.after those after then, so it stays there from then on. Returns how many keys went.

oryvio.trackTracker(clipId: Id, trackerId: number, opts: { direction?: TrackDirection; motion?: TrackMotion; at?: number } = {}) → Promise<TrackResult>

Track a tracker: follow what's under it from opts.at (the playhead, which follows along) in opts.direction (${TRACK_DIRECTIONS.join(', ')}), taking up opts.motion of it (the tracker's own; describe().trackers.motions), and key it to keep with it: each point by the detail in its box, a planar tracker's corners together in perspective, a surface's grid point by point, held to its neighbors. The clip must be in the open sequence. One undo step. Settles as trackMask does.

oryvio.setFollow(clipId: Id, target: FollowTarget, trackerId: number | null, opts: { motion?: TrackMotion; at?: number } = {})

Make a mask (target { mask: id }) or an effect's center ({ effect: id }) of a clip move with its tracker trackerId from opts.at (the playhead), where it is then, taking up opts.motion of how it moves (as much as the tracker tells); with null, let it go, where it is at opts.at.

oryvio.applyTracker(clipId: Id, trackerId: number, use: TrackerUse, opts: { at?: number } = {}) → { clipId: Id; mask?: number; effect?: number }

Put a tracker to use (${Object.keys(TRACKER_USES).join(', ')}) at opts.at (the playhead): blur or mask what it follows on the clip, or add an adjustment layer or a title above the clip that keeps with it (selected). Returns the clip changed or added, and the new mask's and effect's ids.

oryvio.trackerAt(clipId: Id, trackerId: number, opts: { at?: number } = {})

Where a tracker's points (and a lone point's turn and scale) are at opts.at (the playhead), as tracked.

Paint

oryvio.paint(clipId: Id | null, strokes: StrokeInput[], opts: { effectId?: number; frame?: boolean; t?: number; from?: number; duration?: number } = {})

Paint strokes (describe().paint.stroke has what one can be) on clip clipId: on its paint effect opts.effectId, or its last that's on and has room, or one added for them. With clipId null they go on a new drawing layer: an adjustment clip named "Drawing" over every track, from opts.from (the playhead) for opts.duration seconds (5, or to the sequence's end when that's a second or more away). With opts.frame, points are the frame's pixels from its top left, found on the picture as it's placed at opts.t (the playhead). One undo step. Returns where they went and the strokes' ids.

oryvio.updateStroke(clipId: Id, effectId: number, strokeId: number, patch: Partial<Omit<StrokeInput, 'tool'>>) → Stroke

Change a stroke: its brush's settings (over its own), its timing, its points (as paint takes them, in fitted pixels) or how it comes on. Its id and tool stay. Returns the stroke as it's set.

oryvio.removeStrokes(clipId: Id, effectId: number, strokeIds: number[] | 'all')

Take strokes away from a paint effect: those with strokeIds, or "all". One undo step. Returns how many went.

oryvio.retimeStrokes(clipId: Id, effectId: number, how: 'in-order' | 'at-once' | 'shift', opts: { from?: number; gap?: number; by?: number; ids?: number[] } = {})

Retime a paint effect's strokes (opts.ids of them, or all), as one undo step: "in-order" writes them on one after another from opts.from seconds into the clip (0), each at the pace it was drawn and opts.gap seconds (0.15) after the one before; "at-once" has them all there from opts.from; "shift" moves them opts.by seconds later (less than 0: earlier, to the clip's start at most). Returns each one's timing.

Markers

oryvio.addMarker(t: number, label?: string)

Add a marker, snapped to a frame. If one is already there, relabels it. Returns the marker id.

oryvio.addClipMarker(clipId: Id, t?: number, label?: string)

Add a marker to a clip on the frame it shows at timeline time t (the playhead by default). It stays with that frame when the clip moves or is trimmed. If one is already there, relabels it. Returns the marker id.

oryvio.removeClipMarkers(clipId: Id, markerIds?: Id[])

Remove markers from a clip: those in markerIds, or all of them.

Music

oryvio.getBeats(assetId: Id)

The beats found in a media file's sound: tempo, how sure the finding is (0 to 1), every beat and the first beat of each bar, in source seconds. Empty with bpm 0 when there's no steady beat; null while it's still being worked out.

oryvio.getMusic(assetId: Id)

What was read of a media file's music: its tempo and beats, as getBeats; its bars, four beats each from firstBar (the time its first whole bar starts, after any pickup); its key and mood; its sections in order, end to end in its own seconds, each with its kind, a label shared by those that sound alike, its energy against the song's fullest (0..1) and its intensity against music in general (0..100); where it drops; and each beat's energy. Null when it has no steady beat, or before it's been listened to. read is false, and what's read from its sound past its beats null, while that's still being read.

oryvio.addBeatMarkers(clipId: Id, every: Every = 4)

Mark a music clip where it plays its own song's beats, bars or sections, every (describe().music.every): a beat named bar.beat ("3.1"), a bar "Bar 3", a section by name ("Chorus 2") in its color. Times it's marked at already are left, but a bar or beat marker where a section starts is named for it. One undo step. Returns how many were added and renamed, and whether there were more than are added at once.

oryvio.cutToBeats(ids: Id | Id[], opts: { every?: Every; mode?: BeatCut } = {})

Cut clips to the music heard on their sequence besides them, opts.every (a bar by default). mode "lay" (the default) puts each track's end to end from the first point on or after the first of them starts, each lasting to the next as far as its media lets it; "snap" rolls each cut between them to the nearest point, and trims their outer edges to it. Linked clips move with theirs. One undo step. Returns how many moved, and (snap) how many couldn't for want of media.

oryvio.splitAtBeats(ids: Id | Id[], opts: { every?: Every; select?: boolean } = {})

Split clips (and those linked to them) wherever the music heard on their sequence lands, opts.every (a bar by default), their own music included, so a song can be cut into its bars. One undo step, refused past describe().music.limits.splits cuts. Returns how many cuts, and every piece; with select, they're selected.

oryvio.pulseOnBeats(ids: Id | Id[], opts: { every?: Every; kind?: Pulse; amount?: number } = {})

Key clips to pulse on the music heard under each, opts.every (each beat by default): kind "zoom" (in by up to 15% and eased back), "flash" (a flash effect, added or reused) or "shake", at amount 0..1 of full strength (0.5). Each starts from what the clip does just before the beat and settles back to it before the next, so running it again replaces rather than adds to it. One undo step. Returns how many clips and points.

oryvio.textOnBeats(ids: Id | Id[], opts: { every?: Every; mode?: TextBeat; select?: boolean } = {})

Put text clips on the music heard on their sequence, opts.every (each beat by default). mode "build" (the default) starts each on the nearest point and brings its words in one a step; "each" makes each word a clip of its own, one a step, keeping its look (the first keeps the clip's id, the last lasts until the text did). Captions aren't. One undo step. Returns the clips (selected with select) and how many words.

oryvio.fitMusic(clipId: Id, seconds?: number, opts: { exact?: boolean; select?: boolean } = {})

Make a music clip seconds long by its music: shorter by jumping ahead once or twice between bars that sound alike, longer by playing a stretch again (and once ahead where that comes nearer), keeping its start and ending, its pieces crossing on the downbeat. seconds defaults to the end of the last other clip on its sequence. With exact (the default) it's never left short: made a little longer and cut to the length, faded out; without, it ends where its music does. One undo step. Returns its length, its pieces (selected with select), how many seams and how alike the music either side of the least alike is (0..1), and whether it was cut short.

oryvio.loopMusic(clipId: Id, seconds?: number, opts: { exact?: boolean; select?: boolean } = {})

Make a music clip seconds long (as fitMusic) by playing its start and then a stretch of it over and over that loops on the bar.

oryvio.duckMusic(ids: Id | Id[], opts: Partial<DuckOpts> = {})

Turn music clips down under the speech heard with them: other clips' sound without a beat, on other tracks, less its silences. opts (describe().music.duck): amount dB down, from attack seconds before speech to release after, staying down through pauses shorter than minGap. Keyed on their volume, replacing the volume keys they had. One undo step. Returns how many clips, stretches of speech and their seconds.

Audio effects

oryvio.addAudioEffect(clipId: Id, type: AudioFxType, params: Record<string, EffectValue> = {}, opts: { at?: number; preset?: string } = {})

Add an audio effect to a clip with sound (a video, audio or nested sequence clip): params over its defaults, or over opts.preset's (describe().audioFx lists each type's settings and presets), at opts.at in its list (the end by default). Its sound goes through them in order, after its gain and before its volume, fades and pan. Returns its id: its number settings that animate do so as "af{id}.{key}".

oryvio.updateAudioEffect(clipId: Id, effectId: number, patch: { params?: Record<string, EffectValue>; enabled?: boolean; preset?: string }) → AudioFx

Change an audio effect on a clip: put a preset of it on (its settings' keyframes taken away), then set params over that (a number is brought into its key's range; one with keyframes is set by them, so change those instead), and switch it on or off (off, the sound goes past it). One undo step. Returns the effect as it's set.

oryvio.removeAudioEffect(clipId: Id, effectId: number)

Remove an audio effect from a clip, with its keyframes and channels.

oryvio.moveAudioEffect(clipId: Id, effectId: number, index: number)

Move an audio effect to index in its clip's list (clamped to it), the order its sound goes through them. Returns where it went.

oryvio.duplicateAudioEffect(clipId: Id, effectId: number)

Copy an audio effect, with its keyframes and channels, to right after it. Returns the copy's id.

oryvio.resetAudioEffect(clipId: Id, effectId: number)

Put an audio effect's settings back to its defaults, removing their keyframes and channels.

oryvio.copyAudioEffectsTo(fromClipId: Id, toClipIds: Id[], opts: { replace?: boolean } = {})

Copy a clip's audio effects, with their keyframes and channels, onto other clips with sound: after their own, or in their place with replace. Each gets ids of its own there; keyframes past a clip's end are left out, and so are effects past the most it can have. One undo step. Returns, by clip, the ids of those it got and how many were left off.

oryvio.clearAudioEffects(clipIdList: Id[])

Remove every audio effect from the clips, with their keyframes and channels, as one undo step. Returns how many clips had some.

oryvio.learnNoiseGate(clipId: Id, effectId: number)

Set a clip's noise gate to open just above its quietest stretch (the room between its words), as analysis measured what it plays at its gain; set at the playhead when its threshold is keyframed. Returns the threshold it set, in dBFS.

Mixer

oryvio.addInsert(stripId: Id, type: AudioFxType, params: Record<string, EffectValue> = {}, opts: { at?: number; preset?: string } = {})

Add an insert to a strip (a track's, a bus's, or a sequence's master by the sequence's id): an audio effect its sound goes through before its sends, fader and pan, params over its defaults or opts.preset's, at opts.at in its list (the end by default). A strip's inserts are set, not animated. Returns its id.

oryvio.updateInsert(stripId: Id, effectId: number, patch: { params?: Record<string, EffectValue>; enabled?: boolean; preset?: string }) → AudioFx

Change an insert on a strip as updateAudioEffect does a clip's: a preset, then params over it, and on or off. One undo step; the insert as it's set.

oryvio.setInsertSidechain(stripId: Id, effectId: number, source: Id | null) → AudioFx

Have a strip's compressor, gate or expander (insert effectId of a track's or a bus's strip) listen to another track or bus of its sequence in place of its own sound (an external sidechain, its key: music ducked under dialogue, say), or to its own again (null). It hears that strip's sound after its inserts, before its fader, as it plays in the mix (silent while that's muted, or silenced by a solo), through its own sidechain filters. Refused when that strip waits for this one, playing or sending into it however far round, or keyed from it: they'd each wait for the other. keyChoices lists those it can. One undo step; the insert as it's set.

oryvio.keyChoices(stripId: Id, effectId: number)

The tracks and buses insert effectId of strip stripId can listen to (setInsertSidechain): each { id, kind, name }.

oryvio.removeInsert(stripId: Id, effectId: number)

Remove an insert from a strip.

oryvio.moveInsert(stripId: Id, effectId: number, index: number)

Move an insert to index in its strip's list (clamped to it). Returns where it went.

oryvio.duplicateInsert(stripId: Id, effectId: number)

Copy an insert to right after it. Returns the copy's id.

oryvio.resetInsert(stripId: Id, effectId: number)

Put an insert's settings back to its defaults.

oryvio.getMixer(opts: { seq?: Id } = {})

How a sequence's mixer (the open one's unless seq) is set: each of its tracks' strips, its buses' and its master's (describe().mixer.strip), and the faders being moved while a pass is written (live).

oryvio.setStrip(id: Id, patch: StripPatch | MasterPatch, opts: { gang?: boolean } = {})

Set strip id (a track's, a bus's, or a sequence's master by the sequence's id) by patch: any of its level, pan, output, sends (the list whole: prefer addSend and updateSend), automation ({ mode?, lanes? }, a lane given null taken away), and in a 5.1 or 7.1 mix its format (the channels it carries: 'stereo', or '5.1' or '7.1' for the mix's own, either meaning whichever the mix is) and surround (prefer setSurroundPan); the master's level, pan, muted and automation. Grouped tracks move by as much (gang: false for only it). One undo step; the strip as it's set.

oryvio.setMixFormat(format: 'stereo' | '5.1' | '7.1', opts: { seq?: Id } = {})

Mix a sequence (the open one's unless seq) in format: 'stereo', '5.1' (L R C LFE Ls Rs) or '7.1' (L R C LFE Ls Rs Lrs Rrs: its surrounds at the sides, its rear surrounds behind). In surround its buses and master are six channels wide (eight in 7.1), its tracks stereo (panned into the mix by their surround panners) unless a strip's format says it carries the mix's own; switching between 5.1 and 7.1 keeps what each strip carries and how it's panned; back in stereo every strip is stereo again, what it's set to for surround kept. One undo step; the format. 5.1 and 7.1 are Pro's: on the free plan a surround sequence keeps its mix, and can be made stereo.

oryvio.setLfeLowPass(on: boolean, opts: { seq?: Id } = {})

Low-pass what a sequence's (the open one's unless seq) surround panners send the LFE at 120 Hz, a fourth-order Linkwitz-Riley as a console's bass management does (on, every sequence's unless it's turned off), or not (for a delivery that filters the LFE itself). Surround media's own LFE plays as it is either way. One undo step; whether it's on.

oryvio.setSurroundPan(id: Id, patch: { pan?: number; front?: number; center?: number; lfe?: number; spread?: number })

Set where stereo strip id (a track's or a bus's) is put among a 5.1 or 7.1 mix's speakers: any of its pan (-1 left to 1 right), front (1 the front to -1 the back; in 7.1, 0 the sides, -1 the rears), center (0..1, how much of what's between the fronts comes from the center speaker), lfe (its level into the LFE, ${LEVEL_MIN} for none, to +${LEVEL_MAX} dB) and spread (0..1, its divergence toward every speaker). Each is automated as its pan is (setAutomation's param). Its sequence must be mixed in surround, and the strip stereo. The strip as it's set.

oryvio.addBus(kind: 'submix' | 'return' = 'submix', opts: { name?: string; seq?: Id } = {}) → Id

Add a bus to a sequence (the open one's unless seq): a submix to play tracks into, or a return to send to. Its id.

oryvio.updateBus(id: Id, patch: BusPatch)

Change bus id: its name, kind, muted, solo, color, or strip (mix, merged into it).

oryvio.removeBus(id: Id)

Take bus id away: what played into it plays where it did, and what sent to it lets go.

oryvio.moveBus(id: Id, index: number)

Move bus id to index among its sequence's.

oryvio.addSend(id: Id, bus: Id, opts: { level?: number; pre?: boolean } = {})

Send strip id (a track's or a bus's) to bus bus at level dB (0), after its fader and pan unless pre.

oryvio.updateSend(id: Id, bus: Id, patch: { level?: number; pre?: boolean; muted?: boolean })

Change strip id's send to bus bus: its level, pre or muted.

oryvio.removeSend(id: Id, bus: Id)

Stop strip id sending to bus bus (its lane goes with it).

oryvio.setAutomation(id: Id, param: string, points: { t: number; v: number }[] | null)

Give strip id's automation for param (level, pan, a surround panner's front, center, lfe or spread, or "send:<bus id>") these points ([{ t: sequence seconds, v }], put in order of time), or none (null) to take its lane away. Played while its mode isn't off.

oryvio.addAutomationPoint(id: Id, param: string, t: number, v: number)

Put a point of strip id's automation for param at sequence time t (one there's moved), of value v.

oryvio.meters(since?: number)

The mixer's meters as playback's reached them, null when it isn't playing: each strip's (track, bus, and the sequence's id for its master) highest peaks by channel in dBFS (left and right; a 5.1 strip's L R C LFE Ls Rs) since timeline time since (what's sounding now when left out); how far each audio effect that turns the sound down (describe().audioFx's reduces) did at most, in dB, by "owner:effectId" (its clip's id, or its strip's); and the master's loudness.

oryvio.loudness()

The master's loudness as last heard (EBU R 128): momentary (m), short-term (s) and integrated (i) in LUFS, its range (lra) in LU, its true peak (tp) and sample peak in dBTP and dBFS; null before any, or since resetLoudness.

oryvio.resetLoudness()

Start measuring the master's integrated loudness, range and peaks again.

oryvio.normalize(ids: Id | Id[], opts: Partial<NormalizeOpts> = {})

Set clips' gain so each (or with together, all of them by one change) peaks at, or is as loud as, target (describe().mixer.normalize), measured from what analysis found in their media over what each plays. One undo step: how many changed, and how many were silent and left alone.

Silences

oryvio.findSilences(ids: Id | Id[], opts: Partial<SilenceOpts> = {})

The silences in clips (describe().silences): where every one of them that plays sound of its own, and isn't muted, is quieter than threshold dBFS at its loudest, at its gain, for minLength seconds or more, padding kept next to the sound either side, on whole frames; read from what analysis found in their media. Returns them in timeline seconds, in order, and how long they last together.

oryvio.removeSilences(ids: Id | Id[], opts: Partial<SilenceOpts> & { mode?: CutAway; select?: boolean } = {})

Take the silences findSilences finds out of clips, as one undo step, by opts.mode: ripple closes up the time on every track the clips are on, and moves what's after on sync-locked tracks with it (refused where a clip not given is in the way); lift leaves gaps; split cuts around them and leaves them in. Clips on locked tracks are left alone. Returns how many there were, how long they lasted, and the clips: what's left of those given, or (split) the silent pieces cut out. With select, those are selected.

Voiceover: takes and the script

oryvio.getTakes(clipId: Id)

A sound clip's takes (describe().voiceover), newest first as its lanes show them: which plays, and each one's number, name, mark, gain in dB, when it was recorded, the script line it's a reading of, and the part of the timeline it was recorded over (null where none of the clip). Null for a clip without takes.

oryvio.pickTake(clipId: Id, takeId: Id)

Clip clipId plays take takeId, lined up with what it played: it starts later or ends sooner where the take wasn't recorded.

oryvio.nextTake(clipId: Id, dir: 1 | -1 = 1)

Clip clipId plays its next take (dir 1), newer, or the one before (-1). Returns the one it plays.

oryvio.compTake(clipId: Id, takeId: Id, from: number, to: number)

Comp: clip clipId plays take takeId from from to to, timeline seconds, only, as far as it was recorded there; the clip is split at either end, inside it, and that part plays it. Returns the clip that does.

oryvio.markTake(clipId: Id, takeId: Id, mark: 'good' | 'no' | null)

Marks take takeId 'good', 'no' (no good), or null for neither; the same take on clips it was split or copied into too.

oryvio.renameTake(clipId: Id, takeId: Id, name: string)

Names take takeId (up to describe().voiceover.nameMax characters); '' calls it Take n again.

oryvio.deleteTake(clipId: Id, takeId: Id)

Lets go of take takeId; when it's the one played, the best of the rest plays. A clip keeps one take at least.

oryvio.deleteRejectedTakes(ids: Id | Id[])

Lets go of the takes marked no good on clips ids, as one undo step; a clip whose takes all are keeps the one it plays. Returns how many went.

oryvio.keepPlayingTakes(ids: Id | Id[])

Clips ids keep only the take each plays, and let go of the rest, as one undo step.

oryvio.getScript(opts: { seq?: Id } = {})

The voiceover script of the open sequence, or opts.seq: its lines, each with its words, about how long it takes to read at the teleprompter's pace, and how many takes there are of it; and which line takes recorded now say they're of.

oryvio.setScript(script: string | (string | { id?: Id; text: string })[] | null, opts: { seq?: Id } = {})

Sets the voiceover script, as one undo step: text, a line for each paragraph (a blank line between); or a list of lines, each text or { id?, text }; or null to have none. A line that reads as one did keeps its id, so its takes are still of it. Returns getScript.

oryvio.getVoiceover()

How voiceovers are recorded (describe().voiceover.options): the panel's options, the track takes go on, the script line read, and the latency they're moved by.

oryvio.setVoiceover(patch: Partial<Pick<VoicePrefs, VoiceOptionKey>> & { trackId?: Id | null; line?: Id | null })

Sets how voiceovers are recorded (describe().voiceover.options), and trackId (a sound track of the open sequence, or null to make one for the first take) and line (a line of its script, or null). Recording itself needs the microphone, which only a click in the panel can turn on. Returns getVoiceover.

Sound effects

oryvio.listSounds(opts: { filter?: SoundFilter; category?: string | null; search?: string } = {})

The library's sound effects (describe().sounds): all of them, or those of filter ('starred' and 'recent' the last first), of category, with each of the words of search. Each with its id, name, kind ('one-shot' or 'loop'), the words it's found by, its length (a range when it can be set, else seconds) and how much room it has.

oryvio.starSound(id: string, starred = true)

Stars sound id (starred true), to find under listSounds({ filter: 'starred' }), or unstars it.

await oryvio.addSound(id: string, opts: { seed?: number; length?: number; pitch?: number; tone?: number; space?: number; at?: number | number[]; from?: number; to?: number; markers?: boolean; trackId?: Id; bin?: boolean } = {})

Makes sound id (seed, length, pitch, tone and space as opts says, else as it first is) and adds it to the project, in the media bin's Sound effects folder, and to the open sequence, as one undo step: a one-shot lined up so it hits at the playhead, at at (seconds, or a list of them), or at each marker (markers); a loop filling In to Out when they're set, from to to, or length seconds from the playhead or at. trackId, a sound track of the sequence, else one free under it all; bin, only into the media bin. The same sound made the same way again is the same media. Returns its media and the clips added, selected.

oryvio.getSound(clipId: Id)

The sound effect clip clipId plays, as it was made (describe().sounds), or null for a clip that doesn't play one.

await oryvio.remakeSound(ids: Id | Id[], patch: { seed?: number; length?: number; pitch?: number; tone?: number; space?: number })

Makes the sound effect clips ids play again made differently (seed, length, pitch, tone and space, as patch says), as one undo step: those of the first one's media among them. A one-shot still hits where it did, a loop fills what it filled; what else is set on them is kept. Returns the clips that play it, or null when nothing changed.

The preset libraries

oryvio.listLibrary(opts: { scope?: LibraryScope; filter?: LibraryFilter; search?: string } = {})

The bin's preset libraries' tiles (describe().libraries): of library scope (effects, transitions, motion or text; all four, by default), all of them in their groups, or those of filter ('starred' and 'recent' the last first, as each library shows them); with each of the words of search in its name, what it does, its group's name or its key. Each with its key (for applyFromLibrary and starInLibrary), library, group, name, what it does and whether it's starred.

oryvio.starInLibrary(key: string, starred = true)

Stars preset library tile key (starred true), to find under listLibrary({ filter: 'starred' }) and its library's Starred, the last first, or unstars it. Stars are kept on this device, for every project, as many as describe().libraries.limits.stars.

oryvio.applyFromLibrary(key: string, opts: { clipIds?: Id | Id[]; at?: number; trackId?: Id; seed?: number } = {}) → { key: string; clips: Id[]; skipped: string[] }

Puts preset library tile key (listLibrary lists them) on clips opts.clipIds (those selected, by default), as clicking or dropping its tile does, as one undo step: an effect at the end of each one's list (as addEffect); a tool done to each (flipping, fitting, cropping or rounding it, adding a mask or tracker, giving off particles, stabilizing it); a transition at each one's start (the project's motion style's, following the style); a crossfade on each with its own sound; a Motion entry on each, an emphasis keyed at opts.at (the playhead), a behavior's or wiggle's randomness opts.seed (another each time); and a text style, a new text clip in its look at opts.at on opts.trackId (as addText), or, given clipIds, those text clips given its look (as styleText). Those it can't go on are passed over, saying why, and it throws when it can go on none. Put on any, it's first in its library's Recent. Returns the clips it changed or added (not those that had it already), and why any were passed over.

Stock media

await oryvio.stockProviders()

The providers stock media is searched at on this server (describe().stock), each with what it has. Throws when signed out, or when none is set up.

await oryvio.searchStock(kind: StockKind, q = '', opts: { provider?: StockProvider; orientation?: StockOrientation; page?: number } = {})

Searches for free stock media of kind (video, photo or music) with the words q ('' for what's popular; music needs words), at opts.provider (else the first set up that has kind), of opts.orientation's shape, page opts.page (from 1). Each found with its provider, kind and id (to give addStock), who made it, its license and credit, its size, length and sizes, and the project's media it already is. Nothing's downloaded.

await oryvio.addStock(item: { provider: StockProvider; kind: StockKind; id: string }, opts: { at?: number; trackId?: Id; bin?: boolean; size?: string } = {})

Downloads item (as searchStock gives it: { provider, kind, id }) into this browser, in the media bin's Stock media folder, keeping where it's from, who made it and its license (asset.stock), and puts it in the open sequence, as one undo step: at the playhead or opts.at, on opts.trackId (a track of its kind there) or one with room. opts.bin: only into the bin. opts.size: its file by its name in sizes (else the one nearest the sequence's frame). Media of it already in the project is used, not downloaded again. Returns its media, its clip (null for the bin), and its credit.

oryvio.getStockCredits(opts: { seq?: Id; from?: number; to?: number } = {})

The stock media sequence opts.seq (the open one) uses from opts.from to opts.to (all of it), in the sequences nested in it too, each once in the order it's first used: who made it, where it's from, its license and its credit, whether that has to be given (CC BY's: wherever the video is shown), and its media here. text is all of them as the export dialog's credits.txt says them ('' for none).

await oryvio.downloadStockAgain(ids?: Id | Id[])

Downloads stock media again whose files have gone from this browser (cleared for space, or the project opened on another computer), from where it was found, into the same media, so its clips keep their edits: ids, or all such. Returns how many came back, of how many were tried.

Generate: images, video, music, voiceovers and sound effects, made in the cloud (agent-generate.ts)

oryvio.generateStatus()

What Generate offers here (describe().generate): each kind's provider, the model's maker it passes the job on to (when it does), model and price in dollars (null when it isn't offered), how a voice of the user's own is made (if it can be), the account's credits, and whether the user's agreed to send each kind's prompts, scripts and voice samples to whoever makes them now. Asks the server, which says who: none of them is named in code.

oryvio.getVoices()

The voices a voiceover can be in: the stock voices of the model the server makes them with (id, name, gender, accent), and the user's own, if made.

oryvio.generateImage(prompt: string, opts?: { shape?: '16:9' | '9:16' | '1:1' | '4:5'; look?: 'auto' | 'photo' | 'graphic'; confirm?: boolean; maxCredits?: number })

An image from prompt, in opts.shape (the project's nearest by default: '16:9', '9:16', '1:1' or '4:5'), looking as described, a photo or a graphic (opts.look: 'auto', 'photo', 'graphic'), brought into the bin's Generated folder, named from the prompt. Paid for in credits: without confirm: true it does nothing and resolves the quote ({ end: 'quote', credits, balance }), to say to the user first; with it, it runs, unless it'd use more than maxCredits. The user's asked, in a dialog, to agree to what's sent the first time. Resolves { end: 'done', assetId, clipId, name, credits, jobId } once it's in the bin.

oryvio.generateVideo(prompt: string, opts?: { seconds?: 5 | 10; shape?: '16:9' | '9:16' | '1:1'; sound?: boolean; from?: 'frame' | Id | null; confirm?: boolean; maxCredits?: number })

A video clip from prompt, opts.seconds long (5 or 10), in opts.shape (the project's nearest: '16:9', '9:16' or '1:1'), with its own sound when opts.sound (it uses more credits), starting on a picture when opts.from says one: 'frame' for the frame at the playhead, or a picture's media id; only that picture is sent with the prompt. Credits, confirm and maxCredits as generateImage's.

oryvio.generateMusic(prompt: string, opts?: { seconds?: number; confirm?: boolean; maxCredits?: number })

Instrumental music from prompt, opts.seconds long (10 to 300; 60 by default), the same credits however long. Credits as generateImage's.

oryvio.generateVoiceover(text: string, opts?: { voice?: string; lang?: 'en' | 'es' | 'pt' | 'fr' | 'de' | 'ja' | 'ko' | 'hi' | 'zh' | null; place?: boolean | number; confirm?: boolean; maxCredits?: number })

A voiceover of text, or with text 'captions', of the selected captions' words (all of the open sequence's with none selected), in opts.voice (getVoices's ids; the first by default), in opts.lang ('en', 'es', 'pt', 'fr', 'de', 'ja', 'ko', 'hi', 'zh'; as written by default). With opts.place (true by default for captions) it's placed on a new sound track: at the playhead, at the first caption, or at place seconds. Credits as generateImage's: by its characters, at the model's price (generateStatus), as the quote says.

oryvio.generateSound(prompt: string, opts?: { seconds?: number; loop?: boolean; confirm?: boolean; maxCredits?: number })

A sound effect from prompt, opts.seconds long (4 by default, within what generateStatus says), made to loop seamlessly with opts.loop where the model does. Credits as generateImage's.

oryvio.cloneVoice(name: string, samples: Blob[], opts?: { consent?: boolean; confirm?: boolean })

A voice of the user's own (made as generateStatus().clone says), from samples (recordings as Blobs or Files: each 5 seconds to 3 minutes, 30 seconds to 4 minutes in all; a minute or two is best), named name, replacing one they had. Only with opts.consent: true, saying the user has told you it's their voice or they have the speaker's permission to clone it; the user's also asked, in a dialog, to agree to sending the samples. Uses 1 credit: without confirm: true it only says so. Resolves { end: 'done', voice } with its id, for generateVoiceover's voice.

The cloud AI: the first cut and best moments

await oryvio.aiStatus()

What the cloud AI offers (describe().ai): whether this server has the first cut and best moments, whether the account's plan has the first cut (Studio's), its credits, and whether the user's agreed to send transcripts and shot lists to Anthropic. Asks the server.

await oryvio.firstCut(opts: { brief: string; media?: Id[]; length?: number | null | 'auto'; shape?: string; captions?: boolean; titles?: boolean; music?: boolean; follow?: boolean; confirm?: boolean; maxCredits?: number })

The AI first cut ("Describe it"; describe().ai.firstCut): media (ids; the bin's, all of it, by default) heard on this computer, then planned by Claude from their transcripts, shot lists and brief, at length seconds (5 to 600; null or 'auto' for what the material calls for) in shape, with captions (true), titles, a music suggestion (true), and, for a shape that isn't the project's, follow (auto-reframe, Pro). Assembled as a new sequence, opened, in one undo step. Studio's, and paid for in credits: without confirm: true it does nothing and resolves the quote ({ end: 'quote', credits: about how many, balance }), to say to the user first; with it, it runs, and stops before sending anything when what it'd hold is more than maxCredits. The user's asked, in a dialog, to agree to what's sent the first time. Resolves how it ended (done, stopped or failed, with why), the plan (sections, b-roll, titles, music, why) and what was made (its sequence's id, a version's, its length and counts).

oryvio.reviseFirstCut(ask: string)

Asks for a change to the last first cut (Revise): planned again from the same transcripts, as another sequence. Paid for in credits, as firstCut is.

oryvio.stopFirstCut()

Stops the first cut being made: nothing's made or charged. Whether one was.

await oryvio.findMoments(id: Id, opts: { count?: number; focus?: string; confirm?: boolean; maxCredits?: number } = {})

Best moments (describe().ai.moments): the media of clip or media id heard on this computer, then its count (8, 1 to 20) strongest moments found by Claude, of the kind focus says (anything by default), a long recording an hour at a time: each with its id, title, hook, why, score (0 to 100), media seconds and the shape it suits. Any plan's, paid for in credits: without confirm: true it resolves the quote and does nothing; with it, it runs, stopping before anything's sent when it'd hold more than maxCredits.

await oryvio.momentSequence(id: Id, momentId: string, kind: 'short' | 'subclip' = 'short')

Moment momentId (findMoments') of the media of clip or media id as a sequence, one undo step: 'short', 9:16 with its captions, opened, following its subject when the plan has auto-reframe; or 'subclip', of just it in the project's shape, to drop into an edit. Its sequence's id.

oryvio.addMomentMarkers(id: Id, momentIds?: string[])

Moments momentIds (all found, by default) of the media of clip or media id as range markers in the open sequence, where it plays them: how many were added, one undo step.

Playback & output

oryvio.seek(t: number)

Move the playhead (clamped to the timeline). Returns the new time.

oryvio.play()

Play from the playhead.

oryvio.pause()

Stop playing, leaving the playhead where it is.

oryvio.audioScrubbing(on?: boolean) → boolean

Audio scrubbing on this device: the mix heard a moment at a time while the playhead's dragged on the timeline (its ruler, the keyframe editor's) or dynamically trimmed, and while it's shuttled faster than 2× or backwards; and in the source monitor, its media's own sound while its position's dragged or it's shuttled past 2× or backwards. Off, those are silent (the source monitor's own player is heard past 2× as the browser plays it). on sets it (it's on unless it's been turned off); left out, it's only read. Returns whether it's on.

oryvio.whenDrawn()

Settles once the viewer has drawn what's at the playhead, after seek, an edit or play say, in a tab that's shown. Rejects when the preview can't run.

oryvio.frameStats(opts: { reset?: boolean } = {})

How the viewer's kept up since the stats were last reset: frames drawn (played: of them while playing), dropped (asked for while playing, a later one drawn in their place) and skipped (stepped over playing at normal speed or slower), and how long frames took, in ms, from asking to drawing (latency) and in the renderer (draw), each { p50, p95, max } of the last 240 drawn, null before any is. opts.reset starts counting again after.

Guides

oryvio.getGuides()

The program monitor's guides: the open sequence's guides, each { id, axis, at }: axis 'x' a vertical line at pixels from the frame's left, 'y' a horizontal one from its top. They're kept with the sequence and undo. prefs: what this device's viewer draws over the picture and what a clip moved in it snaps to (setViewerGuides). zoom: the viewer's, { zoom: 'fit' } or { zoom, label, center }: 1 is one of the frame's pixels on each of the screen's, center the point of the frame in the middle of the viewer.

oryvio.addGuide(axis: GuideAxis, at: number)

Put a guide on the open sequence's frame: axis 'x' (a vertical line) or 'y' (a horizontal one), at pixels from the frame's left or top, rounded. One undo step. Returns its id.

oryvio.moveGuide(id: string, at: number)

Move a guide (by its id from getGuides) to at pixels along its axis, rounded. One undo step. Returns the guide.

oryvio.removeGuides(ids?: string[])

Take guides off the open sequence's frame: those ids say, or all of them. One undo step. Returns how many went.

oryvio.setViewerGuides(patch: Partial<GuidePrefs>)

Set what this device's viewer draws over the picture and what a clip moved in it snaps to (exports never have them). The guides put on the frame: show, locked (they can't be moved, removed or added to), rulers. Snapping: smart (to the frame's edges and middle and other clips), snapGuides (to guides and overlays' lines shown), snapGrid. Overlays: center, thirds, golden, spiral, spiralTurn (0 to 3: the spiral's eye in each corner), action, title, safeSet ('smpte': HD's action 93% and title 90%; 'classic': SD's 90% and 80%), platform ('' or a vertical platform's id, as exportFor has them: shades where its buttons cover the picture), grid, gridSize (10, 20, 40, 50, 100 or 200 pixels), pixels (a pixel grid from 800%), horizon, horizonY (0 to 1 down the frame), horizonAngle (−45° to 45°) and transparency (a checkerboard where nothing's drawn, as an export with transparent left clear, in place of the background color). Each is true or false but those. Returns them all.

oryvio.setViewerZoom(zoom: number | 'fit', center?: [number, number])

Zoom the program monitor, while it's shown and isn't comparing: 'fit', or a level from 0.1 to 16 (1 is one of the frame's pixels on each of the screen's), with center, [x, y] in the frame's pixels, the point to put in the middle of the viewer (the middle of what's in view when left out). Returns the zoom, as getGuides has it.

Health and diagnostics

oryvio.health()

Project health, worked out now: what's wrong with the project or with how it plays here, the worst first, each { key, kind, tone, title, detail, places (stretches of the timeline, s), fixes (each a kind and a label, as the panel's buttons) }; and how many found are ignored. Where playback lost frames is known once played.

oryvio.checkProject()

The open project as it would be read back where it's kept, on this device or the server, as opening it reads it: { repairs, changed }, what of it would be repaired (in English), and where it would come back other than it is now, as paths into it ("clips.c3.effects.0"), at most 20. Both empty for a project that reads back as it is.

oryvio.ignoreIssue(key: string | false)

Stops saying an issue (by its key from health()), for this project on this device, until it changes. false says them all again.

await oryvio.timeFrame(t?: number)

Times what the frame at t seconds of the open sequence (the playhead's when left out) costs to draw, as the preview draws it: { drawMs, fetchMs, width, height, backend, clips: [{ clipId, ms, parts: [{ part, ms }] }], partial }, costliest first, each what it saves turned off. Settles null when it's stopped, by playing say.

await oryvio.diagnostics(opts: { windowMs?: number; report?: boolean } = {})

Diagnostics, gathered now over the last opts.windowMs (250 to 10,000; 2,000 when left out): the renderer (backend, state, restarts, and what the render worker measured: how busy it and, on WebGPU, the GPU were, decoding's rate, waits and seeks, what's open), frames drawn and played a second with render and fetch times, sound, analysis and the other workers, memory, proxies, the running or last export's time by stage, and what this browser can do. With notes on what's wrong, the worst first, and since, the counts since the diagnostics window's Reset. page.fps is null unless the diagnostics window or the viewer's stats are open. opts.report adds the report the window copies, as text: media's counted, not named.

Export

await oryvio.renderFrame(time: number, opts: { width?: number; as?: 'dataUrl' | 'blob'; seq?: Id; for?: SocialId; shape?: string; frame?: { width: number; height: number }; reframe?: Partial<Reframe>; safe?: SafeArea; safeCaptions?: boolean; captions?: boolean; version?: Id; transparent?: boolean } = {})

Render one frame exactly as export would. Returns a PNG data URL (or Blob with as: 'blob'), width pixels wide (640 when left out). seq defaults to the open sequence. With for (socialPresets()), or a frame of its own size, it's drawn as exportVideo would draw it with them and the same shape, reframe, safe, safeCaptions and captions: reframed into that frame, its captions laid out for it. With version (getVersions), it's drawn as that version of the sequence lays it out, at its frame unless frame says. With transparent, it's left clear where nothing's drawn, as a transparent export leaves it.

oryvio.socialPresets()

Where an export can be set up for (exportVideo's and renderFrame's for): each place's shapes, with the frame each is exported at for this project, what's kept clear of what the app puts over the video (safe, shares of the frame from each side), how a picture of another shape is put in it, and its bitrate; how long a video it shows as what it's for, in seconds, and the biggest file it takes, in bytes, where there's a limit. On the free plan, a frame's no more than 1080p.

await oryvio.exportVideo(opts: Partial<Omit<ExportOptions, 'reframe'>> & { for?: SocialId; shape?: string; reframe?: Partial<Reframe>; safeCaptions?: boolean; onProgress?: (p: number, fps: number) => void; download?: boolean; signal?: AbortSignal } = {})

Export the project. Resolves with the encoded file; rejects with the reason (unsupported settings, a failure partway through, or cancellation through signal). Non-fatal problems end up in getState().lastExportWarnings. Its captions are burned in unless captions is false (exportCaptions then gives them as a file to go with it). A project that isn't Rec.709 is exported in its own color unless color is 'rec709' (getState().lastExportFile says how it was). The file is written to the browser's storage as it's made, where it can be, and stays there while the blob's kept (and five minutes after). On the free plan, an export over 1080p (its shorter side over 1080, or its longer over 2560) or in HDR is refused: those are part of Pro. One for a place is made at 1080p there.

for sets it up for a place (socialPresets() lists them): its frame in shape (the place's nearest the project's unless it's said, as "9:16"), its frame rate, bitrates and file name; its captions laid out for the frame clear of what the app puts over it, unless safeCaptions is false. A frame of another shape than the project's is cropped to fill one narrower and fitted over a blur of itself in one wider, unless reframe says (mode fill, fit or blur; a crop's x and y from 0 to 1, where it's taken from), and is in SDR Rec.709. Its fps, bitrate, audioBitrate, color and safe can still be set; its width, height, format and quality can't. Without for, reframe, safe, bitrate (in place of quality's) and audioBitrate work as they do with it, a frame of another shape fitted.

format (describe().exports lists them) is an MP4 (by default), MOV or WebM video in codec ('auto', the first of the format's this browser encodes, by default; a MOV's is ProRes, its prores profile 'hq' unless it's said, with pcm sound; or DNxHR or DNxHD, codec 'dnxhr' or 'dnxhd', its dnx profile 'hq' or '220x' unless it's said), an MXF OP1a ('mxf': DNxHR, or codec 'dnxhd', its dnx profile likewise, with 24-bit sound and its timecode; describe().exports.dnx), a GIF ('gif', at 480 a short side and 15 fps unless they're said, dithered and looping unless they're false), every frame as an image (image: 'png', the default, 'jpeg', or 'exr', 'tiff' and 'dpx', made from the GPU's half floats: half-float linear OpenEXR, 16-bit TIFF, 10-bit DPX) in a ZIP ('frames'), or the sound alone as a WAV (pcm bits, 24 unless it's said), a FLAC (pcm 16 or 24), an AAC .m4a or an Opus .opus; or as stems ('stems', stems: { pick: 'tracks' (the default), 'buses', 'all' or a list of track and bus ids, master: false }), a WAV of pcm bits for each, in a ZIP (describe().exports.about says what each holds). A GIF, images, ProRes and DNx are in SDR Rec.709; sound alone has no width, height or fps, nor a video's bits or rate control.

bits 10 makes an SDR Rec.709 video 10-bit (HEVC, AV1 or VP9, codec 'auto' picking the first this browser encodes so), tagged BT.709. bitrate (bits a second), bitrateMode ('variable', 'constant', or 'quantizer' for a constant quality at quantizer, on the codec's scale: describe().exports.rateControl) and keyframeInterval (seconds; 0 for every frame) set a video's rate control in place of quality's. ProRes has neither: its profile sets them.

transparent leaves the picture clear where nothing's drawn, rather than the project's background: a WebM in VP9 or VP8 (its codec one of those unless it's said), a MOV in ProRes 4444 or 4444 XQ (4444 unless prores says), a GIF (each pixel clear or not, at half its alpha) or PNG images. It's in SDR Rec.709.

version (getVersions) exports that version of the sequence: at its frame unless width and height say, laid out as it has it, its captions kept in its safe area. for, shape, safe and safeCaptions are the master's and are refused with it.

An MP4 or MOV has a timecode track (tmcd) saying its first frame's timecode, from the sequence's start timecode and the range's start at the export's rate, drop frame where it is, unless timecodeTrack is false. embedCaptions (caption track ids) carries captions in the file as tracks of their own, off until a player turns them on: an MP4's each as 3GPP timed text (tx3g) in its language, a MOV's one as CEA-608 closed captions (c608), with what didn't fit 608 in getState().lastExportWarnings, a WebM's each as WebVTT (S_TEXT/WEBVTT) in its language. They're as well as burned in unless captions is false.

channels: a sequence mixed in 5.1 (setMixFormat) exports its sound in 5.1 ('5.1', the default for it: a WAV of six channels saying its speakers, a FLAC of six, AAC or Opus in 5.1 where this browser encodes them, a video's sound likewise, stems each 5.1) unless this is 'stereo', its ITU-R BS.775 fold-down. One mixed in 7.1 exports in 7.1 ('7.1', its default: eight channels in WAV's order, L R C LFE Lrs Rrs Ls Rs, a WAV's mask 0x63F), or folded to '5.1' (each rear surround into its side's surround) or 'stereo'. A stereo mix's is stereo.

Pro's (refused on the free plan, saying so): DNxHR and DNxHD (an MXF, or a MOV in DNx), bits 10, images 'exr', 'tiff' and 'dpx', and channels '5.1' or '7.1'. On the free plan a surround mix's sound is exported folded to stereo, said in getState().lastExportWarnings.

Inspector

oryvio.inspector(clipId?: Id)

How the Inspector lays out clip clipId, or the one clip selected: { clip, kind ('visual', 'text', 'audio', or 'other' for a camera or light, which aren't grouped), lead (the sections before the groups: what the clip is), groups: [{ id, label, sections, inUse }], rest, inUse (its sections set: changed from how a clip is made, or animated) }, sections listed by the ids showSection() goes to. Some sections draw nothing when they've nothing to say (a template's, for a clip made from none). Throws when there's no such clip, or, without one, unless one clip is selected.

await oryvio.showSection(id: string)

Open the Inspector's section id (one inspector() lists) for what's selected, scroll to it and focus its header, as the palette's "Show in the Inspector" does. Resolves false when it isn't showing: select the clip first.

Command palette

await oryvio.actions(query?: string)

The command palette's commands, as things are now: { id, title, group, keys (its shortcut, or null), blocked (why it can't be run now, or null), checked (for a setting it turns on and off: whether it's on, else null), detail }. Every one, the long lists of effects, looks and the rest too; or, with query, those answering it, best first, as the palette finds them. Ids stay the same from one version to the next.

await oryvio.runAction(id: string)

Run the command palette's command with this id (from actions()), as picking it there does. Refused when there's no such command now, or it can't be run now, saying why. Commands that open something (a dialog, a section of the Inspector) open it.

Keyboard shortcuts

oryvio.shortcuts()

The keyboard shortcuts, as they work on this computer: { set: the set they start from, sets: [{ id, name, about }], keys: { [command id]: [key] } for every command with keys, changed: [ids of commands whose keys aren't the set's], problems: [keys given to commands that don't work here: { id, key, why }], canChange: whether they can be changed (someone's signed in: they're kept with the account) }. A key is written as "Mod K", "Shift ArrowLeft", "Alt 9" or "?": Mod is ⌘ on a Mac and Ctrl elsewhere, and Ctrl a Mac's Control. Command ids are actions()'.

await oryvio.setShortcut(id: string, keys: string[] | null)

Give a command (an id from actions()) these keys and no others, in this order: up to 4, written as shortcuts() says ("Mod K", "Ctrl Shift Z", "⌘K" and "cmd+shift+z" are read too), [] for none; or, with null, its set's keys again. A key another command has is taken from it. Returns { keys: the command's keys now, took: [{ key, from: the command it was taken from }] }. Refused when no one's signed in, for a key the browser or the computer keeps for itself or that does the same thing all over the editor (Esc, Tab, F1), saying why, and for something that isn't a key.

oryvio.chooseShortcutSet(set: string)

Start from another set's keys (shortcuts().sets): "oryvio" (the editor's own), "premiere", "resolve" or "fcp". Keys given to commands go. Refused when no one's signed in.

Controllers

oryvio.controllers()

Controllers and what their controls do: { devices: [{ key, family, name, connected, busy?, controls, changed }], midi, hid, canChange, motions }. A device's key is what its controls are kept by ("gamepad" for any game controller the browser lays out the standard way, "midi:<port name>", "shuttle:0b33:0030", "deck:0fd9:0080"): devices alike share one. family is "gamepad", "midi", "shuttle" or "deck"; connected, whether one's plugged in now (one that isn't is listed when its controls were changed); busy, that another app has it, so its controls do nothing here. controls is what each control does, { [control]: binding }, those doing nothing left out; changed, the controls given something other than what they start with. Controls are named "button:0", "axis:1", "note:<channel>:<note>", "cc:<channel>:<number>", "bend:<channel>", "program:<channel>:<number>"; a jog/shuttle's "ring", "jog" and "button:1"…; a Stream Deck's "key:0", "dial:0", "press:0" and "touch:0". They're numbered from 0, but MIDI channels and a jog/shuttle's buttons, from 1. A binding is { command: an id from actions() } or { motion: one of motions }, with speed (0.1 to 10, 1 when it isn't said), invert, enc (how a MIDI control change is read: "absolute" when it isn't said, "centered", or steps as "twos", "offset" or "signbit"; a pitch bend "absolute" or "centered") and jump (a control along its travel sets the value at once, rather than picking it up as it gets there). midi is "off", "asking", "on", "denied" or "unsupported"; hid, whether jog/shuttles and Stream Decks can be connected in this browser. They're connected in the Controllers dialog (Help ▸ Controllers…): browsers ask for leave only as the person clicks. canChange: whether what controls do can be changed (someone's signed in: it's kept with the account).

await oryvio.mapControl(device: string, control: string, binding: Binding | null)

Give a device's control (its key, and the control's name, as controllers() says them) a binding, as controllers() says one is; or null, for nothing. Given what it starts with, it's put back. Returns what it does now. Refused when no one's signed in; for a control the device can't have, a command there isn't, one asking for a device (browsers let those be run only as the person clicks) or a motion there isn't; and when it can't be kept: the controls of at most 8 controllers, and 400 controls in all, can be changed.

oryvio.resetControls(device: string, control?: string)

Put a device's controls back as they start: all of them, or the one named. Refused when no one's signed in.

The project

What’s in a project, as oryvio.getProject() returns it, and the ops that change it.

A Project has settings, assets (imported media), tracks (top to bottom; visual above audio; upper visual tracks render on top) and clips keyed by id. All edits are Ops applied atomically; every dispatch is one undo step. Commands throw a descriptive Error on invalid input and leave the project unchanged. Clips on locked tracks can only be changed with dispatch. Await oryvio.ready before the first call.

Ops

Each is { type, ...what it takes }, given to oryvio.dispatch() alone or several in a list: the list is one undo step.

All 45 ops

A clip’s fields

All 63 fields

Effects

160 effects in 19 groups, each added with oryvio.addEffect(clipId, type, params).

Blur: 11
Sharpen: 3
Color: 15
Light: 5
Glow: 7
Lens: 14
Film: 14
Grain: 4
Distortion: 16
Glitch: 17
Stylize: 9
Texture: 11
Noise: 7
Vignette: 2
Compositing: 6
Keying: 10
Atmosphere: 6
Time: 2
3D: 1

Everything else

The rest of what oryvio.describe() gives, as it gives it.

effectBlends
nodes
trackMattes
audioFx
silences
voiceover
sounds
stock
music
presets
libraries
brand
packs
thumbnails
layouts
looks
motionStyle
expressions
soundLinks
text
particles
shapes
charts
models
lights
color
luts
logos
panZoom
paint
qualifier
grading
colorMatch
masks
trackers
multicam
versions
cameraSolve
speed
stabilize
captions
ai
generate
interchange
lottie
mixer
templates
exports
social
mediaQuery