Repository navigation
v0.0.0-alpha.18
Pre-releaseHighlights
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:
.gifoutputs above 50 FPS, and.webpabove 90, are now errors. LowerFPSorSTEEP_EXPORT_FPS, or give the output its own rate with?fps=.sink.MaxFrameRateis now a function of the format, not a constant.- A custom video
sink.Drivernow gets frame delays in its format's unit,sink.FrameTick(format)(microseconds for MP4), rather than whole milliseconds. render.WithMarginGradientis gone: userender.WithBackdrop(render.LinearGradient(...)), andrender.WithMargintakes only a size.- The
reelcommand's--margin-fillis 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
- aea1120: reel: backdrops behind a translucent window (@lrstanley)
- 7da2e93: reel: record video at more than 100 frames a second (@lrstanley)
🧹 Misc
1 change
- a2f2b7b: upload coverage to codecov with OIDC (@lrstanley)
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.18Docs:
- getsteep.dev/steep
- getsteep.dev/steep/cmd/reel
- getsteep.dev/steep/reel
- getsteep.dev/steep/reel/sink/native
💬 What to do next?
- 🙋♂️ Running into an issue or want a specific feature? Take a look here!
- ⌚ Find previous releases.
- 🔗 Other useful links: