The guide explains how to capture browser-only screenshots, choreograph cursor and camera motion, render 4:3 4K video with the bundled Python script, and verify the result. It includes required tools, configuration examples, and safeguards such as using a transparent cursor asset and resetting the browser viewport. Optional native recording is covered as a fallback-compatible integration.
95%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Medium
Suggest reviewing before use
Separate the workflow into three layers:
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:
python3Pillowffmpeg and ffprobeAlways pass a transparent cursor PNG through cursor_asset and set cursor_hotspot in the config. Never rely on the script's screencapture fallback (swift and /usr/sbin/screencapture, which flashes an overlay over the screen to grab the live cursor).
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.
One option is DreamCut: dreamcut record --app "<app>" --seconds N --output-path /abs/path/take.mp4 for a recording and dreamcut screenshot --app "<app>" --output-path /abs/path/shot.png for a still (dreamcut help record lists the options).
For native app recording, verify the MCP supports:
frameRate: 60.resolutionRawValue: "4K".ratioPresetRawValue: "4:3" for region recordings.selectedRegionOnScreen when 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.
Use browser:control-in-app-browser first. After loading its docs, drive the in-app browser with the Node/browser API:
1920x1440 for 4:3 4K output, then reset it before finishing.01-results-top.png, 02-after-card-click.png, 03-back-results.png.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.
Make the cursor feel purposeful:
Default visual target:
3.0, matching the large cursor style commonly used in edited demo recordings.15 for a subtle click scale dip.8deg, only from horizontal velocity.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]
}Always set cursor_asset (and cursor_hotspot). If it's omitted, the script briefly shows a solid-color overlay and uses screencapture to extract the live macOS cursor, which takes over the screen while it runs: never rely on that fallback; keep a transparent cursor PNG with the project and pass it every time.
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:
3840x2880 for 4:3 4K.60/1 or equivalent.MengTo/Skills
30809c8
python3ffprobeffmpegdreamcutdreamcut recorddreamcut screenshotdreamcut helpdreamcut help recordCodex in-app browserBrowser skill/MCPbrowser:control-in-app-browserNode/browser APIDreamCut MCPIf you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.