From c7d3032ffc3ee1ed942f8b1672da02a0c0d591dd Mon Sep 17 00:00:00 2001 From: admin <3025507670@qq.com> Date: Tue, 11 Aug 2026 17:20:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E5=96=84=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E5=AD=97=E5=B9=95=E9=A2=84=E8=AE=BE=E6=8F=92=E4=BB=B6=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin-entry.json | 11 +++ plugin.json | 8 +- presets/subtitle-presets.json | 164 ++++++++++++++++++++++++++++++++++ 3 files changed, 179 insertions(+), 4 deletions(-) create mode 100644 plugin-entry.json create mode 100644 presets/subtitle-presets.json diff --git a/plugin-entry.json b/plugin-entry.json new file mode 100644 index 0000000..0794091 --- /dev/null +++ b/plugin-entry.json @@ -0,0 +1,11 @@ +{ + "schemaVersion": 1, + "kind": "subtitle-preset-pack", + "resources": [ + { + "id": "subtitle-presets", + "path": "presets/subtitle-presets.json", + "mediaType": "application/json" + } + ] +} diff --git a/plugin.json b/plugin.json index 64da765..3857308 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,7 @@ "id": "video-subtitle", "name": "视频字幕特效", "type": "skill", - "version": "1.0.0", + "version": "1.0.1", "description": "AI 自动生成视频字幕,支持多种字幕样式特效", "author": "aitoearn", "repository": "https://git.frp.it1024.cc/aitoearn/video-subtitle", @@ -10,12 +10,12 @@ "aitoearn": ">=2.0.0" }, "entry": { - "backend": "src/index.ts", - "frontend": "src/ui/index.tsx" + "main": "plugin-entry.json" }, + "permissions": [], "keywords": [ "video", "subtitle", "effects" ] -} \ No newline at end of file +} diff --git a/presets/subtitle-presets.json b/presets/subtitle-presets.json new file mode 100644 index 0000000..00b940f --- /dev/null +++ b/presets/subtitle-presets.json @@ -0,0 +1,164 @@ +{ + "schemaVersion": 1, + "presets": [ + { + "id": "classic-white", + "name": "经典白字", + "description": "白字黑边,适合大多数视频内容", + "category": "classic", + "defaultPosition": "bottom", + "defaultAnimation": "fade", + "style": { + "fontFamily": "Microsoft YaHei", + "fontSize": 48, + "color": "#FFFFFF", + "outlineColor": "#000000", + "outlineWidth": 2, + "shadowColor": "#000000", + "shadowWidth": 1, + "bold": true, + "italic": false + }, + "effect": { "type": "fade", "fadeIn": 200, "fadeOut": 200 } + }, + { + "id": "youtube-modern", + "name": "YouTube 现代风", + "description": "粗体白字,黄色高亮关键词", + "category": "modern", + "defaultPosition": "bottom", + "defaultAnimation": "pop", + "style": { + "fontFamily": "Arial", + "fontSize": 52, + "color": "#FFFFFF", + "secondaryColor": "#FFD700", + "outlineColor": "#000000", + "outlineWidth": 3, + "shadowColor": "#000000", + "shadowWidth": 2, + "bold": true, + "italic": false + }, + "effect": { "type": "pop", "scale": 1.1 } + }, + { + "id": "tiktok-vertical", + "name": "TikTok 竖屏风", + "description": "大号粗体,适合竖屏短视频", + "category": "short-video", + "defaultPosition": "center", + "defaultAnimation": "bounce", + "style": { + "fontFamily": "PingFang SC", + "fontSize": 64, + "color": "#FFFFFF", + "outlineColor": "#000000", + "outlineWidth": 4, + "shadowColor": "#FF0050", + "shadowWidth": 3, + "bold": true, + "italic": false + }, + "effect": { "type": "bounce", "intensity": 0.3 } + }, + { + "id": "douyin-pop", + "name": "抖音热门", + "description": "彩色描边,动感明显", + "category": "short-video", + "defaultPosition": "center", + "defaultAnimation": "shake", + "style": { + "fontFamily": "Source Han Sans CN", + "fontSize": 60, + "color": "#FFFFFF", + "outlineColor": "#FF0050", + "outlineWidth": 4, + "shadowColor": "#00F2EA", + "shadowWidth": 2, + "bold": true, + "italic": false + }, + "effect": { "type": "shake", "intensity": 2 } + }, + { + "id": "cinema-yellow", + "name": "影院黄字", + "description": "经典电影字幕风格", + "category": "cinema", + "defaultPosition": "bottom", + "defaultAnimation": "none", + "style": { + "fontFamily": "SimSun", + "fontSize": 44, + "color": "#FFD700", + "outlineColor": "#000000", + "outlineWidth": 1, + "bold": false, + "italic": false + }, + "effect": { "type": "none" } + }, + { + "id": "korean-cute", + "name": "韩系可爱", + "description": "粉色描边,适合轻松生活内容", + "category": "cute", + "defaultPosition": "bottom", + "defaultAnimation": "float", + "style": { + "fontFamily": "Hiragino Sans GB", + "fontSize": 48, + "color": "#FF69B4", + "outlineColor": "#FFFFFF", + "outlineWidth": 3, + "shadowColor": "#FFB6C1", + "shadowWidth": 2, + "bold": true, + "italic": true + }, + "effect": { "type": "float", "distance": 10 } + }, + { + "id": "tech-neon", + "name": "科技霓虹", + "description": "荧光绿字,适合科技主题", + "category": "tech", + "defaultPosition": "bottom", + "defaultAnimation": "glow", + "style": { + "fontFamily": "Consolas", + "fontSize": 50, + "color": "#00FF7F", + "outlineColor": "#003300", + "outlineWidth": 2, + "shadowColor": "#00FF7F", + "shadowWidth": 8, + "bold": true, + "italic": false + }, + "effect": { "type": "glow", "intensity": 1.5 } + }, + { + "id": "minimal-black", + "name": "极简黑字", + "description": "无描边,简洁字幕", + "category": "minimal", + "defaultPosition": "bottom", + "defaultAnimation": "fade", + "style": { + "fontFamily": "Microsoft YaHei", + "fontSize": 46, + "color": "#FFFFFF", + "outlineColor": "rgba(0,0,0,0.5)", + "outlineWidth": 0, + "shadowColor": "#000000", + "shadowWidth": 4, + "bold": false, + "italic": false + }, + "effect": { "type": "fade", "fadeIn": 300, "fadeOut": 300 } + } + ] +}