Skip to content

Release v0.6.0

Latest

Choose a tag to compare

@bsnisar bsnisar released this 22 Nov 22:04
· 19 commits to main since this release
Immutable release. Only release title and notes can be modified.
7cafb47

UberScene 0.6 makes a video file shorter and plainer to write, opens the export to footage Chrome can't read, and
splits the kit so tools and video files each import only what they need.

It has breaking changes. Most files move with one command:

npx uberscene lint --fix video.tsx

Highlights

  • Everything about an element is a prop. A value is a constant, or a list of { at, value, easing? } keys when
    it changes. Effects are an effects list, a speed ramp is keys on speed, and held frames are freezes.
    <Keyframe>, <Effect>, <SpeedKey>, <Freeze> and automation are gone.

    <Clip id="pour" src="asset:coffee" in={8} out={14}
      transform={{ scale: [{ at: 0, value: 1, easing: "easeInOut" }, { at: 3.5, value: 1.2 }] }}
      effects={[{ type: "lut", src: "asset:warm" }]}
      speed={[{ at: 0, value: 1 }, { at: 1.6, value: 0.4 }]} />
  • Clips straight in the composition. A cut needs no <Track>. Clips written in <Composition> play in order as
    the main track, and tracks written beside them draw on top.

    <Composition width={1920} height={1080} fps={30}>
      <Clip id="opening" src="asset:intro" />
      <Clip id="interview" src="asset:talk" in={2} out={12} />
    </Composition>
  • Native codecs (experimental). With UBERSCENE_CODECS, UberScene decodes and encodes with its own Rust codecs
    (FilmCraft's craft-video and craft-audio, no FFmpeg). They read HEVC, ProRes and DNxHR, which Chrome can't without
    a GPU, and write H.264, ProRes masters in .mov (--codec prores) and the soundtrack. The first native export
    downloads them for your machine from this release; npx uberscene codecs install fetches them ahead.

  • A recolor effect. It turns one colour into another and leaves the rest of the picture:
    effects={[{ type: "recolor", from: "#c4202b", to: "#2f9e4f" }]}.

  • Blocks. Nine scene-sized pieces of motion design ship with the CLI: ranked lists, bar races, chat reveals,
    terminal typing and more. uberscene blocks lists them, and uberscene blocks add drops one into a file.

  • The editor. @uberscene/editor gives editor parts that share one player (preview, layers, timeline). A shadcn
    editor builds on them: npx shadcn add https://uberscene.prefixtree.xyz/r/editor.json.

  • uberscene lint runs the checks from the command line, and --fix applies their fixes, the 0.6 renames
    included.

Breaking changes

uberscene lint --fix moves each of these, except where noted.

  • Props, not children: keys, effects, speed, freezes, and volume and pan keys replace the removed
    elements and automation.
  • One name for one idea.
    • A kind is always type: a shape's shape, a title's animation.preset, a lower third's variant,
      background.mode, an SVG's color.mode.
    • A line's width is thickness.
    • A shadow's radius is blur.
    • The zoom transition's blur is smear, and the scanlines effect's thickness is coverage.
    • Values are camelCase (easeInOut).
  • One way to style text: a title's look is one style (a preset name, or an object of font, size, color
    and the rest), not thirteen flat props.
  • One coordinate system: every element that draws is placed by box, in pixels from the top left.
  • Props that were never drawn are errors: fit on titles, shapes and stickers; blendOpacity outside clips;
    transform on <Adjustment>. Delete them; the picture doesn't change. Not moved by --fix.
  • Removed components: Frame, Background, ProgressBar, Arrow, Highlight and QuoteCard. Draw them as a
    <Shape>, a background or free code; a quote is the quote-build block. Not moved by --fix.
  • Time in ticks: frame and sample maths are exact, FRAME_EPS is gone, and fps takes NTSC rates such as
    "29.97".
  • The kit is split: @uberscene/kit keeps what a video file imports. Tools import from the new @uberscene/sdk
    (resolver, actions, executor, write-back) and @uberscene/kit/schema (the vocabulary as data). Video files need no
    change.
  • Chrome 157 only: the export refuses any other Chrome named by UBERSCENE_CHROMIUM.

Packages

  • New: @uberscene/sdk and @uberscene/editor.
  • All packages share the version 0.6.0. Each package's CHANGELOG.md lists every change.

Fixes

  • Security:
    • An SVG from someone else can no longer run script: its cleaning now ignores case and namespaces.
    • An asset id can no longer reach a file outside the media folder through the export's local server.
  • Export:
    • A failed export keeps the file it would have replaced.
    • A missing asset stops the export at once, and a cancel stops it straight away.
    • Long exports no longer run out of memory.
    • A frame that fails to decode is reported instead of repeating the last one.
  • Player:
    • Reverse playback decodes every frame.
    • WebGL contexts, shaders and audio contexts are released.
    • A box with keys keeps its size.
    • Timecode is right at rates such as 12.5 fps.
  • Editing:
    • Removing, splitting and trimming a clip carry what is anchored to it.
    • Undo then save writes an element once.
    • Saves no longer fail after a track is deleted.
    • An edit that would break the file is refused (BREAKS_FILE).
  • Other:
    • narrate() times text in any script.
    • Long anchor chains are no longer reported as cycles.
    • uberscene skills install --force deletes nothing it didn't write.

Upgrade

npm install uberscene@0.6.0 @uberscene/kit@0.6.0
npx uberscene lint --fix src/**/*.tsx

Tools built on the kit's resolver or actions add @uberscene/sdk and move those imports to it.