Browser Video Recording
Meng ToCommunityCreated by Meng To
- Skill
- Content generator
- Design and creative
- MIT
- Low risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a workflow for generating 4K 60fps browser demo videos by combining in-app browser screenshots with a Python-based rendering script. It focuses on creating natural cursor movement, click animations, and zoom-follow framing based on browser state changes. The process involves capturing browser screenshots, defining motion paths for the cursor and camera, and rendering the final output using ffmpeg and custom configuration files.
What it does
- Captures browser screenshots at specific states using in-app browser controls.
- Renders MP4 videos at 3840x2880 resolution and 60 fps.
- Applies natural macOS cursor styling and click animations.
- Implements zoom-follow camera framing based on user-defined coordinates.
- Verifies output video specifications using ffprobe and ffmpeg.
- Supports optional integration with native recording tools for specific capture needs.
When to use it
- When you need to create a browser demo video from automated browser actions.
- When you want to showcase specific UI interactions with cursor clicks and zooms.
- When you need to generate a 4:3 4K video from captured browser state screenshots.
- When you need to verify video output parameters like resolution and frame rate.
Advantages
- Produces deterministic video output from screenshot sequences.
- Automates cursor and camera motion for consistent demo framing.
- Provides verification steps to ensure output meets technical requirements.
- Allows for flexible configuration of timing, motion, and visual assets.
Usage examples
- “Record a demo of the login flow using the in-app browser.”
- The agent captures screenshots of the login process, generates a configuration file, and runs the rendering script to produce a 4K 60fps video.
- “Create a 4K video showing how to navigate the settings menu.”
- The agent navigates the browser, saves state-specific screenshots, and renders a video with zoom-follow framing on the menu items.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/mengto/browser-video-recording/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip browser-video-recording.zip -d .agents/skills
Documentation by Meng To
Browser Video Recording
Dependency Model
Separate the workflow into three layers:
Browser control and source frames: Use the Codex in-app browser through the Browser skill/MCP. Do not use Chrome when the user asks for Codex browser or the project says not to. The browser layer supplies real screenshots and real click/scroll/navigation states.
Local video renderer: Use the bundled Python script to render screenshots into an MP4 with a natural macOS cursor, subtle click scale, and calm zoom-follow framing. This does not require a screen-recording MCP.
Optional native recorder integration: Use a native recording MCP only when callable and explicitly useful for starting/stopping an actual app recording or opening a generated project. If unavailable, blocked, or unable to capture the Codex browser surface, fall back to the screenshot-to-video renderer and explain the fallback.
Self-Contained Execution
This skill is enough for another Codex instance to perform the Python rendering as long as the full skill folder is installed, including scripts/render_browser_demo.py. Codex should run the bundled script instead of recreating the renderer.
Required local tools:
python3Python package
Pillowffmpegandffprobe
Optional macOS cursor extraction uses swift and /usr/sbin/screencapture. If those are unavailable, provide a transparent PNG through cursor_asset and set cursor_hotspot in the config.
The Browser skill/MCP is still needed for fresh Codex in-app browser screenshots. If it is unavailable, use the best available browser automation screenshot source and state the fallback.
Optional Native Recorder Support
For native app recording, verify the MCP supports:
Use
frameRate: 60.Use
resolutionRawValue: "4K".Use
ratioPresetRawValue: "4:3"for region recordings.Use an explicit
selectedRegionOnScreenwhen cropping to an embedded browser viewport.
For the local renderer, 4K 4:3 means 3840x2880. If a native recorder exposes a 4K enum, treat it as an app-side resolution preset and pair it with 4:3 region selection when recording through that MCP.
Capture Workflow
Use browser:control-in-app-browser first. After loading its docs, drive the in-app browser with the Node/browser API:
Set viewport to
1920x1440for 4:3 4K output, then reset it before finishing.Navigate to the requested page and perform actual clicks, backs, searches, and scrolls.
Save browser-only screenshots after each important state change. Use names like
01-results-top.png,02-after-card-click.png,03-back-results.png.Record the viewport coordinates of each click/scroll target. The final cursor path should land on those points, pause, click, then move to the next meaningful point.
Avoid desktop coordinate automation unless the user explicitly needs system UI. Codex browser visibility may not expose a capturable macOS surface; screenshots from the browser API are the reliable source.
Motion Rules
Make the cursor feel purposeful:
Use sparse, mostly straight cursor paths.
Pause briefly on a target before clicking.
Do not wander over unrelated UI.
Let the page transition happen after the click, not before.
Use only subtle click feedback: scale dip/rebound, not decorative rings unless requested.
Keep zoom-follow calmer than the cursor. The camera should frame the clicked content, not chase every small mouse move.
Default visual target:
Real macOS pointer extracted from the compositor, or an existing transparent cursor asset.
Cursor scale
3.0, matching the large cursor style commonly used in edited demo recordings.Click animation strength
15for a subtle click scale dip.Rotation strength up to
8deg, only from horizontal velocity.
Render Script
Use scripts/render_browser_demo.py for deterministic 60 fps 4:3 4K output:
python3 /path/to/browser-video-recording/scripts/render_browser_demo.py \
--config /tmp/browser-demo-config.json \
--output /tmp/browser-demo-4x3-4k-60fps.mp4Generate a starter config:
python3 /path/to/browser-video-recording/scripts/render_browser_demo.py --write-templateThe config supplies:
shots: map of state names to screenshot PNG paths.scene_starts:[time, shotName, transition]entries.cursor_keys:[time, x, y]viewport-coordinate entries.camera_keys:[time, x, y, zoom]entries.click_times: click timestamps.duration,fps,output_size,source_size,cursor_scale.
Preferred defaults:
{
"fps": 60,
"output_size": [3840, 2880],
"source_size": [1920, 1440]
}If cursor_asset is omitted, the script briefly shows a solid-color overlay and uses screencapture to extract the real current macOS cursor into a transparent PNG. This is local rendering support, not an MCP dependency.
Verification
Always verify the delivered video:
ffprobe -v error \
-show_entries stream=codec_name,width,height,r_frame_rate \
-show_entries format=duration,size \
-of json /path/to/output.mp4Extract at least one mid-video thumbnail and inspect it:
ffmpeg -y -ss 8 -i /path/to/output.mp4 -frames:v 1 -update 1 /tmp/browser-demo-thumb.pngConfirm:
Resolution is the requested output, usually
3840x2880for 4:3 4K.Frame rate is
60/1or equivalent.Duration matches the request.
Cursor is visible, natural, and on-target.
The video is cropped to browser content, not the desktop.
The browser viewport override has been reset.
Files
- ATTRIBUTION.mdAdded by AutoGineer863 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md6.0 KiB
- demo/PROMPT.md2.2 KiB
- demo/expected-output.md231 B
- demo/index.html4.0 KiB
- demo/input.md183 B
- demo/preview.jpg84.7 KiB
- scripts/render_browser_demo.pyScript16.6 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Python
Security
What our scanner noticed· Low risk
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Meng To
- Publisher
- Meng To (Community)
- Source
- MengTo/Skills · agent-skills/codex/browser-video-recording · commit 5ea1661
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Meng To or Meng To.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download browser-video-recording.zip