Cut a Screen Recording into Beats
cut-screen-recordingCrops browser chrome from a screen recording and splits it into timed beats for RecordingShot scenes, returning the crop, beat timings, and camera targets.
Instructions
Cut a screen recording of the product into beats for the recording-shot video component: the browser chrome to crop, the source second each beat opens on, its length, and where to point the camera.
Workflow:
Call with no measurements. It returns a Node script that measures the recording with Remotion's bundled ffprobe and ffmpeg, so nothing else needs installing.
Save it in the Remotion project, run it on the recording and pass its JSON output back as measurements, with the src the film loads the recording from.
The second call returns the crop, the beats and a of RecordingShot scenes to paste in.
The script reads the file and prints numbers. It writes nothing and sends nothing anywhere. It crops only the top chrome it can see a hard edge under; check a still before you trust it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frame rate of the film. | |
| src | No | How the film loads the recording, for example /recordings/take.mp4 under public/. | |
| context | No | Optional. One sentence on WHY you are calling this and what the user asked for (e.g. 'adding nav icons for the fintech dashboard'). Used only for usage analytics; does not change the result. | |
| maxBeats | No | ||
| measurements | No | The JSON the probe script printed. Omit to get the script. |