Skip to content

CapCut-style features: keyframes, Whisper captions, Demo Studio, text layout, effects, backgrounds - #13

Merged
tinygusie2 merged 8 commits into
mainfrom
capcut-features
Sep 29, 2026
Merged

tinygusie2 merged 8 commits into
mainfrom
capcut-features

Conversation

@tinygusie2

@tinygusie2 tinygusie2 commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

What

Makes Motion Studio a closer CapCut replacement.

  • Editing: keyframes and more transitions, clip sound, silence cutting, cutting words from the captions, removing projects from the list
  • Captions: automatic captions from audio with Whisper (runs locally, word-exact timing)
  • Demo Studio: operate a web app or Android phone inside the editor and record it, with taps, swipes and long presses turned into animated touches (also touches made on the phone itself), plus demo data typed into forms; smooth H.264 live view for Android; the delay between a tap and the screen's reaction is measured per recording
  • Text-only layout: no device, headlines centered, in every format
  • Headline effects: per headline choice of how it comes in and goes out
  • Background scenery: rings, blurred colors, aurora, grid, gradient, spotlight or plain, with crossfades during the video

Docs (README, docs/ARCHITECTURE.md) are updated for each feature.

Testing

  • npm run check, npm test (81 pass, 1 skipped: the Android device test only runs with MS_TEST_ANDROID), npm run test:ui (20 pass)
  • Android live view and touch capture were measured on an emulator only (about 64 fps live view, tap delay about 0.1 s); a real phone, and wireless adb, were not tried with recording
  • Not yet done from the original list: speed ramps and background removal
  • One Chrome-based test (a phone page: taps click, swipes scroll…) failed twice under load and passed on rerun; not investigated

tinygusie2 and others added 8 commits September 29, 2026 16:35
…ting, project removal

Keyframes and transitions
- Clip keyframes (x, y, scale, rotation, opacity, easing) with a section in the clip
  inspector, diamonds on the timeline and a keyframe at the cut when splitting.
- Four more transitions: slide up, blur dissolve, flash, spin.

Speech recognition (Whisper)
- Captions from an audio track or from the sound of the clips, on the user's own
  computer. Windows installs a pinned whisper.cpp release and a model on request
  (sha256 checked); elsewhere it is set in Settings.
- Caption blocks keep exact word times (wo); split, move and text fixes keep them.
- Long silences are taken out before recognition and the times mapped back, since
  Whisper stretches the first word after a silence over it.

Clip sound, cutting
- Uploads keep their sound; a clip plays it with sound: true (volume vol).
- Cut silence from a clip and cut words picked from the captions; both close up
  every track through cutRanges (src/edit.mjs) and can be undone.

Projects
- Take a project off the list, or move it to the recycle bin (app only).

Docs and tests cover all of it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Operate a web app or an Android phone inside the editor and record it, with
every tap, swipe and long press logged with its time and turned into animated
touches in the video.

- Web source: a Chrome page driven over the DevTools protocol (src/cdp.mjs,
  src/demo-web.mjs) that looks like the layout's device (screen size, pixel
  density, touch); live picture as a screencast, recording as timestamped frames.
- Android source (src/demo-android.mjs): adb; live screenshots, input tap/swipe,
  and a screenrecord on the device pulled afterwards for exact timestamps. Never
  picks a device by itself.
- Gestures (src/gestures.mjs): taps, long presses, swipes, scrolling and typing
  from raw pointer events, and their conversion to the video's taps.
- Taps can now be a swipe (x2, y2, dur: a finger with a trail) or a long press
  (hold), in the template, the timeline and the inspector; swipe ends can be dragged.
- Demo data (src/demo.mjs): personas with fields and app storage, field
  recognition in Dutch and English forms, a human typing rhythm, fill one field
  or all empty fields.
- Demo studio window (ui/demo.js), settings for the Chrome and adb paths.

Tests cover the gestures, the data, both sources (the Android one against an
emulator you name with MS_TEST_ANDROID) and the whole flow through the editor.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…n per recording

A fixed guess (0.1 s) was too short on real phones. The recording is now measured:
ffmpeg's scene score gives the moments the picture changed, and the median time
from each tap, hold or swipe to the first change is the shift the taps get. It is
shown in the review; a recording where no tap changed the picture falls back to a
guess (0 for web, 0.3 s for Android).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…reenshots)

The live picture came from one screenshot after another: 5 fps on the emulator, far
less on a big phone or over wifi. It is now an H.264 stream from screenrecord decoded
by ffmpeg (64 fps on the same emulator, median gap 16 ms), with one screenshot once
the stream has been quiet, because a raw H.264 stream only releases a picture when the
next one begins. Falls back to screenshots on a device where the stream does not work,
and pauses the stream during a recording on a phone that cannot run two encoders.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…he address field

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…radient, spotlight, plain) with crossfades

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tinygusie2
tinygusie2 merged commit e635854 into main Sep 29, 2026
0 of 2 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