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.
TypeScript agent-skillsagentic-aiai-agentsai-videobyokclaude-codecodexdeepseek-harnessdsh-plugingenerative-ailocal-firstmcpmotionmotion-graphicsmultimodalopenmotionreverse-engineeringvideo-editingvideo-generationworkbuddy
const CONFIG={"mode": "f3-sketchcode", "mechanism": "sketchcode", "demoTitle": "Sketch = Code", "brand": "Z.ai", "palette": ["#0d1115", "#f4f4ee", "#7b64c2", "#ce5d22", "#437692"], "accent": "#7b64c2", "font": "等宽状态标签与代码,主张使用斜体无衬线;黑底细网格", "stages": [{"start": 0, "label": "模型标题"}, {"start": 4, "label": "草图主张"}, {"start": 9, "label": "草图输入"}, {"start": 14, "label": "音乐应用"}, {"start": 21, "label": "参考图主张"}, {"start": 25, "label": "图片与请求"}, {"start": 31, "label": "生成图形"}, {"start": 35, "label": "风格引用"}, {"start": 40, "label": "新界面"}, {"start": 45, "label": "产品图参考"}, {"start": 50, "label": "产品画面"}, {"start": 55, "label": "动态网页对照"}, {"start": 62, "label": "图像转音乐"}, {"start": 72, "label": "代码结果"}, {"start": 76, "label": "品牌"}], "objects": ["草图画布", "参考图片", "输入面板", "代码区", "运行预览", "对照视图"], "rules": ["保持输入材料和生成结果同时可见,让草图、图片和录屏分别证明不同的视觉输入能力。", "草图或参考图留在左侧,执行时右侧先出现代码,再切成运行结果。结果的关键布局应能对应输入,不能只留下漂亮的独立成品。", "Sketch、Reference、动态网页与图像音乐各有独立段落。黑底细网格、等宽状态信息与紫色操作按钮贯穿,主张大字短促出现后退出。"], "transfer": ["替换源草图、参考图、请求、代码和输出,保持材料到结果的对应。选择少量差异清楚的案例,输出展示时留出读懂变化的时间。"], "unknown": ["时序与对象关系按所阅概览归纳,原始关键帧、缓动和字体文件未知。", "HTML 是 authored 机制示例,不是逐像素复刻;未进行 fresh agent 复刻。", "未分析音轨。", "输出示例仅为可编辑结构代理,不执行原模型生成,也不复现网页纹理与音频合成。"], "measureTexts": ["SYS • READY", "+ FRAME", "SAVE"], "labels": ["Sketch = Code"], "coverTime": 40, "creativeSummary": "保持输入材料和生成结果同时可见,让草图、图片和录屏分别证明不同的视觉输入能力。", "guidePlan": {"intro": "保持输入材料和生成结果同时可见,让草图、图片和录屏分别证明不同的视觉输入能力。", "sections": [{"title": "左侧输入,右侧代码与结果接力", "text": ["草图或参考图留在左侧,执行时右侧先出现代码,再切成运行结果。结果的关键布局应能对应输入,不能只留下漂亮的独立成品。"], "clip": [9, 16]}, {"title": "每种输入用一句短主张分段", "text": ["Sketch、Reference、动态网页与图像音乐各有独立段落。黑底细网格、等宽状态信息与紫色操作按钮贯穿,主张大字短促出现后退出。"], "palette": true}, {"title": "动态对照保持同步与相同观看尺度", "text": ["网页录屏与生成页面左右放置,保留同一构图比例。三维物体或音乐代码属于各自案例,切换时明确更换输入,避免同一草图解释全部结果。"], "timeline": true}, {"title": "迁移为另一套视觉创作能力", "text": ["替换源草图、参考图、请求、代码和输出,保持材料到结果的对应。选择少量差异清楚的案例,输出展示时留出读懂变化的时间。"]}]}, "evidenceReview": {"kind": "prepared-overview", "fullOverviewReviewed": true, "ocrReviewed": true, "sampleCount": 24, "reviewedFrameIds": ["K0001", "K0009", "K0018", "K0026", "K0034", "K0043", "K0051", "K0059", "K0068", "K0076", "K0084", "K0093", "K0101", "K0110", "K0118", "K0126", "K0135", "K0143", "K0151", "K0160", "K0168", "K0176", "K0185", "K0193"], "note": "All frames visible in prepared/overview.jpg and text-index.json reviewed. Boundaries inferred between samples."}, "translations": {"en": {"templateName": "Z.ai — Sketch = Code", "summary": "Sketches, references and recordings are paired with generated code and live visual results.", "styleDescription": "Monospaced lettering with a restrained type hierarchy and source colors #0d1115, #f4f4ee, #7b64c2, #ce5d22, #437692.", "reviewFocus": "Preserve the named object relationships, stage order, typography hierarchy and content replacement rules. Demonstration is authored."}}, "templateId": "V228", "name": "GLM-5V-Turbo — vision coding model", "duration": 77.52, "initialTime": 40, "sourceCanvas": {"width": 1920, "height": 1080}, "actionRange": [4, 21]};
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": [[5.2, 5.2], [6.24, 6.76], [10.92, 19.76], [23.92, 23.92], [27.56, 28.6], [29.64, 31.2], [32.76, 33.8], [34.84, 34.84], [37.96, 41.08], [46.8, 50.96]], "samples": [[5.2, [1416.2790712093024, 32.03488355367224]], [6.24, [1416.2790683255816, 32.03488383274205]], [6.76, [1416.2790683255816, 32.03488383274205]], [10.92, [1416.2790697325581, 32.03488386762574]], [19.76, [1417.6744200930232, 32.03488355367224]], [23.92, [1526.5116293953488, 96.12790700354785]], [27.56, [1526.5116293953488, 96.12790700354785]], [28.6, [1526.5116293953488, 96.12790700354785]], [29.64, [1525.116277627907, 96.12790704419905]], [31.2, [1525.116277627907, 96.12790704419905]], [32.76, [1525.116277627907, 96.12790704419905]], [33.8, [1525.116277627907, 96.12790704419905]], [34.84, [1490.2325569534883, 40.22093022077229]], [37.96, [1491.627908139535, 39.069767162790704]], [41.08, [1490.2325593488372, 39.069767162790704]], [46.8, [1493.0232573953488, 40.22093021500484]], [47.32, [1493.0232573953488, 40.22093021500484]], [47.84, [1539.0697705581392, 39.069767348837246]], [48.36, [1491.6279054418605, 40.220930255655986]], [50.96, [1491.627908511628, 40.22093021500484]]], "maxCompressionErrorVsObservations": 1.3953517674417526, "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": [[5.2, 5.2], [6.24, 6.76], [10.92, 19.76], [23.92, 23.92], [27.56, 28.6], [29.64, 31.2], [32.76, 33.8], [34.84, 34.84], [37.96, 41.08], [46.8, 50.96]], "samples": [[5.2, 14.069767475128216], [6.24, 14.069767475128216], [6.76, 14.069767475128216], [10.92, 14.069767475128213], [12.48, 11.279069423675562], [13, 14.069767475128096], [13.52, 8.372092247009242], [14.04, 14.069767475128216], [19.76, 14.069767475128216], [23.92, 14.255813598632884], [27.56, 14.255813598632884], [28.6, 14.255813598632884], [29.64, 14.255814075469857], [31.2, 14.255814075469857], [32.76, 14.255814075469857], [33.8, 14.255814075469857], [34.84, 14.44186067581174], [37.96, 16.744186401367198], [38.48, 14.30232572555542], [41.08, 16.744186401367198], [46.8, 14.441860198974652], [47.84, 16.7441864013672], [50.96, 14.441860198974652]], "maxCompressionErrorVsObservations": 1.9534885406494205, "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": [[5.2, 5.2], [6.24, 6.76], [10.92, 19.76], [23.92, 23.92], [27.56, 28.6], [29.64, 31.2], [32.76, 33.8], [34.84, 34.84], [37.96, 41.08], [46.8, 50.96]], "samples": [[5.2, "SYS • READY"], [6.24, "SYS • READY"], [6.76, "SYS • READY"], [10.92, "SYS • READY"], [19.76, "SYS • READY"], [23.92, "SYS • READY"], [27.56, "SYS • READY"], [28.6, "SYS • READY"], [29.64, "SYS • READY"], [31.2, "SYS • READY"], [32.76, "SYS • READY"], [33.8, "SYS • READY"], [34.84, "SYS • READY"], [37.96, "SYS • READY"], [41.08, "SYS • READY"], [46.8, "SYS • READY"], [47.84, "SYS • READY | KEY ••"], [48.36, "SYS • READY"], [50.96, "SYS • READY"]], "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": [[5.2, 5.2], [6.24, 6.76], [10.92, 19.76], [23.92, 23.92], [27.56, 28.6], [29.64, 31.2], [32.76, 33.8], [34.84, 34.84], [37.96, 41.08], [46.8, 50.96]], "samples": [[5.2, 86.51162719726585], [6.24, 86.51162719726585], [6.76, 86.51162719726585], [10.92, 86.51162719726585], [13, 86.51162719726585], [13.52, 80.93022918701172], [14.04, 86.51162719726585], [15.08, 89.30232238769531], [19.76, 89.30232238769531], [23.92, 89.30232238769554], [27.56, 89.30232238769554], [28.6, 89.30232238769554], [29.64, 86.51162719726562], [30.16, 89.30232238769554], [31.2, 86.51162719726562], [32.76, 86.51162719726562], [33.8, 86.51162719726562], [34.84, 94.88372039794922], [37.96, 92.093017578125], [38.48, 94.88372039794922], [41.08, 94.88372039794922], [46.8, 94.88372039794922], [47.32, 94.88372039794922], [47.84, 186.9767303466797], [48.36, 92.093017578125], [50.96, 92.093017578125]], "maxCompressionErrorVsObservations": 1.3953475952149574, "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": [[6.24, 10.4], [14.56, 19.76], [23.92, 26], [27.56, 33.8], [35.36, 36.92], [39.52, 39.52], [45.76, 45.76], [46.8, 47.32], [48.36, 50.96]], "samples": [[6.24, [553.9534882325581, 817.6279069279876]], [6.76, [553.9534882325581, 817.6279069279876]], [7.28, [979.5348846037494, 404.6511626455664]], [8.84, [979.5348832313322, 401.8604643625288]], [10.4, [979.5348823948457, 404.65116244852845]], [14.56, [555.3488362790698, 810.8604650950201]], [15.08, [337.67441758139535, 796.8837208978842]], [19.76, [337.67441758139535, 796.8837208978842]], [23.92, [528.8372092186047, 740.9767441617134]], [24.44, [1340.9302339249148, 577.6744184318522]], [24.96, [1391.1627935930233, 574.9651164167658]], [25.48, [1438.6046478976746, 587.4418610814882]], [26, [1437.2092982093022, 587.441861116372]], [27.56, [528.8372091627907, 708.7093022380125]], [29.12, [527.4418598139534, 710.209302454027]], [29.64, [528.8372094418605, 746.5116279401993]], [33.8, [528.8372094418605, 746.5116279401993]], [35.36, [1205.581396967711, 495.3488361192533]], [36.4, [1213.9534906025008, 496.74418581541727]], [36.92, [1213.9534901538218, 496.74418583808733]], [39.52, [419.99999919767447, 819.0232558964262]], [45.76, [1246.046515283721, 555.3488370418603]], [46.8, [369.76744302325585, 838.8139534486404]], [47.32, [369.76744302516573, 838.6046510402157]], [48.36, [368.37209227906976, 820.500000057285]], [50.96, [368.37209294117645, 819.0232557507354]]], "maxCompressionErrorVsObservations": 1.860465515386693, "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": [[6.24, 10.4], [14.56, 19.76], [23.92, 26], [27.56, 33.8], [35.36, 36.92], [39.52, 39.52], [45.76, 45.76], [46.8, 47.32], [48.36, 50.96]], "samples": [[6.24, 11.255813598632812], [6.76, 11.255813598632812], [7.28, 22.99704360961914], [10.4, 22.71470737457281], [14.56, 14.279069423675537], [19.76, 14.232557773590088], [23.92, 14.04651165008545], [24.44, 28.44260406494152], [26, 25.116278648376465], [27.56, 11.418604373931885], [28.6, 14.209302425384521], [29.12, 8.41860485076893], [29.64, 13.95348834991455], [33.8, 13.95348834991455], [35.36, 36.59499549865717], [36.4, 35.23092651367182], [36.92, 37.582199096679744], [39.52, 14.04651165008545], [45.76, 33.488372802734375], [46.8, 14.372093200683594], [47.32, 14.96871280670166], [48.36, 17.000000000000114], [50.96, 14.04651165008545]], "maxCompressionErrorVsObservations": 1.7539796829225978, "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": [[6.24, 10.4], [14.56, 19.76], [23.92, 26], [27.56, 33.8], [35.36, 36.92], [39.52, 39.52], [45.76, 45.76], [46.8, 47.32], [48.36, 50.96]], "samples": [[6.24, "+ FRAME"], [10.4, "+ FRAME"], [14.56, "+ FRAME"], [19.76, "+ FRAME"], [23.92, "+ FRAME"], [24.96, "+ FRAME SAVE"], [25.48, "+ FRAME SAVE LOAD"], [26, "+ FRAME SAVE LOAD"], [27.56, "+ FRAME"], [33.8, "+ FRAME"], [35.36, "+ FRAME"], [36.92, "+ FRAME"], [39.52, "+ FRAME"], [45.76, "+ FRAME ALL NONE"], [46.8, "+ FRAME"], [47.32, "+ FRAME"], [48.36, "+ FRAME"], [50.96, "+ FRAME"]], "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": [[6.24, 10.4], [14.56, 19.76], [23.92, 26], [27.56, 33.8], [35.36, 36.92], [39.52, 39.52], [45.76, 45.76], [46.8, 47.32], [48.36, 50.96]], "samples": [[6.24, 58.604652404785156], [6.76, 58.604652404785156], [7.28, 106.18583679199241], [10.4, 106.12774658203125], [14.56, 55.8139533996582], [15.08, 61.395347595214844], [16.64, 61.395347595214844], [17.16, 58.604652404785156], [17.68, 61.395347595214844], [19.76, 61.395347595214844], [23.92, 58.6046524047851], [24.44, 136.85249328613259], [25.48, 326.5116271972656], [26, 329.302307128906], [27.56, 58.604652404785156], [29.12, 55.8139533996582], [30.16, 61.3953475952149], [31.2, 58.604652404785156], [33.28, 61.3953475952149], [33.8, 58.604652404785156], [35.36, 161.93096923828125], [35.88, 167.73707580566406], [36.4, 178.92315673828125], [36.92, 179.32676696777344], [39.52, 64.18604278564453], [45.76, 365.5813903808594], [46.8, 69.7674407958985], [47.32, 69.96337127685547], [48.36, 66.97674560546875], [50.96, 66.9767456054687]], "maxCompressionErrorVsObservations": 1.86046218872076, "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.2, 19.76], [23.92, 26], [27.56, 28.6], [29.64, 33.8]], "samples": [[5.2, [618.1395343720931, 817.6744183255814]], [6.76, [618.1395343720931, 817.6744183255814]], [7.28, [1093.953488883721, 404.65116265116285]], [10.4, [1093.953488883721, 404.65116265116285]], [10.92, [618.1395342790697, 775.8139535813955]], [13, [618.1395343720931, 775.8139532093023]], [13.52, [619.534884372093, 812.0930230697675]], [14.56, [618.1395342790697, 810.6976745581396]], [15.08, [403.2558138139535, 796.7441859928445]], [19.76, [403.25581408139533, 796.7441861046511]], [23.92, [587.4418598604652, 740.9302326976745]], [24.44, [1467.9069777906975, 576.2790696627907]], [24.96, [1391.1627935930233, 574.9651164167658]], [25.48, [1438.6046478976746, 587.4418610814882]], [26, [1437.2092982093022, 587.441861116372]], [27.56, [587.4418603255815, 708.8372092593918]], [28.6, [588.837209431127, 708.8372093452595]], [29.64, [587.4418598604652, 746.5116280465116]], [33.8, [587.4418598604652, 746.5116280465116]]], "maxCompressionErrorVsObservations": 1.3953490116128933, "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.2, 19.76], [23.92, 26], [27.56, 28.6], [29.64, 33.8]], "samples": [[5.2, 16.744186401367188], [5.72, 9.163599014282227], [6.24, 16.744186401367188], [6.76, 16.744186401367188], [7.28, 22.32558059692377], [8.32, 22.32558059692377], [8.84, 25.719787597656193], [9.36, 22.32558059692377], [10.4, 22.32558059692377], [11.44, 13.95348834991455], [12.48, 16.744186401367188], [14.04, 13.95348834991455], [19.76, 13.95348834991455], [23.92, 13.95348834991455], [24.44, 25.11627769470215], [24.96, 28.069767951965446], [26, 25.116278648376465], [27.56, 11.162790298461914], [28.6, 11.162790298461914], [29.64, 13.95348834991455], [33.8, 13.95348834991455]], "maxCompressionErrorVsObservations": 1.8604653676350917, "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.2, 19.76], [23.92, 26], [27.56, 28.6], [29.64, 33.8]], "samples": [[5.2, "SAVE"], [19.76, "SAVE"], [23.92, "SAVE"], [24.96, "+ FRAME SAVE"], [25.48, "+ FRAME SAVE LOAD"], [26, "+ FRAME SAVE LOAD"], [27.56, "SAVE"], [28.6, "SAVE"], [29.64, "SAVE"], [33.8, "SAVE"]], "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.2, 19.76], [23.92, 26], [27.56, 28.6], [29.64, 33.8]], "samples": [[5.2, 36.27906799316406], [5.72, 34.155231475829964], [6.76, 36.27906799316406], [7.28, 61.39534759521507], [8.84, 61.6397590637207], [10.4, 61.39534759521507], [10.92, 36.27906799316406], [13, 36.27906799316406], [13.52, 39.069766998291016], [14.56, 36.27906799316406], [19.76, 36.27906799316406], [23.92, 36.27906799316406], [24.44, 83.7209243774414], [24.96, 231.62789916992165], [25.48, 326.5116271972656], [26, 329.302307128906], [27.56, 36.27906799316406], [28.6, 39.069766998291016], [29.64, 36.27906799316406], [33.8, 36.27906799316406]], "maxCompressionErrorVsObservations": 1.3953495025634766, "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."}]};