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.

13.6 KB
Raw Blame
const CONFIG={"mode": "w1-code-physics", "demoTitle": "Magistral", "palette": ["#151515", "#f0f0ee", "#ec5e29", "#6ac69e", "#a384d9"], "font": "深色聊天录屏、密集等宽代码、九宫格物理示例", "stages": [{"start": 0, "label": "长要求输入"}, {"start": 9, "label": "提交任务"}, {"start": 12, "label": "推理展开"}, {"start": 23, "label": "程序说明"}, {"start": 29, "label": "代码与结果并排"}, {"start": 32, "label": "九种多边形运行"}], "objects": ["提示词", "思考段落", "说明", "代码", "九宫格多边形", "彩色小球"], "rules": ["先展示具体约束,再显示解释和代码,最后并排运行结果。", "多边形边数逐格增加,小球在边界内运动,形成可见验证。", "镜头从输入近景拉远到聊天,再推近最终双栏。"], "transfer": ["可换成其他编程任务,但必须有可视化验收结果。", "多边形边界和球体运动共同承担验收画面,保持九格清晰分离。"], "unknown": ["没有获取原 Python 程序或物理参数;示例不是严格碰撞模拟。", "原字体、音轨同步与原工程缓动未恢复。", "HTML 为动作关系示例,不作为完整原样复刻。"], "brand": "Mistral", "labels": ["+", "88 Tools", "sizes every 2 seconds, while keeping all the balls bouncing inside.", "The polygons must slowly oscillate in size, constantly transitioning between larger and smaller", "- Bounce off the rotating walls of each polygon.", "its own bouncing balls inside."], "measureTexts": ["88 Tools", "sizes every 2 seconds, while keeping all the balls bouncing inside.", "The polygons must slowly oscillate in size, constantly transitioning between larger and smaller"], "coverTime": 33.5, "accent": "#ec5e29", "translations": {"en": {"templateName": "Code is tested by a visible simulation", "summary": "Detailed requirements lead to explanation, code and a nine-cell polygon simulation.", "styleDescription": "Dark chat UI, monospaced code and colored moving balls.", "reviewFocus": "Treat the schematic motion separately from a recovered physics program."}}, "guideChapters": {"overview": "让程序输出回答提示词", "composition": "要求、解释、代码与运行", "motion": "提交、展开、运行", "rhythm": "最终双栏保留验收依据", "transfer": "为新任务设计可见验证"}, "creativeSummary": "先展示具体约束,再显示解释和代码,最后并排运行结果。", "guidePlan": {"intro": "先交代程序要完成的具体要求,再让代码旁边出现连续运行的结果。整个画面围绕同一个编程任务推进。", "sections": [{"title": "长提示词分成可扫读的要求", "text": ["深色聊天界面上,提示框居中,正文按条目排列。等宽字用于代码,普通无衬线用于说明;橙色标志和少量彩色小球提供强调。"], "palette": true}, {"title": "从要求走到解释与代码", "text": ["提示输入完成后缩回聊天布局,接上分段说明。镜头跟随当前重点向下移动,保留一部分上文,帮助阅读顺序衔接。"], "clip": [0, 29]}, {"title": "运行结果占据完整一侧", "text": ["代码留在左边,右边展示九种多边形。边数递增形成规则,小球颜色区分个体;图形旋转、缩放时始终留在各自格内。", "运行段保持足够长的连续运动,让观众能看见边界、球体与变化之间的关系。"], "clip": [29, 36.32]}, {"title": "换一种编程案例", "text": ["可改成图表、布局或交互组件。先写可看见的要求,再选择对应结果画面;保留提示、说明、代码、运行四层,但不必让每层占相同时间。"]}]}, "templateId": "V036", "name": "Magistral 发布", "duration": 36.3, "initialTime": 33.5, "sourceCanvas": {"width": 1274, "height": 720}, "actionRange": [9, 29]};
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": [[0, 11], [14, 15.5], [18, 24.5]], "samples": [[0, [561.0000005249999, 510.999999925]], [0.5, [561.0000005249999, 510.999999925]], [1, [499.9999991515783, 601.9999997446953]], [1.5, [493.00000053007113, 611.9999994472728]], [8, [493.0000005280922, 612.000000388218]], [9.5, [492.9999991235363, 610.9999997297011]], [10.5, [562.0000004999999, 511.99999990000003]], [11, [561.9999994, 509.99999979999996]], [14, [557.0000007, 683.9999999333334]], [15.5, [557.0000007014801, 683.9999999513168]], [18, [557.0000007, 683.9999999333334]], [24.5, [557.0000007011017, 684.0000001845592]]], "maxCompressionErrorVsObservations": 0.9999998670336936, "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": [[0, 11], [14, 15.5], [18, 24.5]], "samples": [[0, 9.999999999999943], [0.5, 9.999999999999943], [1, 20.449369430541992], [2, 22.233652114868164], [5.5, 20.0], [9.5, 22.39692497253418], [10.5, 12.0], [11, 12.0], [14, 12.0], [15.5, 13.073746681213379], [18, 12.0], [24.5, 12.765769481658936]], "maxCompressionErrorVsObservations": 1.1732943058015053, "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": [[0, 11], [14, 15.5], [18, 24.5]], "samples": [[0, "88 Tools"], [11, "88 Tools"], [14, "88 Tools"], [15.5, "88 Tools"], [18, "88 Tools"], [24.5, "88 Tools"]], "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": [[0, 11], [14, 15.5], [18, 24.5]], "samples": [[0, 42.0], [0.5, 42.0], [1, 72.12352752685553], [1.5, 74.35842895507812], [9.5, 74.11703491210932], [10, 62.14100265502924], [10.5, 40.0], [11, 40.0], [14, 42.0], [15.5, 42.29408645629883], [18, 42.0], [24.5, 42.212345123291016]], "maxCompressionErrorVsObservations": 0.32825469970703125, "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": [[5.5, 8], [11.5, 14], [15, 26.5]], "samples": [[5.5, [534.999997675, 559.000000325]], [6, [536.0032359339166, 555.5246708561592]], [8, [536.0032359339166, 555.5246708561592]], [11.5, [585.0000052999999, 362.99999990000003]], [12, [584.9999966333335, 360.99999976666663]], [12.5, [584.9999947000002, 364.00000006666664]], [14, [585.0000052999999, 363.99999993333336]], [15, [585.0000052999999, 120.99999996666668]], [24.5, [584.9999947000002, 122.00000006666664]], [25, [584.9999965666668, 118.99999976666666]], [25.5, [543.00000574, 43.999999959999954]], [26.5, [543.0000058199998, 37.99999995999998]]], "maxCompressionErrorVsObservations": 1.0032309172499936, "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": [[5.5, 8], [11.5, 14], [15, 26.5]], "samples": [[5.5, 26.0], [6, 27.5428466796875], [6.5, 24.0], [7, 27.457326889038086], [7.5, 24.0], [8, 27.5428466796875], [11.5, 14.000000000000057], [14, 12.000000000000057], [15, 14.000000000000028], [24.5, 11.999999999999957], [25, 14.000000000000028], [25.5, 23.999999999999993], [26.5, 23.999999999999993]], "maxCompressionErrorVsObservations": 1.3684210526316267, "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": [[5.5, 8], [11.5, 14], [15, 26.5]], "samples": [[5.5, "sizes every 2 seconds, while keeping all the balls bouncing inside."], [8, "sizes every 2 seconds, while keeping all the balls bouncing inside."], [11.5, "sizes every 2 seconds, while keeping all the balls bouncing inside."], [14, "sizes every 2 seconds, while keeping all the balls bouncing inside."], [15, "sizes every 2 seconds, while keeping all the balls bouncing inside."], [26.5, "sizes every 2 seconds, while keeping all the balls bouncing inside."]], "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": [[5.5, 8], [11.5, 14], [15, 26.5]], "samples": [[5.5, 602.0], [8, 604.2351074218749], [11.5, 318.0], [14, 318.0], [15, 318.0], [24.5, 317.99999999999994], [25, 322.0], [25.5, 573.9999999999999], [26, 582.0], [26.5, 582.0]], "maxCompressionErrorVsObservations": 1.7880859374998863, "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": [[5.5, 8], [12, 14], [15, 26.5]], "samples": [[5.5, [662.999998925, 529.000000325]], [6, [662.99999914, 526.00000024]], [8, [661.99999916, 526.00000024]], [12, [654.0000056499998, 345.99999990000003]], [14, [654.0000056499998, 347.99999990000003]], [15, [654.000007533333, 105.99999986666666]], [25, [652.9999942750001, 104.00000005000001]], [25.5, [666.0000058285714, 14.999999871428592]], [26.5, [665.9999862000004, 9.99999986666666]]], "maxCompressionErrorVsObservations": 1.899999825833305, "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": [[5.5, 8], [12, 14], [15, 26.5]], "samples": [[5.5, 26.0], [8, 24.0], [12, 11.999999999999943], [12.5, 14.000000000000057], [14, 11.999999999999943], [15, 12.000000000000043], [25, 12.000000000000043], [25.5, 22.0], [26, 26.47058677673339], [26.5, 20.000000000000007]], "maxCompressionErrorVsObservations": 1.6000000000000014, "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": [[5.5, 8], [12, 14], [15, 26.5]], "samples": [[5.5, "The polygons must slowly oscillate in size, constantly transitioning between larger and smaller"], [8, "The polygons must slowly oscillate in size, constantly transitioning between larger and smaller"], [12, "The polygons must slowly oscillate in size, constantly transitioning between larger and smaller"], [14, "The polygons must slowly oscillate in size, constantly transitioning between larger and smaller"], [15, "The polygons must slowly oscillate in size, constantly transitioning between larger and smaller"], [26.5, "The polygons must slowly oscillate in size, constantly transitioning between larger and smaller"]], "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": [[5.5, 8], [12, 14], [15, 26.5]], "samples": [[5.5, 858.0], [8, 856.0], [12, 452.0], [14, 452.0], [15, 452.0], [24.5, 452.0], [25, 457.99999999999994], [25.5, 816.0], [26, 833.4083251953123], [26.5, 828.0]], "maxCompressionErrorVsObservations": 1.2000000000000455, "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."}]};