From 2a6f4b1d5f6816146ed5b2f32ec54182eab546e5 Mon Sep 17 00:00:00 2001 From: Nick Shirokov Date: Sun, 1 Mar 2026 12:32:39 +0300 Subject: [PATCH] fix(web-test): correct video brightness via color_range flag JPEG frames from CDP screencast use full range (0-255) but H.264 defaults to limited range (16-235). Add -color_range pc to preserve full range in output MP4, fixing washed-out/bright appearance. Co-Authored-By: Claude Opus 4.6 --- .claude/skills/web-test/scripts/browser.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/.claude/skills/web-test/scripts/browser.mjs b/.claude/skills/web-test/scripts/browser.mjs index 179e374b..748d6b3d 100644 --- a/.claude/skills/web-test/scripts/browser.mjs +++ b/.claude/skills/web-test/scripts/browser.mjs @@ -2430,6 +2430,7 @@ export async function startRecording(outputPath, opts = {}) { '-c:v', 'libx264', // H.264 codec '-preset', 'ultrafast', // fast encoding '-pix_fmt', 'yuv420p', // broad compatibility + '-color_range', 'pc', // full range (0-255) — match JPEG input '-movflags', '+faststart', // web-friendly MP4 resolvedPath ], { stdio: ['pipe', 'ignore', 'pipe'] });