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.

7.4 KB
Raw Blame
const CONFIG={"mode": "circle-voice", "demoTitle": "Think out loud with Claude", "palette": ["#f8f8f2", "#141511", "#d58a76", "#8c8d76", "#ffffff"], "font": "暖白留白、黑色语音圆钮、生活照片与白色衬线字幕", "stages": [{"start": 0, "label": "语音圆钮"}, {"start": 0.5, "label": "圆形遮罩展开"}, {"start": 1.2, "label": "生活画面填满"}, {"start": 2.2, "label": "字幕逐词出现"}, {"start": 6, "label": "遮罩收回"}, {"start": 6.6, "label": "口号留读"}, {"start": 9.5, "label": "恢复圆钮"}], "objects": ["语音圆钮", "同心圆遮罩", "背景影像", "逐词字幕", "口号"], "rules": ["同一中心圆从按钮扩张为影像窗口,再收回按钮;保持空间身份连续。", "影像进入后虚化并叠暖色光晕,字幕随后出现;背景降低细节以支持阅读。", "字幕是词组增量显示,退场后留口号,最后回到初始按钮。"], "transfer": ["替换生活场景和一句对话;保留按钮→情境→话语→按钮的闭环。", "字幕建议两行内,按词而非随机字符揭示;音频同步需要另行对齐。"], "unknown": ["照片主体、手部运动、虚化核和语音时序未恢复。", "程序示例用绘制的杯子说明圆形遮罩,非原片影像。"], "measureTexts": ["Morning, Devi.", "Think out loud with Claude"], "coverTime": 3, "labels": ["Morning, Devi.", "Think out loud with Claude"], "brand": "Anthropic", "accent": "#d58a76", "translations": {"en": {"templateName": "Voice Circle Reveal", "summary": "Expand a voice button into a scene, reveal speech, then close back to the button.", "styleDescription": "Ivory negative space, a soft scene and serif captions.", "reviewFocus": "Maintain the shared mask center and the caption reading interval."}}, "guidePlan": {"intro": "用同一个圆心串起按钮、画面和收尾。场景展开后降低背景细节,让一句逐词出现的对话成为视觉中心。", "sections": [{"title": "圆形是共同的入口", "text": ["暖白留白、黑色语音圆钮、生活照片与白色衬线字幕。", "同一中心圆从按钮扩张为影像窗口,再收回按钮;保持空间身份连续。"], "palette": true, "clip": [0, 1.2]}, {"title": "先展开场景,再开始说话", "text": ["影像进入后虚化并叠暖色光晕,字幕随后出现;背景降低细节以支持阅读。", "字幕是词组增量显示,退场后留口号,最后回到初始按钮。"], "timeline": true}, {"title": "一句对话的容量", "text": ["替换生活场景和一句对话;保留按钮→情境→话语→按钮的闭环。", "字幕建议两行内,按词而非随机字符揭示;音频同步需要另行对齐。"], "reference": 3}]}, "templateId": "V008", "name": "功能更新|Voice mode", "duration": 11.458333, "initialTime": 3, "sourceCanvas": {"width": 1280, "height": 720}, "actionRange": [0.5, 6]};
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": [[7, 9]], "samples": [[7, [642.0000018999999, 356.99999965000006]], [8.5, [640.0000044571427, 357.9999999714285]], [9, [630.000004025, 357.9999999499999]]], "maxCompressionErrorVsObservations": 1.3333316285715, "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": [[7, 9]], "samples": [[7, 41.99999999999994], [9, 40.0]], "maxCompressionErrorVsObservations": 1.4999999999999574, "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": [[7, 9]], "samples": [[7, "Think out loud with Claude"], [9, "Think out loud with Claude"]], "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": [[7, 9]], "samples": [[7, 628.0], [7.5, 623.9999999999999], [8.5, 623.9999999999999], [9, 644.0]], "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.center", "target": "text-1", "property": "center", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[2.5, 6]], "samples": [[2.5, [445.0000020777777, 329.000000011111]], [3, [446.00000206666664, 327.99999997777775]], [3.5, [487.00000187499995, 330.0000002666667]], [4, [634.0000014666666, 327.99999966666667]], [6, [636.0000037, 328.99999987]]], "maxCompressionErrorVsObservations": 0.7499997905952114, "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.5, 6]], "samples": [[2.5, 62.0], [3, 60.0], [3.5, 64.0], [4, 59.99999999999994], [4.5, 60.0], [5, 64.0], [5.5, 59.99999999999994], [6, 61.99999999999994]], "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.text", "target": "text-1", "property": "text", "unit": "text", "space": "canvas", "status": "measured", "source": "video", "method": "text", "interpolation": "step", "valid": [[2.5, 6]], "samples": [[2.5, "Morning, Devi."], [3.5, "Morning, Devi. So,"], [4, "Morning, Devi. So, what are we"], [6, "Morning, Devi. So, what are we"]], "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.5, 6]], "samples": [[2.5, 374.0], [3, 372.0], [3.5, 458.0], [4, 748.0], [4.5, 748.0], [5, 754.0], [5.5, 750.0], [6, 740.0]], "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."}]};