jeremyjia / Games

Home Page Link:
https://jeremyjia.github.io/Games/
3 stars 8 forks source link

Video document repository #525

Closed jeremyjia closed 3 years ago

jeremyjia commented 3 years ago

需求: 用issue保存剧本,并可以在Spring的前端页面上统一查看并生成视频。 这样可以非常方便进行剧本的测试

测试步骤:

补充说明: 可以任意新建issue,将剧本写到其评论中,调用下面的接口,传入issue ID作为参数,525是默认的issueID http://localhost:8080/videodocs/findAll?issueId=issueId

前端页面展示如下:

截屏2021-10-06 下午11 49 36
jeremyjia commented 3 years ago

{ "request": { "version": "0.0.18", "width": 800, "height": 600, "audio": "1.mp3", "time": "5", "rate": "1", "backgroundColor": "grey", "frames": [ ] } }

jeremyjia commented 3 years ago

{ "request": { "version": "0.0.13", "description":"原创歌曲-不再流浪", "width": 1024, "height": 768, "music": "bzll.mp3", "rate": "1", "frames": [ { "number": "1", "time": 222, "objects": [ { "text": "不再流浪", "x": 240, "y": 100, "size": 90, "color": "107,142,35" }, { "text": "词曲作者: Littleflute", "x": 20, "y": 180, "size": 40, "color": "95,35,135" }, { "text": "吉他弹唱: Littleflute", "x": 20, "y": 230, "size": 40, "color": "95,35,135" }, { "text": "视频制作: Jeremyjia", "x": 20, "y": 280, "size": 40, "color": "95,35,135" } ], "backgroundColor": "100,100,100" } ], "superObjects": [ { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "199,97,20", "name": "许多许多年以前" }, "frameRange": "(9,12)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "199,97,20", "name": "我带着无奈去流浪" }, "frameRange": "(13,16)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "199,97,20", "name": "经过多少的风霜" }, "frameRange": "(17,20)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "199,97,20", "name": "我独自漂泊在他乡" }, "frameRange": "(21,25)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "199,197,20", "name": "多少次夜里" }, "frameRange": "(26,29)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "199,197,20", "name": "盼望星星,盼月亮" }, "frameRange": "(30,34)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "199,197,20", "name": "只希望能够" }, "frameRange": "(35,38)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "199,197,20", "name": "早日回到我的故乡" }, "frameRange": "(39,41)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "199,97,50", "name": "我不想再流浪" }, "frameRange": "(45,50)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "199,97,50", "name": "我只想回到故乡" }, "frameRange": "(51,56)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "199,97,50", "name": "回到童年生长的地方" }, "frameRange": "(58,63)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "100,197,150", "name": "我不想再流浪" }, "frameRange": "(64,69)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "100,197,150", "name": "我只想回到故乡" }, "frameRange": "(70,76)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "100,197,150", "name": "回到可爱的母亲身旁" }, "frameRange": "(78,85)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "rect", "attribute": { "x1": 100, "y1": 370, "x2": 800, "y2": 320, "size": 0.0, "color": "127,255,212", "name": "" }, "frameRange": "(92,166)", "action": { "trace": "x=100", "step": 0 } }, { "type": "text", "attribute": { "x1": 20, "y1": 600, "x2": -1, "y2": -1, "size": 60, "color": "30,145,255", "name": "许多许多年以前\n我带着无奈去流浪\n经过多少的风霜\n我独自漂泊在他乡\n多少次夜里\n盼望星星,盼月亮\n只希望能够\n早日回到我的故乡\n我不想再流浪\n我只想回到故乡\n回到童年生长的地方\n我不想再流浪\n我只想回到故乡\n回到可爱的母亲身旁", "area": { "left": 100, "top": 350, "width": 800, "height": 300 } }, "frameRange": "(92,166)", "action": { "trace": "x=220", "step": -15 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "100,197,150", "name": "我不想再流浪" }, "frameRange": "(169,174)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "100,197,150", "name": "我只想回到故乡" }, "frameRange": "(175,181)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "100,197,150", "name": "回到童年生长的地方" }, "frameRange": "(182,188)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "100,197,150", "name": "我不想再流浪" }, "frameRange": "(189,194)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "100,197,150", "name": "我只想回到故乡" }, "frameRange": "(195,200)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "text", "attribute": { "x1": 150, "y1": 500, "x2": -1, "y2": -1, "size": 80, "color": "100,197,150", "name": "回到可爱的母亲身旁" }, "frameRange": "(201,208)", "action": { "trace": "y=0xx+0x+700", "step": 10 } }, { "type": "picture", "attribute": { "x1": 330, "y1": 0, "x2": 600, "y2": 400, "size": 50, "color": "255,0,0", "name": "hyl.png" }, "frameRange": "(212,222)", "action": { "trace": "y=0xx+0*x+300", "step": -10 } } ] } }

jeremyjia commented 3 years ago

{ "request": { "version": "0.0.10", "width": 1024, "height": 768, "description":"JS插件-烟花效果", "music": "1.mp3", "rate": "25", "frames": [ { "number": "1", "time": "1250", "objects": [ { "text": "${VAR_TITLE}", "x": 100, "y": 600, "size": 50, "color": "0,200,120", "layer": 2 } ], "backgroundColor": "200,200,222" } ], "superObjects": [ { "type": "javascript", "frameRange": "(1,1250)", "attribute": { "script": "firework.js", "function": "animateFrame", "start": 1 }, "layer": 1 } ], "Macros": [ { "name": "VAR_TITLE", "value": "JavaScript插件动画演示" } ] } }

jeremyjia commented 3 years ago

{ "request": { "version": "0.0.6", "description":"火柴人行走动画", "width": 1024, "height": 768, "music": "1.mp3", "rate": "5", "frames": [ { "number": "1", "time": 100, "objects": [ { "text": "帧穿越循环动画效果演示", "x": 200, "y": 100, "size": 50, "color": "1,142,35" } ], "backgroundColor": "200,200,222" } ], "superObjects": [ { "type": "picture", "attribute": { "x1": 0, "y1": 0, "x2": 2048, "y2": 768, "size": 50, "color": "255,0,0", "name": "x1.jpg" }, "frameRange": "(20,100)", "action": { "trace": "y=0xx+0x+0", "step": -10 } }, { "type": "picture", "attribute": { "x1": 10, "y1": 200, "x2": 80, "y2": 80, "size": 50, "color": "255,0,0", "name": "r1.jpg" }, "frameRange": "(20,100)", "action": { "trace": "y=0xx+0x+200", "step": 20, "loop":["r1.jpg","r2.jpg","r3.jpg","r4.jpg"] } }, { "type": "picture", "attribute": { "x1": 300, "y1": 300, "x2": 180, "y2": 180, "size": 50, "color": "255,0,0", "name": "r1.jpg" }, "frameRange": "(1,100)", "action": { "trace": "y=0xx+0x+300", "step": 0, "loop":["r1.jpg","r2.jpg","r3.jpg","r4.jpg"] } }, { "type": "picture", "attribute": { "x1": 10, "y1": 500, "x2": 150, "y2": 150, "size": 50, "color": "255,0,0", "name": "l1.jpg" }, "frameRange": "(5,90)", "action": { "trace": "y=0xx+0x+500", "step": 10, "loop":["l1.jpg","l2.jpg","l3.jpg","l4.jpg"] } } ] } }

jeremyjia commented 3 years ago

{ "request": { "version": "0.0.13", "width": 800, "height": 600, "music": "1.mp3", "rate": "1", "frames": [ { "number": "1", "time": 10, "objects": [ { "text": "在线视频生成测试", "x": 100, "y": 220, "size": 60, "color": "107,142,36" } ], "backgroundColor": "100,100,100" } ], "superObjects": [ { "type": "text", "attribute": { "x1": 50, "y1": 500, "x2": -1, "y2": -1, "size": 50, "color": "200,182,193", "name": "漂泊者乐园 test 0.11" }, "frameRange": "(3,8)", "action": { "trace": "y=0xx+0*x+330", "step": 10 } } ] } }

jeremyjia commented 3 years ago

{ "request": { "version": "0.0.15", "width": 1024, "height": 768, "description":"python插件-水波纹特效案例", "music": "1.mp3", "rate": "1", "frames": [ { "time": 5, "objects": [ { "text": "调用Python进行图片处理演示程序", "x": 50, "y": 200, "size": 60, "color": "110,120,180" }, { "text": "可爱的小猫咪-原图", "x": 180, "y": 700, "size": 55, "color": "156,85,166" } ], "backgroundPicture": "${VAR_CAT_SRC}" }, { "time": 5, "objects": [ { "text": "可爱的小猫咪-水波纹特效1", "x": 170, "y": 700, "size": 55, "color": "100,200,80" } ], "backgroundPicture": "${VAR_CAT1}" }, { "time": 5, "objects": [ { "text": "可爱的小猫咪-水波纹特效2", "x": 170, "y": 700, "size": 55, "color": "180,100,220" } ], "backgroundPicture": "${VAR_CAT2}" } ], "Macros": [ { "name": "VAR_CAT_SRC", "value": "https://jeremyjia.github.io/Games/python/i140/f1.jpg" }, { "name": "VAR_CAT1", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i140/water_effect.py", "input": "https://jeremyjia.github.io/Games/python/i140/f1.jpg", "output": "cat1.jpg", "opts": "-c 1 -w 4" } } }, { "name": "VAR_CAT2", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i140/water_effect.py", "input": "https://jeremyjia.github.io/Games/python/i140/f1.jpg", "output": "cat2.jpg", "opts": "-c 5 -w 8" } } } ] } }

jeremyjia commented 2 years ago

{ "request": { "version": "0.0.15", "description":"打拍子音频测试", "width": 1024, "height": 768, "music": "1.mp3", "rate": "1", "frames": [ { "number": "1", "time": "10", "objects": [ { "text": "${VAR_TITLE}", "x": 200, "y": 200, "size": 80, "color": "0,200,120", "layer": 2 } ], "backgroundColor": "200,200,222" } ], "audioObjects": [ { "start": "0", "audioFile": "A_Sax.wav", },
{ "start": "1", "audioFile": "A_Bass.wav", }, { "start": "1.5", "audioFile": "A_Sax.wav", }, { "start": "2", "audioFile": "A_Bass.wav", }, { "start": "2.5", "audioFile": "A_Sax.wav", }, { "start": "3", "audioFile": "A_Bass.wav", }, { "start": "3.5", "audioFile": "A_Sax.wav", }, { "start": "4", "audioFile": "A_Bass.wav", }, { "start": "4.5", "audioFile": "A_Sax.wav", }, { "start": "5", "audioFile": "A_Bass.wav", }, { "start": "5.5", "audioFile": "A_Sax.wav", }, { "start": "6", "audioFile": "A_Bass.wav", }, { "start": "6.5", "audioFile": "A_Sax.wav", }, { "start": "7", "audioFile": "A_Bass.wav", }, { "start": "7.5", "audioFile": "A_Sax.wav", }, { "start": "8", "audioFile": "A_Bass.wav", } ], "Macros": [ { "name": "VAR_TITLE", "value": "音频测试" } ] } }

jeremyjia commented 2 years ago

{ "request": { "version": "0.0.15", "width": 1024, "height": 768, "description":"弹奏红星歌", "music": "1.mp3", "rate": "1", "frames": [ { "number": "1", "time": "40", "objects": [ { "text": "${VAR_TITLE}", "x": 100, "y": 300, "size": 70, "color": "200,60,120", "layer": 2 } ], "backgroundColor": "120,130,122" } ], "audioObjects": [
{ "start": "1", "audioFile": "5.ogg", }, { "start": "1.5", "audioFile": "5.ogg", }, { "start": "2", "audioFile": "5.ogg", }, { "start": "2.5", "audioFile": "6.ogg", }, { "start": "3", "audioFile": "5.ogg", }, { "start": "4", "audioFile": "6.ogg", }, { "start": "5", "audioFile": "3.ogg", }, { "start": "5.5", "audioFile": "2.ogg", }, { "start": "6", "audioFile": "1.ogg", }, { "start": "7", "audioFile": "1.ogg", }, { "start": "7.5", "audioFile": "1.ogg", }, { "start": "8", "audioFile": "6.ogg", }, { "start": "9", "audioFile": "6.ogg", }, { "start": "10", "audioFile": "1-1.ogg", }, { "start": "10.5", "audioFile": "6.ogg", }, { "start": "11", "audioFile": "5.ogg", }, { "start": "11.5", "audioFile": "4.ogg", }, { "start": "12", "audioFile": "3.ogg", }, { "start": "12.5", "audioFile": "2.ogg", }, { "start": "13.5", "audioFile": "5.ogg", }, { "start": "14", "audioFile": "3.ogg", }, { "start": "15", "audioFile": "1-1.ogg", }, { "start": "16", "audioFile": "1-1.ogg", }, { "start": "17", "audioFile": "6.ogg", }, { "start": "18", "audioFile": "6.ogg", }, { "start": "18.5", "audioFile": "5.ogg", }, { "start": "19", "audioFile": "3.ogg", }, { "start": "20", "audioFile": "2.ogg", }, { "start": "20.5", "audioFile": "2.ogg", }, { "start": "21", "audioFile": "6.ogg", }, { "start": "21.5", "audioFile": "5.ogg", }, { "start": "22", "audioFile": "4.ogg", }, { "start": "22.5", "audioFile": "3.ogg", }, { "start": "23", "audioFile": "2.ogg", }, { "start": "23.5", "audioFile": "1.ogg", }, { "start": "24", "audioFile": "5.ogg", }, { "start": "25", "audioFile": "5.ogg", }, { "start": "25.5", "audioFile": "3.ogg", }, { "start": "26", "audioFile": "1-1.ogg", }, { "start": "27", "audioFile": "1-1.ogg", }, { "start": "28", "audioFile": "2-2.ogg", }, { "start": "29", "audioFile": "2-2.ogg", }, { "start": "29.5", "audioFile": "1-1.ogg", }, { "start": "30", "audioFile": "6.ogg", }, { "start": "31", "audioFile": "5.ogg", }, { "start": "31.5", "audioFile": "1-1.ogg", }, { "start": "32", "audioFile": "6.ogg", }, { "start": "32.5", "audioFile": "5.ogg", }, { "start": "33", "audioFile": "3.ogg", }, { "start": "34", "audioFile": "3.ogg", }, { "start": "34.5", "audioFile": "2.ogg", }, { "start": "35", "audioFile": "1.ogg", } ], "Macros": [ { "name": "VAR_TITLE", "value": "音频演示-弹奏红星歌" } ] } }

jeremyjia commented 2 years ago

{ "request": { "version": "0.0.29", "width": 1024, "height": 768, "description":"excel处理", "music": "1.mp3", "rate": "1", "frames": [ { "time": 5, "objects": [ { "text": "Examplify the Bar Chart via Python", "x": 50, "y": 200, "size": 60, "color": "110,120,180" }, { "text": "Cute Cat and Original Chart", "x": 180, "y": 700, "size": 55, "color": "156,85,166" } ], "backgroundPicture": "${VAR_CAT_SRC}" }, { "time": 5, "objects": [ { "text": "Bar Chart with Title", "x": 170, "y": 700, "size": 55, "color": "100,200,80" } ], "backgroundPicture": "${VAR_CAT1}" }, { "time": 5, "objects": [ { "text": "Bar Chart with One Array", "x": 170, "y": 700, "size": 55, "color": "180,100,220" } ], "backgroundPicture": "${VAR_CAT2}" } ], "Macros": [ { "name": "VAR_CAT_SRC", "value": "https://jeremyjia.github.io/Games/python/i140/f1.jpg" }, { "name": "VAR_CAT1", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i542/bar_chart_excel.py", "input": "https://jeremyjia.github.io/Games/python/i542/1.xlsx", "output": "cat1.jpg", "opts": "-t \"Bar1 title\"" } } }, { "name": "VAR_CAT2", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i542/bar_chart_excel.py", "input": "https://jeremyjia.github.io/Games/python/i542/1.xlsx", "output": "cat2.jpg", "opts": "-t Bar2" } } } ] } }

jeremyjia commented 2 years ago

{ "request": { "version": "0.0.16", "description":"SRT字幕超级对象", "width": 1024, "height": 768, "music": "1.mp3", "rate": "10", "frames": [ { "number": "1", "time": "${VAR_FRAMES}", "objects": [ { "text": "${VAR_TITLE}", "x": 100, "y": 200, "size": 50, "color": "50,150,120", "layer": 2 } ], "backgroundColor": "200,200,222" } ], "superObjects": [ { "type": "subtitle", "frameRange": "(1,${VAR_FRAMES})", "attribute": { "script": "${VAR_SRT}", "x1": 50, "y1": 670, "size": 30, "color": "20,82,190" }, "layer": 1 } ], "Macros": [ { "name": "VAR_TITLE", "value": "字幕超级对象-演示程序" }, { "name": "VAR_SRT", "value": "1.srt" } ] } }

jeremyjia commented 2 years ago

{ "request": { "version": "0.0.16", "description":"LRC字幕超级对象", "width": 1024, "height": 768, "music": "https://files.51voa.cn/202111/nasa-prepares-to-launch-asteroid-defense-test-mission.mp3", "rate": "1", "frames": [ { "number": "1", "time": "${VAR_TIME}", "objects": [ { "text": "${VAR_TITLE}", "x": 100, "y": 300, "size": 60, "color": "70,130,120", "layer": 2 } ], "backgroundColor": "200,200,222" } ], "superObjects": [ { "type": "subtitle", "frameRange": "(1,${VAR_TIME})", "attribute": { "script": "${VAR_LRC_PATH}", "x1": 20, "y1": 670, "size": 30, "color": "20,82,190" }, "layer": 1 }, { "type": "picture", "attribute": { "x1": 100, "y1": 200, "x2": 510, "y2": 380, "size": 50, "color": "255,0,0", "name": "https://img.51voa.cn/1/C501D07B-81C5-462A-89C8-E630C2DD9A1F_w268_r1.jpg" }, "frameRange": "(1,${VAR_TIME})", "action": { "trace": "y=0xx+0*x+200", "step": 0 } } ], "Macros": [ { "name": "VAR_TITLE", "value": "字幕超级对象-演示程序" }, { "name": "VAR_LRC_PATH", "value": "https://www.51voa.com/lrc/202111/nasa-prepares-to-launch-asteroid-defense-test-mission.lrc" } ] } }

jeremyjia commented 2 years ago

{ "request": { "version": "0.0.10", "width": 1024, "height": 768, "description":"JS插件-小人跳舞", "music": "1.mp3", "rate": "25", "frames": [ { "number": "1", "time": "${VAR_FRAMES}", "objects": [ { "text": "${VAR_TITLE}", "x": 100, "y": 600, "size": 50, "color": "0,200,120", "layer": 2 } ], "backgroundColor": "200,200,222" } ], "superObjects": [ { "type": "javascript", "frameRange": "(1,${VAR_FRAMES})", "attribute": { "script": "so646a.js", "function": "animateFrame", "start": 1 }, "layer": 1 } ], "Macros": [ { "name": "VAR_TITLE", "value": "JavaScript插件动画演示" } ] } }

jeremyjia commented 2 years ago

{ "request": { "version": "0.0.17", "description":"SVG唐老鸭", "width": 1024, "height": 768, "music": "1.mp3", "rate": "1", "frames": [ { "time": 10, "objects": [ { "text": "SVG插件演示程序", "x": 50, "y": 200, "size": 60, "color": "30,255,30" }, { "picture": "${VAR_DUCK_SRC}", "x": 600, "y": 500, "width":200, "heigth":200 } ], "backgroundColor": "135,206,250", "backgroundPicture": "${VAR_DUCK_SRC}" }, { "time": 5, "objects": [ { "text": "SVG插件演示程序", "x": 50, "y": 600, "size": 60, "color": "255,0,0" } ], "backgroundColor": "135,206,250", "backgroundPicture": "${VAR_SVG4}" } ], "superObjects": [ { "type": "picture", "attribute": { "x1": 800, "y1": 100, "x2": 300, "y2": 300, "size": 10, "color": "255,0,0", "name": "${VAR_DUCK_SRC}" }, "frameRange": "(3,14)", "action": { "trace": "y=0xx+0*x+100", "step": -20 } } ],

    "Macros": [
        {
            "name": "VAR_DUCK_SRC",
            "value": {
                "type": "svg",
                "attribute": {
                    "input": "duck.svg",
                    "output": "duck.png"
                }
            }
        },
        {
            "name": "VAR_SVG4",
            "value": {
                "type": "svg",
                "attribute": {
                    "input": "https://jeremyjia.github.io/Games/issues/689/resource/s4.svg",
                    "output": "svg4.png"
                }
            }
        }
    ]
}

}

jeremyjia commented 1 year ago

{ "request": { "version": "0.0.18", "description":"JS动画下雨", "width": 1024, "height": 768, "music": "rsj.mp3", "rate": "10", "frames": [ { "number": "1", "time": "300", "objects": [ { "text": "${VAR_TITLE}", "x": 300, "y": 100, "size": 50, "color": "95,35,135", "layer": 2 } ], "backgroundColor": "10,10,10" } ], "superObjects": [ { "type": "javascript", "frameRange": "(1,300)", "attribute": { "script": "${VAR_JS_PLUGIN}", "function": "animateFrame", "start": 1 }, "layer": 1 }, { "type": "text", "attribute": { "x1": 20, "y1": 550, "x2": -1, "y2": -1, "size": 60, "color": "50,255,50", "name": "祝你踏过千重浪\n能留在爱人的身旁\n在妈妈老去的时光\n听她把儿时慢慢讲\n也祝你不忘少年样\n也无惧那白发苍苍\n若年华终将被遗忘\n记得你我", "area": { "left": 100, "top": 300, "width": 800, "height": 200 } }, "layer": 2, "frameRange": "(1,300)", "action": { "trace": "x=220", "step": -2 } } ], "Macros": [ { "name": "VAR_TITLE", "value": "JS插件动画演示" }, { "name": "VAR_JS_PLUGIN", "value": "https://jeremyjia.github.io/Games/pbzTools/scriptengine/plugin/plxRain.js" }, ] } }

jeremyjia commented 1 year ago

{ "request": { "version": "0.0.18", "description":"JS动画气泡", "width": 1024, "height": 768, "music": "rsj.mp3", "rate": "10", "frames": [ { "number": "1", "time": "300", "objects": [ { "text": "${VAR_TITLE}", "x": 300, "y": 100, "size": 50, "color": "95,35,135", "layer": 2 } ], "backgroundColor": "10,10,10" } ], "superObjects": [ { "type": "javascript", "frameRange": "(1,300)", "attribute": { "script": "${VAR_JS_PLUGIN}", "function": "animateFrame", "start": 1 }, "layer": 1 }, { "type": "text", "attribute": { "x1": 20, "y1": 550, "x2": -1, "y2": -1, "size": 60, "color": "50,255,50", "name": "祝你踏过千重浪\n能留在爱人的身旁\n在妈妈老去的时光\n听她把儿时慢慢讲\n也祝你不忘少年样\n也无惧那白发苍苍\n若年华终将被遗忘\n记得你我", "area": { "left": 100, "top": 300, "width": 800, "height": 200 } }, "layer": 2, "frameRange": "(1,300)", "action": { "trace": "x=220", "step": -2 } } ], "Macros": [ { "name": "VAR_TITLE", "value": "JS插件动画演示" }, { "name": "VAR_JS_PLUGIN", "value": "https://jeremyjia.github.io/Games/pbzTools/scriptengine/plugin/plxBubble.js" }, ] } }

jeremyjia commented 1 year ago

{ "request": { "version": "0.0.11", "width": 1024, "height": 768, "description":"语音阅读_Google_Api", "music": "tts:春眠不觉晓,处处闻啼鸟,夜来风雨声,花落知多少", "rate": "1", "frames": [ { "number": "1", "time": 5, "objects": [ { "text": "春眠不觉晓", "x": 200, "y": 200, "size": 50, "color": "0,255,0" }, { "text": "处处闻啼鸟", "x": 200, "y": 300, "size": 50, "color": "0,255,0" }, { "text": "夜来风雨声", "x": 200, "y": 400, "size": 50, "color": "0,255,0" }, { "text": "花落知多少", "x": 200, "y": 500, "size": 50, "color": "0,255,0" } ], "backgroundColor": "72,61,139" }, { "number": "2", "time": 5, "objects": [ { "text": "春眠不觉晓", "x": 200, "y": 200, "size": 80, "color": "0,255,255" }, { "text": "处处闻啼鸟", "x": 200, "y": 300, "size": 50, "color": "0,255,0" }, { "text": "夜来风雨声", "x": 200, "y": 400, "size": 50, "color": "0,255,0" }, { "text": "花落知多少", "x": 200, "y": 500, "size": 50, "color": "0,255,0" } ], "backgroundColor": "72,61,139" }, { "number": "3", "time": 5, "objects": [ { "text": "春眠不觉晓", "x": 200, "y": 200, "size": 50, "color": "0,255,0" }, { "text": "处处闻啼鸟", "x": 200, "y": 300, "size": 80, "color": "0,255,255" }, { "text": "夜来风雨声", "x": 200, "y": 400, "size": 50, "color": "0,255,0" }, { "text": "花落知多少", "x": 200, "y": 500, "size": 50, "color": "0,255,0" } ], "backgroundColor": "72,61,139" }, { "number": "4", "time": 5, "objects": [ { "text": "春眠不觉晓", "x": 200, "y": 200, "size": 50, "color": "0,255,0" }, { "text": "处处闻啼鸟", "x": 200, "y": 300, "size": 50, "color": "0,255,0" }, { "text": "夜来风雨声", "x": 200, "y": 400, "size": 80, "color": "0,255,255" }, { "text": "花落知多少", "x": 200, "y": 500, "size": 50, "color": "0,255,0" } ], "backgroundColor": "72,61,139" }, { "number": "5", "time": 5, "objects": [ { "text": "春眠不觉晓", "x": 200, "y": 200, "size": 50, "color": "0,255,0" }, { "text": "处处闻啼鸟", "x": 200, "y": 300, "size": 50, "color": "0,255,0" }, { "text": "夜来风雨声", "x": 200, "y": 400, "size": 50, "color": "0,255,0" }, { "text": "花落知多少", "x": 200, "y": 500, "size": 80, "color": "0,255,255" } ], "backgroundColor": "72,61,139" }, { "number": "6", "time": 5, "objects": [ { "text": "谢谢观看", "x": 200, "y": 300, "size": 100, "color": "255,255,0" }, { "picture": "bb.gif", "x": 200, "y": 500, "width":80, "heigth":80 }, { "picture": "https://gdb.voanews.com/6AD44B97-4251-4D10-B871-C134BBFB39FA_w256_r1.jpg", "x": 300, "y": 500, "width":80, "heigth":80 } ], "backgroundPicture": "bgpic.jpg" } ] } }

jeremyjia commented 1 year ago

{ "request": { "version": "0.0.21", "description":"JS象棋棋谱", "width": 1024, "height": 768, "music": "${VAR_MP3}", "rate": "2", "frames": [ { "number": "1", "time": "${VAR_CHESS_LOG_FRAME_NUMBER}", "objects": [ { "text": "${VAR_TITLE}", "x": 50, "y": 650, "size": 40, "color": "1,142,35", "layer": 2 } ], "backgroundColor": "200,200,200", } ], "superObjects": [ { "type": "text", "attribute": { "x1": 20, "y1": 300, "x2": -1, "y2": -1, "size": 20, "color": "30,40,50", "name": "${VAR_CHESS_LOG_TEXT}" }, "frameRange": "(1,${VAR_CHESS_LOG_FRAME_NUMBER})", "action": { "trace": "x=720", "step": -1 }, "layer": 2 }, { "type": "javascript", "frameRange": "(1,${VAR_CHESS_LOG_FRAME_NUMBER})", "attribute": { "script": "https://jeremyjia.github.io/Games/pbzTools/scriptengine/plugin/plxChessBoard.js", "function": "animateFrame", "start": 1, "chess":"setChessLogWrapper" }, "layer": 1 } ], "audioObjects": [ "{audioSubObjects:[${VAR_CHESS_LOG_AUDIO_OBJECTS}]}" ], "Macros": [ { "name": "VAR_MP3", "value": "bzll.mp3" }, { "name": "VAR_TITLE", "value": { "href": "https://www.xqbase.com/xqbase/?gameid=6571", "rule": "title", "charset": "GBK", "number": "20" } }, { "name": "VAR_CHESS_LOG_TEXT", "value": { "href": "https://www.xqbase.com/xqbase/?gameid=6571", "rule": "pre", "charset": "GBK", "number": "-1" } } ] } }

jeremyjia commented 1 year ago

{ "request": { "version": "0.0.20", "width": 1024, "height": 768, "description":"测试TTS", "music": "1.mp3", "rate": "25", "frames": [ { "number": "1", "time": "300", "objects": [ { "text": "${VAR_TITLE}", "x": 50, "y": 600, "size": 50, "color": "0,200,120", "layer": 2 } ], "backgroundColor": "200,200,222" } ], "superObjects": [ { "type": "javascript", "frameRange": "(1,500)", "attribute": { "script": "https://jeremyjia.github.io/Games/pbzTools/scriptengine/plugin/plxRunning.js", "function": "animateFrame", "start": 1 }, "layer": 1 } ], "audioObjects": [ { "start": "0", "audioFile": "tts:欢迎光临", },
{ "start": "0", "audioFile": "tts:我们的网站", }, { "start": "4", "audioFile": "tts:我是Jeremy", }, { "start": "6", "audioFile": "tts:测试百度文本转语音API,并测试与我们的剧本集成", } ], "Macros": [ { "name": "VAR_TITLE", "value": "百度文本转语音集成测试" } ] } }

jeremyjia commented 1 year ago

{ "request": { "version": "0.0.22", "width": 1024, "height": 768, "description":"测试卡拉OK插件", "music": "${VAR_MP3}", "rate": "5", "frames": [ { "number": "1", "time": "150", "objects": [ { "text": "${VAR_TITLE}", "x": 50, "y": 200, "size": 40, "color": "200,100,155", "layer": 2 } ], "backgroundColor": "200,200,200", } ], "superObjects": [ { "type": "javascript", "frameRange": "(8,12)", "unit":1, "attribute": { "script": "plxTextEffects.js", "function": "animateFrame", "start": 1, "initArgs":{ "function": "setPlxArguments", "args": ["许多许多年以前", "50px Arial"] }, "refreshArgs":"true" }, "layer": 2 }, { "type": "javascript", "frameRange": "(13,15)", "unit":1, "attribute": { "script": "plxTextEffects.js", "function": "animateFrame", "start": 1, "initArgs":{ "function": "setPlxArguments", "args": ["我带着无奈去流浪","36px Arial"] }, "refreshArgs":"true" }, "layer": 1 }, { "type": "javascript", "frameRange": "(17,20)", "unit":1, "attribute": { "script": "plxTextEffects.js", "function": "animateFrame", "start": 1, "initArgs":{ "function": "setPlxArguments", "args": ["经过多少的风霜","50px Arial"] }, "refreshArgs":"true" }, "layer": 1 }, { "type": "javascript", "frameRange": "(21,25)", "unit":1, "attribute": { "script": "plxTextEffects.js", "function": "animateFrame", "start": 1, "initArgs":{ "function": "setPlxArguments", "args": ["我独自漂泊在他乡","36px Arial"] }, "refreshArgs":"true" }, "layer": 1 }, { "type": "javascript", "frameRange": "(26,29)", "unit":1, "attribute": { "script": "plxTextEffects.js", "function": "animateFrame", "start": 1, "initArgs":{ "function": "setPlxArguments", "args": ["多少次夜里","100px Arial"] }, "refreshArgs":"true" }, "layer": 1 }, { "type": "javascript", "frameRange": "(30,34)", "unit":1, "attribute": { "script": "commentID:1569604293", "function": "animateFrame", "start": 1 }, "layer": 1 } ],

    "Macros": [
        {
            "name": "VAR_MP3",
            "value": "bzll.mp3"
        },
        {
            "name": "VAR_TITLE",
            "value": "卡拉OK字幕特效插件演示"
        }
    ]
}

}

jeremyjia commented 1 year ago

{ "request": { "version": "0.0.23", "description":"正弦曲线插件", "width": 1024, "height": 768, "music": "rsj.mp3", "rate": "2", "frames": [ { "number": "1", "time": "60", "objects": [ { "text": "${VAR_TITLE}", "x": 300, "y": 100, "size": 50, "color": "95,35,135", "layer": 2 } ], "backgroundColor": "10,10,10" } ], "superObjects": [ { "type": "javascript", "frameRange": "(1,300)", "unit":1, "attribute": { "script": "${VAR_JS_PLUGIN}", "function": "animateFrame", "start": 1 }, "layer": 1 }, { "type": "text", "attribute": { "x1": 20, "y1": 450, "x2": -1, "y2": -1, "size": 60, "color": "50,255,50", "name": "祝你踏过千重浪\n能留在爱人的身旁\n在妈妈老去的时光\n听她把儿时慢慢讲\n也祝你不忘少年样\n也无惧那白发苍苍\n若年华终将被遗忘\n记得你我", "area": { "left": 100, "top": 300, "width": 800, "height": 200 } }, "layer": 2, "frameRange": "(1,300)", "unit":1, "action": { "trace": "x=220", "step": -10 } } ], "Macros": [ { "name": "VAR_TITLE", "value": "Comment插件引用测试" }, { "name": "VAR_JS_PLUGIN", "value": "commentID:1626724917" }, ] } }

jeremyjia commented 1 year ago

{ "request": { "version": "0.0.24", "description":"时钟插件测试_commentsID", "width": 1024, "height": 768, "music": "rsj.mp3", "rate": "1", "frames": [ { "number": "1", "time": "30", "objects": [ { "text": "${VAR_TITLE}", "x": 200, "y": 100, "size": 50, "color": "95,35,135", "layer": 2 } ], "backgroundColor": "180,180,180" } ], "superObjects": [ { "type": "javascript", "frameRange": "(5,25)", "unit":1, "attribute": { "script": "${VAR_JS_PLUGIN}", "function": "animateFrame", "start": 1 }, "layer": 1 }, { "type": "javascript", "frameRange": "(1,30)", "unit":1, "attribute": { "script": "commentID:1574852241", "function": "animateFrame", "start": 1 }, "layer": 1 }, { "type": "text", "attribute": { "x1": 200, "y1": 450, "x2": -1, "y2": -1, "size": 60, "color": "50,255,50", "name": "祝你踏过千重浪,能留在爱人的身旁,在妈妈老去的时光,听她把儿时慢慢讲,也祝你不忘少年样,也无惧那白发苍苍,若年华终将被遗忘,记得你我" }, "layer": 2, "frameRange": "(1,300)", "unit":1, "action": { "trace": "y=0xx+0*x+550", "step": -100 } } ], "Macros": [ { "name": "VAR_TITLE", "value": "Comment插件引用测试" }, { "name": "VAR_JS_PLUGIN", "value": "commentID:1570566319" }, ] } }

jeremyjia commented 1 year ago

{ "request": { "version": "0.0.24", "description":"插件测试_Cars", "width": 1024, "height": 768, "music": "1.mp3", "rate": "10", "frames": [ { "number": "1", "time": "100", "objects": [ { "text": "${VAR_TITLE}", "x": 200, "y": 100, "size": 50, "color": "95,35,135", "layer": 2 } ], "backgroundColor": "180,180,180" } ], "superObjects": [ { "type": "javascript", "frameRange": "(0,30)", "unit":1, "attribute": { "script": "${VAR_JS_PLUGIN}", "function": "animateFrame", "start": 1 }, "layer": 1 } ], "Macros": [ { "name": "VAR_TITLE", "value": "Comment插件引用测试" }, { "name": "VAR_JS_PLUGIN", "value": "commentID:1656575178" }, ] } }

jeremyjia commented 1 year ago

{ "request": { "version": "0.0.13", "width": 1024, "height": 768, "description":"任意轨迹且绘制足迹", "music": "1.mp3", "rate": "5", "frames": [ { "number": "1", "time": 100, "objects": [ { "text": "帧穿越对象任意轨迹且绘制足迹", "x": 100, "y": 220, "size": 50, "color": "128,12,128" } ], "backgroundColor": "100,100,100" } ], "superObjects": [ { "type": "circle", "attribute": { "x1": 0, "y1": 200, "x2": 50, "y2": 50, "size": 0.0, "color": "0,255,0", "name": "C2" }, "frameRange": "(1,90)", "action": { "trace": "function trace(x) { return 60Math.sin(x)+400; }", "step": 20, "print": true } }, { "type": "text", "attribute": { "x1": 50, "y1": 500, "x2": -1, "y2": -1, "size": 50, "color": "200,182,103", "name": "漂泊者乐园text对象" }, "frameRange": "(10,100)", "action": { "trace": "function trace(x) { return 700; }", "step": 10, "print":true } }, { "type": "circle", "attribute": { "x1": 1, "y1": 200, "x2": 50, "y2": 50, "size": 0.0, "color": "60,85,70", "name": "C1" }, "frameRange": "(1,90)", "action": { "trace": "function trace(x) { var y = Math.sqrt(300300-x*x); return y; }", "step": 10, "footprint":{ "type":"circle", "attribute":{ "src":"foot.png", "width":6, "height":6, "dy":20, "step":1 } } } }, ] } }

jeremyjia commented 1 year ago

{ "request": { "version": "0.0.13", "width": 1024, "height": 768, "description":"小孩长大", "music": "1.mp3", "rate": "5", "frames": [ { "number": "1", "time": 100, "objects": [ { "text": "帧穿越对象足迹演示", "x": 150, "y": 150, "size": 50, "color": "128,52,128" } ], "backgroundColor": "100,100,100" } ], "superObjects": [ { "type": "picture", "attribute": { "x1": 10, "y1": 200, "x2": 75, "y2": 75, "size": 10, "color": "255,0,0", "name": "r1.jpg" }, "frameRange": "(1,30)", "action": { "trace": "function trace(x){ return 40*Math.sin(x)+400;}", "step": 15, "print":true, "loop":["r1.jpg","r2.jpg","r3.jpg","r4.jpg"] } }, { "type": "picture", "attribute": { "x1": 400, "y1": 200, "x2": 160, "y2": 160, "size": 10, "color": "55,70,255", "name": "r1.jpg" }, "frameRange": "(31,50)", "action": { "trace": "function trace(x){ return 350;}", "step": 30, "print":true, "loop":["r1.jpg","r2.jpg","r3.jpg","r4.jpg"] } }, { "type": "picture", "attribute": { "x1": 600, "y1": 200, "x2": 230, "y2": 230, "size": 10, "color": "255,0,255", "name": "r1.jpg" }, "frameRange": "(51,100)", "action": { "trace": "function trace(x){ return 300;}", "step": 10, "print":true, "loop":["r1.jpg","r2.jpg","r3.jpg","r4.jpg"] } } ] } }

jeremyjia commented 12 months ago

{ "request": { "version": "0.0.11", "width": 2048, "height": 1536, "description":"AOI动图效果", "music": "1.mp3", "rate": "3", "frames": [ { "number": "1", "time": 15, "objects": [ { "text": "AOI演示", "x": 200, "y": 220, "size": 60, "color": "107,142,35" } ], "backgroundColor": "100,100,100" } ], "aois": [ { "range": "(1,3)", "area": { "left": 20, "top": 20, "width": 1686, "height": 1004 } }, { "range": "(4,5)", "area": { "left": 30, "top": 400, "width": 500, "height": 400 } }, { "range": "(6,7)", "area": { "left": 40, "top": 40, "width": 1686, "height": 986 } }, { "range": "(8,9)", "area": { "left": 60, "top": 60, "width": 1666, "height": 966 } }, { "range": "(10,12)", "area": { "left": 70, "top": 70, "width": 1646, "height": 946 } }, { "range": "(13,16)", "area": { "left": 90, "top": 90, "width": 1626, "height": 926 } } ], "superObjects": [ { "type": "picture", "attribute": { "x1": 0, "y1": 0, "x2": 1706, "y2": 1024, "size": 200, "color": "255,0,0", "name": "https://github-production-user-asset-6210df.s3.amazonaws.com/17973348/278815060-9db9d565-cb25-4914-a8dc-bd967878b4f3.jpeg" }, "frameRange": "(1,100)", "action": { "trace": "y=0xx+0*x+0", "step": 0 } }

    ]
}

}

jeremyjia commented 10 months ago

{"request": {"version":"v0.0.44", "width":1920, "height":1080, "music":"https://littleflute.github.io/english/NewConceptEnglish/Book2/2.mp3", "time":15, "rate":"1","frames":[],"superObjects":[] } }

jeremyjia commented 10 months ago

{ "request": { "version": "0.0.22", "width": 1024, "height": 768, "music": "1.mp3", "description":"Musicnote音符绘制" , "rate": "1", "frames": [ { "number": "1", "time": 5, "objects": [ { "text": "video2.json", "x": 200, "y": 40, "size": 50, "color": "0,255,255" }, { "graphic": "line", "attribute": { "left": 20, "top": 100, "right": 20, "bottom": 300, "size": 5.5, "color": "255,0,255" } }, { "graphic": "circle", "attribute": { "left": 100, "top": 500, "width": 200, "height": 200, "color": "120,156,20" } }, { "graphic": "rect", "attribute": { "left": 500, "top": 500, "width": 100, "height": 150, "color": "142,28,124" } }, { "graphic": "musicNote", "attribute": { "left": 100, "top": 111, "width": 100, "height": 150, "color": "255,169,0", "note":"5", "time":0.5, "tone":0 } }, { "graphic": "musicNote", "attribute": { "left": 130, "top": 111, "width": 100, "height": 150, "color": "255,169,0", "note":"5", "time":0.25, "tone":0 } }, { "graphic": "musicNote", "attribute": { "left": 150, "top": 111, "width": 100, "height": 150, "color": "255,169,0", "note":"5", "time":0.25, "tone":0 } }, { "graphic": "musicNote", "attribute": { "left": 180, "top": 111, "width": 100, "height": 150, "color": "255,169,0", "note":"6", "time":0.5, "tone":0 } }, { "graphic": "musicNote", "attribute": { "left": 210, "top": 111, "width": 100, "height": 150, "color": "255,169,0", "note":"1", "time":0.5, "tone":1 } }, { "graphic": "line", "attribute": { "left": 240, "top": 70, "right": 240, "bottom": 130, "size": 4.5, "color": "0,255,0" } }, { "graphic": "musicNote", "attribute": { "left": 260, "top": 111, "width": 100, "height": 150, "color": "255,169,0", "note":"3", "time":0.75, "tone":0 } }, { "graphic": "musicNote", "attribute": { "left": 310, "top": 111, "width": 100, "height": 150, "color": "255,169,0", "note":"2", "time":0.25, "tone":0 } }, { "graphic": "musicNote", "attribute": { "left": 340, "top": 111, "width": 100, "height": 150, "color": "255,169,0", "note":"1", "time":0.5, "tone":0 } }, { "graphic": "musicNote", "attribute": { "left": 370, "top": 111, "width": 100, "height": 150, "color": "255,169,0", "note":"6", "time":0.5, "tone":-1 } }, { "graphic": "line", "attribute": { "left": 400, "top": 70, "right": 400, "bottom": 130, "size": 4.5, "color": "0,255,0" } }, { "graphic": "musicNote", "attribute": { "left": 100, "top": 211, "width": 100, "height": 150, "color": "255,169,0", "note":"1", "time":0.5, "tone":0 } }, { "graphic": "musicNote", "attribute": { "left": 130, "top": 211, "width": 100, "height": 150, "color": "255,169,0", "note":"6", "time":1, "tone":-1 } }, { "graphic": "musicNote", "attribute": { "left": 160, "top": 211, "width": 100, "height": 150, "color": "255,169,0", "note":"3", "time":0.5, "tone":0 } }, { "graphic": "line", "attribute": { "left": 190, "top": 170, "right": 190, "bottom": 230, "size": 4.5, "color": "0,255,0" } }, { "graphic": "musicNote", "attribute": { "left": 200, "top": 211, "width": 100, "height": 150, "color": "255,169,0", "note":"2", "time":2, "tone":0 } }, { "graphic": "arc", "attribute": { "left": 260, "top": 111, "right": 370, "bottom": 111, "color": "200,200,0", "dy":30, "dh":30 } }

            ], 
            "backgroundColor": "100,100,100"
        }
    ]
}

}

jeremyjia commented 7 months ago

{ "request": { "version": "0.0.24", "description": "python_commentDI plugin示例程序", "width": 1024, "height": 768, "music": "1.mp3", "rate": "1", "frames": [ { "time": 2, "objects": [ { "text": "调用Python插件进行图像处理-演示程序", "x": 60, "y": 150, "size": 40, "color": "110,120,180" }, { "text": "原图", "x": 300, "y": 600, "size": 30, "color": "156,85,166" } ], "backgroundPicture": "${VAR_SRC_PIC}" }, { "time": 3, "objects": [ { "text": "调用Python插件图像处理演示程序", "x": 60, "y": 150, "size": 40, "color": "110,120,180" }, { "text": "反色图", "x": 300, "y": 600, "size": 30, "color": "156,85,166" } ], "backgroundPicture": "${VAR_INVERT_COLUR_PIC}" } ], "Macros": [ { "name": "VAR_SRC_PIC", "value": "https://jeremyjia.github.io/Games/python/i140/f1.jpg" }, { "name": "VAR_INVERT_COLUR_PIC", "value": { "type": "python", "attribute": { "script": "phthon_commentID:2016697773", "input": "https://jeremyjia.github.io/Games/python/i140/f1.jpg", "output": "cat1.jpg", "opts": "" } } } ] } }

jeremyjia commented 7 months ago

{ "request": { "version": "0.0.24", "description": "python_commentDI plugin 素描手绘图转化", "width": 1024, "height": 768, "music": "1.mp3", "rate": "1", "frames": [ { "time": 2, "objects": [ { "text": "调用Python插件进行图像处理-演示程序", "x": 60, "y": 150, "size": 40, "color": "110,120,180" }, { "text": "原图", "x": 300, "y": 600, "size": 30, "color": "156,85,166" } ], "backgroundPicture": "${VAR_SRC_PIC}" }, { "time": 3, "objects": [ { "text": "调用Python插件图像处理演示程序", "x": 60, "y": 150, "size": 40, "color": "110,120,180" }, { "text": "手绘素描图", "x": 300, "y": 600, "size": 30, "color": "156,85,166" } ], "backgroundPicture": "${VAR_INVERT_COLUR_PIC}" } ], "Macros": [ { "name": "VAR_SRC_PIC", "value": "https://github-production-user-asset-6210df.s3.amazonaws.com/17973348/278815060-9db9d565-cb25-4914-a8dc-bd967878b4f3.jpeg" }, { "name": "VAR_INVERT_COLUR_PIC", "value": { "type": "python", "attribute": { "script": "phthon_commentID:2016710424", "input": "https://github-production-user-asset-6210df.s3.amazonaws.com/17973348/278815060-9db9d565-cb25-4914-a8dc-bd967878b4f3.jpeg", "output": "cat1.jpg", "opts": "" } } } ] } }

jeremyjia commented 6 months ago

{ "request": { "version": "0.0.24", "description": "python_commentDI plugin词云插件测试用例", "width": 1024, "height": 768, "music": "1.mp3", "rate": "1", "frames": [ { "time": 1, "objects": [ { "text": "调用python插件进行图像处理", "x": 60, "y": 200, "size": 50, "color": "50,220,80" }, { "text": "词云图插件测试", "x": 300, "y": 600, "size": 40, "color": "156,85,166" } ], "backgroundColor": "72,61,139"

        },
        {
            "time": 4,
            "objects": [
            ],
            "backgroundPicture": "${VAR_INVERT_COLUR_PIC}"
        }
    ],
    "Macros": [
        {
        "name": "VAR_INVERT_COLUR_PIC",
            "value": {
                "type": "python",
                "attribute": {
                    "script": "phthon_commentID:2052020773",
                    "input": "string-jiapeng,wangxu,littleflute,jeremy,kevin,mike",
                    "output": "wc2.jpg",
                    "opts": "-w 1,3,5,2,4,6"
                }
            }
        }
    ]
}

}

jeremyjia commented 4 months ago

{ "request": { "version": "0.0.25", "description": "overlay video demo(画中画)", "width": 1024, "height": 768, "music": "https://littleflute.github.io/english/NewConceptEnglish/Book2/2.mp3", "rate": "5", "frames": [ { "time": 100, "objects": [ { "text": "调用Python插件实现画中画的特效", "x": 100, "y": 150, "size": 40, "color": "110,100,200" }, { "text": "画中画实现", "x": 300, "y": 600, "size": 60, "color": "146,85,156" } ], "backgroundColor": "180,180,180" } ], "overlay":{ "script": "overlayVideo.py", "video": "https://jeremyjia.github.io/Games/img/mmexport1624376890764.mp4", "left": "-1", "top": "-1", "start": "1", "end": "15" } } }

jeremyjia commented 4 months ago

{ "request": { "version": "0.0.32", "description":"光阴的故事歌词满天飞", "width": 1024, "height": 768, "music": "gydgs.mp3", "rate": "1", "frames": [ { "number": "1", "time": "${VAR_FRAMES}", "objects": [ { "text": "${VAR_TITLE}", "x": 100, "y": 300, "size": 60, "color": "70,130,120", "layer": 2 } ], "backgroundColor": "200,200,222" } ], "superObjects": [ { "type": "subtitle", "frameRange": "(1,${VAR_FRAMES})", "attribute": { "script": "${VAR_LRC_PATH}", "random":"true", "x1": 20, "y1": 670, "size": 30, "color": "20,82,190" }, "layer": 1 } ], "overlay":{ "script": "overlayVideo.py", "video": "https://jeremyjia.github.io/Games/img/mmexport1624376890764.mp4", "left": "-1", "top": "-1", "start": "1", "end": "60" }, "Macros": [ { "name": "VAR_TITLE", "value": "LRC歌词及视频叠加演示" }, { "name": "VAR_LRC_PATH", "value": "gydgs.lrc" } ] } }

jeremyjia commented 4 months ago

{ "request": { "version": "0.0.24", "description":"插件测试_引用JS源码", "width": 1024, "height": 768, "music": "1.mp3", "rate": "10", "frames": [ { "number": "1", "time": "100", "objects": [ { "text": "${VAR_TITLE}", "x": 200, "y": 100, "size": 50, "color": "95,35,135", "layer": 2 } ], "backgroundColor": "180,180,180" } ], "superObjects": [ { "type": "javascript", "frameRange": "(0,30)", "unit":1, "attribute": { "script": "var canvas;\r\nvar ctx;\r\nvar width = 300;\r\nvar height = 200;\r\n\r\nfunction animateFrame(time) {\r\n canvas = document.getElementById('myCanvas');\r\n ctx = canvas.getContext('2d');\r\n ctx.clearRect(0, 0, 2048, 1536);\r\n ctx.fillStyle = \"red\";\r\n ctx.font = \"40px Arial\";\r\n var x1 = (time+200)%width;\r\n ctx.fillText(\"动画演示!\", x1, height/2);\r\n ctx.fillStyle = \"yellow\"; \r\n var y1 = (time+200)%height;\r\n ctx.fillRect(30, y1, 60, 60);\r\n var myDate = new Date();\r\n var strTime = myDate.toLocaleString();\r\n ctx.fillStyle = \"Blue\";\r\n ctx.fillText(strTime, 10, height/3);\r\n}", "function": "animateFrame", "start": 1 }, "layer": 1 } ], "Macros": [ { "name": "VAR_TITLE", "value": "Comment插件引用测试" }

    ]
}

}

jeremyjia commented 4 months ago

{ "request": { "version": "0.0.27", "description":"sprite_source_code", "width": 1024, "height": 768, "music": "1.mp3", "rate": "1", "frames": [ { "number": "1", "time": "100", "objects": [ { "text": "${VAR_TITLE}", "x": 200, "y": 600, "size": 50, "color": "95,35,135", "layer": 2 }, { "graphic": "sprite", "attribute": { "script": "var canvas;\r\nvar ctx;\r\nvar width = 300;\r\nvar height = 200; var time=0;\r\n\r\nfunction animateFrame() {\r\n time++; canvas = document.getElementById('myCanvas');\r\n ctx = canvas.getContext('2d');\r\n ctx.clearRect(0, 0, 2048, 1536);\r\n ctx.fillStyle = \"red\";\r\n ctx.font = \"40px Arial\";\r\n var x1 = (time+200)%width;\r\n ctx.fillText(\"动画演示!\", x1, height/2);\r\n ctx.fillStyle = \"yellow\"; \r\n var y1 = (time+200)%height;\r\n ctx.fillRect(30, y1, 60, 60);\r\n var myDate = new Date();\r\n var strTime = myDate.toLocaleString();\r\n ctx.fillStyle = \"Blue\";\r\n ctx.fillText(strTime, 10, height/3);\r\n}", "function": "animateFrame" } } ], "backgroundColor": "180,180,180" } ], "Macros": [ { "name": "VAR_TITLE", "value": "精灵对象测试" }
] } }

jeremyjia commented 2 months ago

{ "request": { "version": "0.0.28", "description":"二维码插件测试", "width": 1024, "height": 768, "music": "gydgs.mp3", "rate": "1", "frames": [ { "number": "1", "time": "5", "objects": [ { "text": "${VAR_TITLE}", "x": 600, "y": 600, "size": 40, "color": "238,173,14" }, { "text": "排名 国家 金牌 银牌 铜牌 总数", "x": 40, "y": 30, "size": 30, "color": "218,112,214" }, { "text": "${MEDAL_LIST}", "x": 40, "y": 80, "size": 25, "color": "0,200,200" } ], "backgroundColor": "200,200,200" }, { "number": "2", "time": "5", "objects": [ { "text": "扫描以下二维码进行测试", "x": 100, "y": 100, "size": 30, "color": "138,173,14" }, { "picture": "${RQ_CODE}", "x": 200, "y": 200, "width":400, "heigth":400 } ], "backgroundColor": "200,200,200" } ], "Macros": [ { "name": "VAR_TITLE", "value": "二维码测试" }, { "name": "MEDAL_LIST", "value": { "type": "python", "attribute": { "script": "phthon_commentID:2254462605", "input": "string-", "output": "output_medal.txt", "opts": "" } } }, { "name": "RQ_CODE", "value": { "type": "python", "attribute": { "script": "phthon_commentID:2266357654", "input": "output_medal.txt", "output": "outQRCode.png", "opts": "" } } } ] } }

jeremyjia commented 1 month ago

{"request":{"version":"gc4BLS: bv0.15","description":"No frames","width":800,"height":600, "time":15,"music":"https://littleflute.github.io/english/NewConceptEnglish/Book2/1.mp3","rate":"10","frames":[],"superObjects":[{"type":"javascript","frameRange":"(1,500)","attribute":{"script":"http://localhost:8080/firework.js","function":"animateFrame","start":1},"layer":1}]}}

jeremyjia commented 1 month ago

{ "request": { "version": "0.0.28", "description":"插件测试_打鼓节拍器", "width": 1024, "height": 768, "music": "https://littleflute.github.io/gt1/mp3/j72_4_4.mp3", "rate": "2", "frames": [ { "number": "1", "time": "40", "objects": [ { "text": "${VAR_TITLE}", "x": 200, "y": 500, "size": 50, "color": "95,35,135", "layer": 2 } ], "backgroundColor": "180,180,180" } ], "superObjects": [ { "type": "javascript", "frameRange": "(0,2000)", "unit":1, "attribute": { "script": "${VAR_JS_PLUGIN}", "function": "animateFrame", "start": 1 }, "layer": 1 } ], "Macros": [ { "name": "VAR_TITLE", "value": "Comment插件引用测试" }, { "name": "VAR_JS_PLUGIN", "value": "commentID:2335121519" }, ] } }

jeremyjia commented 1 month ago

{ "request": { "version": "gc4BLS: bv0.15", "description":"漂亮的脚印轨迹", "width": 800, "height": 600, "music": "https://littleflute.github.io/english/NewConceptEnglish/Book2/3.mp3", "rate": "3", "frames": [ { "time": 36, "backgroundColor": "gray", "objects": [] } ], "superObjects": [ { "type": "circle", "attribute": { "x1": 0, "y1": 200, "x2": 50, "y2": 50, "size": 0, "color": "0,255,0", "name": "C2" }, "frameRange": "(1,90)", "action": { "trace": "function trace(x) { return 60*Math.sin(x)+300; }", "step": 25, "footprint":{ "type":"picture", "attribute":{ "src":"foot.png", "width":50, "height":50, "dy":30, "step":1 } } } } ] } }

jeremyjia commented 1 month ago

{ "request": { "version": "0.0.27", "width": 1024, "height": 768, "description":"python_PlugIn_ReadTXT", "music": "gydgs.mp3", "rate": "1", "frames": [ { "number": "1", "time": "20", "objects": [ { "text": "${VAR_TITLE}", "x": 100, "y": 700, "size": 40, "color": "255,25,14" }, { "text": "文件内容如下", "x": 40, "y": 30, "size": 30, "color": "218,112,214" } ], "backgroundColor": "200,200,222" } ], "superObjects": [ { "type": "text", "attribute": { "x1": 20, "y1": 150, "x2": -1, "y2": -1, "size": 25, "color": "10,90,10", "name": "${MEDAL_LIST}" }, "frameRange": "(1,512)", "action": { "trace": "x=20", "step": -5 } } ], "Macros": [ { "name": "VAR_TITLE", "value": "引用Python输出的文本文件" }, { "name": "MEDAL_LIST", "value": { "type": "python", "attribute": { "script": "phthon_commentID:2365201911", "input": "string-", "output": "mv1.txt", "opts": "" } } } ] } }

jeremyjia commented 1 week ago

{ "request": { "version": "0.0.24", "description": "孙颖莎", "width": 1024, "height": 768, "music": "gydgs.mp3", "rate": "1", "frames": [ { "time": 2, "objects": [ { "text": "孙颖莎", "x": 60, "y": 150, "size": 40, "color": "110,120,180" }, { "text": "原始图像", "x": 300, "y": 600, "size": 30, "color": "156,85,166" } ], "backgroundPicture": "${VAR_SRC_PIC}" }, { "time": 30, "objects": [ { "text": "孙颖莎", "x": 60, "y": 150, "size": 40, "color": "110,120,180" }, { "text": "反色图", "x": 300, "y": 600, "size": 30, "color": "156,85,166" }, { "graphic": "circle", "attribute": { "left": 540, "top": 280, "width": 50, "height": 50, "color": "220,1,1" } } ], "backgroundPicture": "${VAR_INVERT_COLUR_PIC}" } ], "Macros": [ { "name": "VAR_SRC_PIC", "value": "m.jpg" }, { "name": "VAR_INVERT_COLUR_PIC", "value": { "type": "python", "attribute": { "script": "phthon_commentID:2016697773", "input": "m.jpg", "output": "m.jpg", "opts": "" } } } ] } }