Repository navigation
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.tsxHighlights
-
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 aneffectslist, a speed ramp is keys onspeed, and held frames arefreezes.
<Keyframe>,<Effect>,<SpeedKey>,<Freeze>andautomationare 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 installfetches them ahead. -
A
recoloreffect. 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 blockslists them, anduberscene blocks adddrops one into a file. -
The editor.
@uberscene/editorgives 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 lintruns the checks from the command line, and--fixapplies 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, andvolumeandpankeys replace the removed
elements andautomation. - One name for one idea.
- A kind is always
type: a shape'sshape, a title'sanimation.preset, a lower third'svariant,
background.mode, an SVG'scolor.mode. - A line's width is
thickness. - A shadow's
radiusisblur. - The zoom transition's
blurissmear, and the scanlines effect'sthicknessiscoverage. - Values are camelCase (
easeInOut).
- A kind is always
- One way to style text: a title's look is one
style(a preset name, or an object offont,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:
fiton titles, shapes and stickers;blendOpacityoutside clips;
transformon<Adjustment>. Delete them; the picture doesn't change. Not moved by--fix. - Removed components:
Frame,Background,ProgressBar,Arrow,HighlightandQuoteCard. Draw them as a
<Shape>, a background or free code; a quote is thequote-buildblock. Not moved by--fix. - Time in ticks: frame and sample maths are exact,
FRAME_EPSis gone, andfpstakes NTSC rates such as
"29.97". - The kit is split:
@uberscene/kitkeeps 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/sdkand@uberscene/editor. - All packages share the version 0.6.0. Each package's
CHANGELOG.mdlists 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 --forcedeletes nothing it didn't write.
Upgrade
npm install uberscene@0.6.0 @uberscene/kit@0.6.0
npx uberscene lint --fix src/**/*.tsxTools built on the kit's resolver or actions add @uberscene/sdk and move those imports to it.