Skip to content

feat(screenshots): a recording toolbar, smaller movies with sound, and playback in the editor - #2166

Merged
kitlangton merged 13 commits into
devfrom
screenshots-recording-toolbar
Nov 21, 2026
Merged

kitlangton merged 13 commits into
devfrom
screenshots-recording-toolbar

Conversation

@kitlangton

Copy link
Copy Markdown
Collaborator

Labs › Screenshots can now record the screen properly: ⌘⇧5 opens a small recording toolbar, the movie is sharp and small, it can keep your voice and the computer's sound, and the editor plays it back before you export.

Everything here is behind Labs › Screenshots, which is off by default. Annotate's own captures, dictation and the microphone dictation uses are unchanged.

Before / After

Recording toolbar

Before After

Icons only, with names in tooltips. With two displays, a chevron inside Full screen picks which one. Light mode: after.

Recording editor

Before After

A play button beside the trim strip (or Space) plays the kept span with sound, and a white playhead moves through it. The size chip says what the export will weigh. Save is now Export. Light mode: after.

What changes

before                                       after
⌘⇧5        -> nothing by default             -> toolbar: ✕ [Area|Window|Full screen ▾] 🎙▾ ⚙▾ ● Record
movie      -> HEVC at quality 0.7, Retina    -> 1x by default, max size, 30/60 fps, High/Med/Low
              (330 MB for a busy 46 s clip)     (High: 93 MB, Medium: 35 MB, Low: 21 MB)
sound      -> dictation's microphone only    -> any microphone or none, plus computer audio,
                                                mixed into one AAC track when the movie saves
Copy       -> a still frame                  -> the movie file (pastes as an attachment)
export     -> Original only                  -> Original, 1080p or 720p, with a size estimate
editor     -> scrub only                     -> play/pause with sound, playhead inside the trim

Keyframes now come every 2 s rather than every 5 s, so a trim without re-encoding lands close to the cut. That costs about 5% on a busy screen.

Busy 46 s clip, 1920×1016 Size Bitrate
Old (quality 0.7) 330.9 MB 57.3 Mbit/s
High (0.50) 92.6 MB 16.0 Mbit/s
Medium (0.30) 35.2 MB 6.1 Mbit/s
Low (0.20) 21.3 MB 3.7 Mbit/s

Proof

  • cargo clippy --bin hex is clean. The screenshot, capture, i18n, settings and labs tests pass (618).
  • New tests cover the playhead moving through the span and stopping at its end, the toolbar's choices, the sound button's name, the export estimates, and the per-recording microphone.
  • The stills above come from offscreen renders of the real views.
  • Not observed yet: a real recording on a Mac with a second microphone or computer audio, and playback with sound.

Read: src/rune_ui/capture_capsule/toolbar.rs and src/screenshots/toolbar.rs (the toolbar), src/capture_host/microphone.rs (the second microphone), and editor/clip.rs (playback).

… (t1607)

Labs › Screenshots gets a Recording group (Scale Retina to 1x, Max resolution, Frame rate, Quality), each with a hex settings key; defaults 1x, Original, 30 fps, High (HEVC 0.50). The editor copies a recording's movie file, and its export-size pop-up (Original, 1080p, 720p) shows an estimate for the span kept, re-encoding off the UI thread with progress on the pressed button. (t1607)
… keeps no audio; Annotate may take the record key while the Lab is off (t1607)
@kitlangton
kitlangton merged commit 4f3a45e into dev Nov 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant