VIP early access teaser: trim 6 seconds from the hero clip, add a card

Cut a 6-second VIP teaser from the sale hero clip with video trim ($0.02), then burn the early-access time as cues. The code stays out of the public cut.

4 min readSume
All posts

Cut the teaser from your finished hero clip with video trim, a $0.02 job per cut, then burn the early-access time on it as a cue with video captions at $0.20 per clip up to 60 seconds. Put the early-access time and where to sign up in the card, and keep the access code itself for the email or SMS.

Trim: exact start, no audio

Video trim takes video_url, start and exactly one of end or duration. duration is 0.2 to 900 seconds. precision is exact by default (frame-accurate) or keyframe. audio is keep or drop. The source must be your workspace's media.sume.com artifact, up to 1800 seconds long, so import it first. The source clip is not changed.

For a teaser you usually want drop, because the music bed or voiceover is added later or not at all. Cutting from the hero clip means the product shots match the main sale film.

The request

The script submits a six-second cut starting at 12 seconds. The result is a job you poll at GET /v1/jobs/:id/status and /result. Feed the trimmed MP4's URL to the caption step.

import json, os, urllib.request

def post(path, body, key):
    req = urllib.request.Request(
        "https://api.sume.com" + path, json.dumps(body).encode(),
        {"Authorization": "Bearer " + os.environ["SUME_API_KEY"],
         "Content-Type": "application/json", "Idempotency-Key": key})
    return json.load(urllib.request.urlopen(req))

trim = post("/v1/video-trim", {
    "video_url": "https://media.sume.com/artifacts/artf_demo/hero.mp4",
    "start": 12.0, "duration": 6.0, "precision": "exact", "audio": "drop"},
    "vip-teaser-trim-v1")
print(trim.get("request_id"))  # poll /v1/jobs/<id>/result, then caption the trimmed MP4

What the card should say

  • The start time with a time zone ("Early access from 8pm Thursday, your local time" is only right if the system really does this).
  • Where the audience gets the code: email list, SMS, account.
  • Nothing that implies a public price you have not yet set.
  • The end of the early-access window, so the sale and the access window are both clear.

Keep the code out of the clip

A public video is public. If the early-access code is in it, it is no longer early access. The point of a gate card is to tell people how to get in, not to be the key. If you want a unique link per recipient, that is an email or SMS job, not a video job.

Limits

Trim is a cut, not an edit: no effects, no overlay. Assembly and transitions belong to Timeline 1.0. Check the source length against the 1800-second limit before you queue many cuts. A teaser also needs a reason to exist: if the early-access group is small, a plain email with the hero clip attached to the page may do the job for no video cost at all. Cut a teaser when the audience is large enough that the time-limited start is the message, and test the first three seconds on a phone, because that is where most viewers decide whether to continue.

Sources

Related posts

More in Use cases

All Use cases posts

Written by Sume