capture_frames
Records a frame sequence for video from a Three.js scene with virtualized time, saving numbered images and returning an ffmpeg command to assemble them.
Instructions
[INSPECT] Read-only. Record a frame sequence for a video. Time is virtualised, so frames are exactly 1/fps apart and smooth even if rendering is slow. Saves numbered images to screenshots/sequence-/ and returns an ffmpeg command.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frames per second (default: 30) | |
| width | No | Width in pixels (default: canvas width) | |
| format | No | png = lossless (default), jpeg = smaller/faster | |
| height | No | Height in pixels (default: canvas height) | |
| duration | No | Seconds to record (default: 3) |