Skip to content

v0.0.0-alpha.18

Pre-release
Pre-release

Choose a tag to compare

@lrstanley lrstanley released this 25 Nov 04:33
· 1 commit to master since this release
v0.0.0-alpha.18
ad47241

Highlights

Video at up to 240 frames a second

MP4 and WebM recordings now go up to 240 FPS. Frames used to sit on a 10ms grid, capped at 100 FPS, because GIF stores hundredths of a second. Now each frame lasts exactly 1s/FPS, and each format rounds frame timings to its own clock without drifting, so 120 FPS plays at 120, and 30 FPS in a GIF plays at 30 on average.

Each format has its own highest rate, from sink.MaxFrameRate(format):

Format Highest FPS
.gif 50
.webp 90
.mp4, .webm, .png 240

An output can set its own rate with File.FPS, or ?fps= in a file URL, in place of the profile's. To write a GIF and a 120 FPS MP4 from one recording:

STEEP_EXPORT='{name}.gif,{name}.mp4?fps=120'

An FPS over an output's highest rate is an error, rather than being quietly rounded, and the error suggests the ?fps= to give that output. See Frame rates.

Backdrops behind a translucent window

The margin fill is now a backdrop: what's behind the whole window, as a desktop is behind a terminal. render.WithBackdrop takes render.Solid, render.LinearGradient, or render.Wallpaper (an image scaled to cover the frame), and render.WithBackgroundOpacity makes the window's background translucent so the backdrop shows through it. In the reel command, --backdrop replaces --margin-fill and also takes an image file or none, and --opacity sets the window's opacity. See Backdrop and Opacity.

Upgrading

These are breaking:

  • .gif outputs above 50 FPS, and .webp above 90, are now errors. Lower FPS or STEEP_EXPORT_FPS, or give the output its own rate with ?fps=.
  • sink.MaxFrameRate is now a function of the format, not a constant.
  • A custom video sink.Driver now gets frame delays in its format's unit, sink.FrameTick(format) (microseconds for MP4), rather than whole milliseconds.
  • render.WithMarginGradient is gone: use render.WithBackdrop(render.LinearGradient(...)), and render.WithMargin takes only a size.
  • The reel command's --margin-fill is now --backdrop.

Installing reel

  • brew install lrstanley/tap/reel (macOS and Linux, through Homebrew).
  • Prebuilt binaries for Linux, macOS, and Windows, on amd64 and arm64, are attached to the release.

Changelog

⚠️ Breaking Changes

🧹 Misc

1 change

Full changelog: v0.0.0-alpha.17...v0.0.0-alpha.18

📦 Install

go get getsteep.dev/steep@v0.0.0-alpha.18
go install getsteep.dev/steep/cmd/reel@v0.0.0-alpha.18
go get getsteep.dev/steep/reel@v0.0.0-alpha.18
go get getsteep.dev/steep/reel/sink/native@v0.0.0-alpha.18

Docs:

💬 What to do next?