Open waynexw opened 3 years ago
{ "description":"test sample", "request": { "version": "0.0.25", "description": "Tiktok Music", "width": 800, "height": 600, "audio": "https://littleflute.github.io/english/NewConceptEnglish/Book2/3.mp3", "time": "16", "rate": "1", "backgroundColor": "10,200,100", "frames": [ { "number": "1", "time": "10", "objects": [ { "text": "flash the text", "x": 100, "y": 500, "size": 50, "color": "1,142,35" } ], "backgroundColor": "100,200,222" } ], "superObjects": [ { "type": "text", "attribute": { "x1": 20, "y1": 300, "x2": -1, "y2": -1, "size": 35, "color": "255,10,10", "name": "tiktok music" }, "frameRange": "(1,512)", "action": { "trace": "x=20", "step": -4 } } ]
} }
{ "request": { "version": "0.0.15", "description": "Water Ripples", "width": 1024, "height": 768, "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" } } } ] } }
{ "request": { "version": "0.0.w03", "description": "Bar Charts", "width": 800, "height": 600, "music": "1.mp3", "rate": "1", "frames": [ { "time": 6, "objects": [ { "text": "Examplify the Chart Virant via Python", "x": 20, "y": 300, "size": 33, "color": "10,0,0" }, { "text": "Original Bar Chart", "x": 260, "y": 590, "size": 32, "color": "156,85,30" } ], "backgroundPicture": "${VAR_CAT_SRC}" }, { "time": 8, "objects": [ { "text": "Bar Chart with Optional Title", "x": 150, "y": 590, "size": 32, "color": "10,200,10" } ], "backgroundPicture": "${VAR_CAT1}" }, { "time": 6, "objects": [ { "text": "Bar Chart with Water Ripple", "x": 190, "y": 590, "size": 32, "color": "255,240,255" } ], "backgroundPicture": "${VAR_CAT2}" } ], "Macros": [ { "name": "VAR_CAT_SRC", "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": "chart_ori.jpg", "opts": "" } } }, { "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": "chart1.jpg", "opts": "-t Sales_Data_Chart" } } }, { "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/i542/chart1.jpg", "output": "chart_e.jpg", "opts": "-c 1 -w 3" } } } ] } }
{ "request": { "version": "0.0.w05", "description": "Stat Norm", "width": 800, "height": 600, "music": "1.mp3", "rate": "1", "frames": [ { "time": 6, "objects": [ { "text": "Examplify the stat NORM via Python", "x": 20, "y": 150, "size": 33, "color": "10,0,0" }, { "text": "Norm_A with mu=0, sigma=2", "x": 110, "y": 400, "size": 32, "color": "156,85,30" } ], "backgroundPicture": "${VAR_CAT_SRC}" }, { "time": 8, "objects": [ { "text": "Norm_B with Optional X_axis Title", "x": 90, "y": 260, "size": 32, "color": "0,200,198" } ], "backgroundPicture": "${VAR_CAT1}" }, { "time": 6, "objects": [ { "text": "Norm_C with range of 1 to 6 and different title", "x": 50, "y": 360, "size": 28, "color": "0,20,198" } ], "backgroundPicture": "${VAR_CAT2}" } ], "Macros": [ { "name": "VAR_CAT_SRC", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i140/stats_norm.py", "input": "https://jeremyjia.github.io/Games/python/i140/f1.jpg", "output": "norm_a.jpg", "opts": "-m 0 -g 2 -s -6 -e 3 -xt TOY -yt DENSE" } } }, { "name": "VAR_CAT1", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i140/stats_norm.py", "input": "https://jeremyjia.github.io/Games/python/i140/f1.jpg", "output": "norm_b.jpg", "opts": "-m 0 -g 2 -s -1 -e 1 -xt SALES" } } }, { "name": "VAR_CAT2", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i140/stats_norm.py", "input": "https://jeremyjia.github.io/Games/python/i140/f1.jpg", "output": "norm_c.jpg", "opts": "-m 1 -s 1 -e 6 -yt INC" } } } ] } }
{ "request": { "version": "0.0.24", "description":"JavaScript plugin test", "width": 1024, "height": 768, "music": "tts:锄禾日当午,汗滴禾下土,谁知盘中餐,粒粒皆辛苦", "rate": "3", "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": "(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:1645525032" }, ] } }
{ "request": { "version": "0.0.24", "description":"Car", "width": 1024, "height": 768, "music": "tts:锄禾日当午,汗滴禾下土,谁知盘中餐,粒粒皆辛苦", "rate": "3", "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": "(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:1615509290" }, ] } }
{ "request": { "version": "0.0.24", "description":"Solar System", "width": 1024, "height": 768, "music": "tts:太阳系部分构成,太阳,地球和月亮", "rate": "3", "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": "(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:1712468522" }, ] } }
{"request": {version:"1.0",description:"jia"}}
{ "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 } } } } ] } }
{ "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": "" } } } ] } }
{ "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": "引用Python输出的文本文件", "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": "新概念英语2册第1课$N$[00:00.00]Lesson 1 A Privateonversation$N$[00:04.35]First listen and then answer theuestion.$N$[00:09.26]Why did the writer complain to the people behind him?" }, "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": "" } } } ] } }
[x] 测试用例的选取, based on lastest pbz-demo-1.0.21
@waynexw 我重新打开这个issue,完成以下测试