Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

12.0 KB
Raw Blame
const CONFIG={"mode": "w3-slider", "demoTitle": "Effort controls", "brand": "Perplexity", "palette": ["#121727", "#f5f7f6", "#2e8c8a", "#d19e75", "#ffffff"], "accent": "#2e8c8a", "font": "衬线主张标题搭配无衬线界面文字;大留白、细边框", "stages": [{"start": 0, "label": "品牌标记"}, {"start": 2, "label": "输入栏"}, {"start": 3, "label": "打开强度菜单"}, {"start": 4, "label": "Light"}, {"start": 5, "label": "Standard"}, {"start": 6, "label": "High"}, {"start": 7, "label": "Ultra"}, {"start": 8.5, "label": "品牌收尾"}], "objects": ["输入栏", "强度菜单", "分档滑杆", "模型说明", "指针"], "rules": ["一个滑杆逐档增加,档名、模型说明与填充长度同步变化。", "先打开菜单再调节,变化范围局限于同一控件。"], "transfer": ["可改成质量、速度或预算档位;保留分档映射而非只改颜色。"], "unknown": ["阶段时间来自代表帧推断,尚未恢复原工程关键帧及缓动。", "示例仅重写关键关系,不包含原产品功能、精确字体和完整内部素材;未进行 fresh agent 复刻。", "未分析音轨,声音与动作同步关系未知。"], "measureTexts": ["Connect an app", "Computer v", "Custom"], "labels": ["Effort controls"], "coverTime": 3, "mechanism": "slider", "translations": {"en": {"templateName": "Perplexity — Effort controls", "summary": "A segmented effort slider updates its label and model description.", "styleDescription": "Source-specific typography, palette and composition; exact font files are not recovered.", "reviewFocus": "Keep slider position, selected tier and description synchronized. HTML is an authored explanation, not a full reconstruction."}}, "evidenceReview": {"status": "inferred", "sampledOverview": "worker3-review/V269.jpg", "sampleCount": 12, "note": "12-frame time coverage reviewed for all sources; full selected overview reviewed only where fullOverviewReviewed is true.", "fullOverviewReviewed": false, "ocrReviewed": true}, "creativeSummary": "一个滑杆逐档增加,档名、模型说明与填充长度同步变化。", "guideChapters": {"overview": "Effort controls · 动作语言", "composition": "构图与对象关系", "motion": "状态变化与动作依赖", "rhythm": "段落节奏与场景交接", "transfer": "主题替换与制作约束"}, "guidePlan": {"intro": "围绕一个强度滑杆演示四个档位。填充、档名和说明同步变化,其他界面保持稳定。", "sections": [{"title": "把注意力留在同一控件", "text": ["输入栏出现后打开强度菜单,镜头只需容纳菜单、指针和必要上下文。滑杆轨道固定,指针逐档移动;每到一档,立即更新名称与模型说明。"], "clip": [3, 8.5]}, {"title": "档位要有可读的停顿", "text": ["Light、Standard、High、Ultra 依次经过,每档留出短暂停顿。激活标记、已填充长度和文字属于同一个状态,不能先后错开成三个独立动画。"], "table": {"headers": ["变化项", "约束"], "rows": [["轨道与菜单", "位置和尺寸固定"], ["滑块与填充", "落在同一档位"], ["名称与说明", "随档位同时替换"], ["指针", "负责移动和选择,不遮住档名"]]}}, {"title": "深色舞台与浅色菜单", "text": ["深蓝背景承接浅色控件,青绿只标记当前档位。品牌标题使用衬线,菜单与解释文字用无衬线;轨道附近保持留白,标签对齐各档中心。"], "palette": true}, {"title": "也可以演示质量、预算或速度", "text": ["替换四个档名和解释即可迁移,但每个档位必须有明确语义。若改成连续数值控制,应改用连续读数,不保留误导性的分档停顿。"]}]}, "templateId": "V269", "name": "Computer — effort controls in the model selector", "duration": 11.0, "initialTime": 3, "sourceCanvas": {"width": 1920, "height": 1080}, "actionRange": [2, 5]};
const DATA={"tracks": [{"id": "text-0.center", "target": "text-0", "property": "center", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[2, 8]], "samples": [[2, [795.3488392186048, 631.9999998161081]], [2.5, [577.674420358804, 606.9767440863787]], [3, [461.8604670976745, 608.3720933581394]], [7, [415.8505814470707, 607.0350892113906]], [7.5, [400.4651182604652, 608.3720933581394]], [8, [247.04820687745496, 606.9087624920405]]], "maxCompressionErrorVsObservations": 1.0190425705109192, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-0.height", "target": "text-0", "property": "height", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[2, 8]], "samples": [[2, 20.0], [2.5, 30.697673797607422], [3, 33.48837280273426], [5, 33.48837280273426], [5.5, 36.64851379394531], [6.5, 30.697673797607422], [7, 38.144596099853516], [7.5, 33.48837280273426], [8, 37.38419723510742]], "maxCompressionErrorVsObservations": 0.1847209930419922, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-0.text", "target": "text-0", "property": "text", "unit": "text", "space": "canvas", "status": "measured", "source": "video", "method": "text", "interpolation": "step", "valid": [[2, 8]], "samples": [[2, "boN• Connect an app"], [2.5, "Connect an app"], [8, "Connect an app"]], "maxCompressionErrorVsObservations": 0, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-0.width", "target": "text-0", "property": "width", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[2, 8]], "samples": [[2, 200.9302215576173], [2.5, 245.58139038085938], [3, 248.37208557128912], [5, 248.372085571289], [5.5, 252.3245086669922], [6.5, 245.58139038085938], [8, 249.4842071533203]], "maxCompressionErrorVsObservations": 0.5808639526366619, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-1.center", "target": "text-1", "property": "center", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[2, 8]], "samples": [[2, [778.604653116279, 560.9302323488373]], [2.5, [520.4651185438634, 478.60465000056035]], [3, [397.6744156395349, 478.5000007700053]], [3.5, [394.88371861395353, 478.50000074907507]], [4, [387.9069738139535, 478.5000007700053]], [4.5, [387.90697416829653, 478.60465067900725]], [5, [376.7441889767441, 478.5000004211681]], [6.5, [362.7906951702993, 478.6046497158487]], [7, [331.89305887166904, 479.08873029245694]], [7.5, [339.0697651255814, 478.50000074907507]], [8, [184.18604358139544, 478.5000007700053]]], "maxCompressionErrorVsObservations": 0.9302307466888919, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-1.height", "target": "text-1", "property": "height", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[2, 8]], "samples": [[2, 22.325580596923828], [2.5, 40.52886772155756], [3, 37.00000000000006], [6, 37.00000000000006], [7, 44.280864715576286], [7.5, 37.00000000000006], [8, 37.00000000000006]], "maxCompressionErrorVsObservations": 1.89937591552723, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-1.text", "target": "text-1", "property": "text", "unit": "text", "space": "canvas", "status": "measured", "source": "video", "method": "text", "interpolation": "step", "valid": [[2, 8]], "samples": [[2, "• Computer v"], [2.5, "Computer v"], [7, "@ Computer v"], [7.5, "Computer v"], [8, "Computer v"]], "maxCompressionErrorVsObservations": 0, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-1.width", "target": "text-1", "property": "width", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[2, 8]], "samples": [[2, 156.27906799316406], [2.5, 226.6895294189453], [3, 237.20928955078125], [3.5, 231.62789916992188], [4, 234.41859436035156], [4.5, 223.66659545898438], [5, 234.41859436035156], [6, 231.62789916992188], [6.5, 223.80314636230466], [7, 280.38262939453125], [7.5, 231.62789916992188], [8, 234.41859436035156]], "maxCompressionErrorVsObservations": 1.3953475952148438, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-2.center", "target": "text-2", "property": "center", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[3.5, 8]], "samples": [[3.5, [696.2790686790697, 879.0697671069767]], [5, [685.1162781356153, 879.0697671922283]], [5.5, [678.1395334198112, 879.0697670190561]], [6, [675.3488359830633, 877.6744182362619]], [6.5, [666.9767430226316, 880.4651163889273]], [7, [662.7906964757931, 877.6744182373449]], [7.5, [646.0465104293573, 879.0697671018224]], [8, [493.95348730040246, 879.0697671702692]]], "maxCompressionErrorVsObservations": 0.4651163574119437, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-2.height", "target": "text-2", "property": "height", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[3.5, 8]], "samples": [[3.5, 33.488372802734375], [5.5, 33.88837432861328], [6, 36.91532516479492], [6.5, 31.467573165893555], [7, 36.8146858215332], [8, 34.46212005615223]], "maxCompressionErrorVsObservations": 1.5626468658446697, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-2.text", "target": "text-2", "property": "text", "unit": "text", "space": "canvas", "status": "measured", "source": "video", "method": "text", "interpolation": "step", "valid": [[3.5, 8]], "samples": [[3.5, "Custom"], [8, "Custom"]], "maxCompressionErrorVsObservations": 0, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-2.width", "target": "text-2", "property": "width", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[3.5, 8]], "samples": [[3.5, 153.48837280273438], [4.5, 139.53488159179688], [5, 137.10902404785156], [7, 142.46116638183594], [7.5, 136.88685607910156], [8, 139.76538085937494]], "maxCompressionErrorVsObservations": 1.4208908081054688, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}]};