tools(rpo-replay): v4 WIP — data-driven model from public element sets, true time-lapse engine with motion blur, timeline, label hysteresis

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0187rSCa4AKJPGw6uiuPSGyX
This commit is contained in:
Claude committed 2026-11-08 05:21:12 +00:00
1 parent 1a06c3e4cf
commit fff5d5a479
18 files changed
+2495 -375

No files matched your search

+2 -3
View File
@@ -35,8 +35,6 @@ const FORMATS = { '16x9': [1920, 1080], '9x16': [1080, 1920], preview: [960, 540
const format = args.format || '16x9';
const [W, H] = FORMATS[format];
const FPS = Number(args.fps || 30);
const DUR = 45;
const total = Math.round(DUR * FPS);
const TAG = args.tag ? String(args.tag) : '';
const RS = Number(args.rs || 1);
const outDir = join(ROOT, 'output/rpo-replay', TAG, format);
@@ -108,8 +106,9 @@ page.on('console', (m) => {
if (m.type() === 'error' || m.type() === 'warning') console.log(`[page ${m.type()}]`, m.text());
});
page.on('pageerror', (e) => console.log('[pageerror]', e.message));
await page.goto(`http://127.0.0.1:${port}/scene.html?w=${W}&h=${H}&rs=${RS}&settle=${args.stills ? 60 : Number(args.settle || 4)}`);
await page.goto(`http://127.0.0.1:${port}/scene.html?w=${W}&h=${H}&rs=${RS}&settle=${args.stills ? 60 : Number(args.settle || 4)}&fps=${FPS}`);
await page.waitForFunction(() => window.rpo?.ready, null, { timeout: 180000 });
const total = Math.round((await page.evaluate(() => window.rpo.duration)) * FPS);
if (args.stills) {
const dir = join(outDir, 'stills');