Making clips

End card, stamp and watermark

Finish a clip with a card that sends viewers back, and brand every frame with a logo or a line of text.

End card

endCard adds a silent card after the clip, faded in over its last frame: your logo, the publisher, the title, a call to action and the article's address on an accent pill. Everything defaults from origin, so {} is usually enough.

await createSplice({
  source,
  start: 42,
  end: 52,
  origin: {
    url: 'https://www.acme.news/2026/10/tides-rising',
    title: 'Tides are rising',
    publisher: 'Acme News',
  },
  endCard: { logo: 'https://cdn.acme.news/logo.svg' },
})
OptionTypeDefaultDescription
durationnumber2.5Seconds the card stays up
titlestringorigin.titleThe headline
publisherstringorigin.publisherDrawn in the accent colour, above the headline
displayUrlstringorigin.url, made readableThe address shown
ctastring'Watch the full video at'The line above the address; '' hides it
logoBlob | string | URL-Loaded before the clip starts
theme{ background?, color?, accent? }deep green, white, goldThe address sits on an accent pill

By default the address is the origin's URL without its scheme, www., query, hash or trailing slash, so https://www.acme.news/2026/10/tides-rising?utm=x shows as acme.news/2026/10/tides-rising. It's drawn as large as fits, and shortened in the middle if it still doesn't.

Stamp

stamp draws a logo in a corner of every frame of the clip (not the end card, which has its own).

await createSplice({
  source,
  start,
  end,
  stamp: {
    logo: '/logo.svg',
    position: 'top-right',
  },
})
OptionTypeDefaultDescription
logoBlob | string | URL-The image
position'top-left' | 'top-right' | 'bottom-left' | 'bottom-right''top-right'The corner
sizenumber0.18The longer side, of the width
opacitynumber0.9

The margins keep it clear of what TikTok, Reels and Shorts draw over a 9:16 video: the status bar at the top, the caption at the bottom, and the button rail down the right.

Watermark

watermark draws a band of text, such as the site name, across the top or bottom of every frame.

await createSplice({
  source,
  start,
  end,
  watermark: {
    text: 'acme.news',
    position: 'bottom',
  },
})

Logos never fail a clip

Logos load through an <img crossOrigin="anonymous">, so an image on another origin needs CORS headers; without them it fails to load rather than tainting the clip's canvas. A logo that can't be loaded is left out and reported through onWarning. SVGs are drawn at 1024 pixels on their longer side, so they stay sharp at 1080x1920.

munsonlabs · MIT licensed · © 2026