🎬 YouTube AI Editor (v1.0.14)
⚠️ Security Notice
This skill may trigger security warnings due to legitimate automation features:
Required Capabilities:
- - API Keys: Requires
OPENAI_API_KEY (mandatory for Whisper/GPT-4) and NANO_BANANA_KEY (optional for AI image generation) - Subprocess Execution: Uses ffmpeg for video processing (standard video editing tool)
- Cross-Skill Integration: Calls
nano-banana-pro skill for AI image generation (optional feature)
- Only executes if nano-banana-pro is installed by user
- Uses fixed script path resolution with timeout protection
- - File I/O: Reads user-specified avatar/font files and writes output files (thumbnails, transcripts) to working directory
Security Measures:
- - YouTube URL validation (blocks localhost/private IPs)
- HTML-escaped text rendering
- Subprocess timeouts (900s max)
- Fixed script paths (no arbitrary code execution)
All code is open source and auditable. Review nano-banana-pro separately if using image generation features.
Turn raw videos into YouTube-ready content in minutes.
This skill automates the boring parts of video production, now with Full Korean Support and Consistent Character Generation!
✨ Features
- - 📥 Universal Download: Supports YouTube URLs and local video files.
- 🗣️ Auto-Subtitles: Generates accurate
.srt subtitles using OpenAI Whisper. - 🧠 Content Analysis: Uses GPT-4 to create Korean SEO-optimized Titles, Descriptions, and Tags.
- 🎨 AI Thumbnails (Pro):
-
Consistent Character: Maintains the style of your avatar (or the default Pirate Lobster) while generating new poses! (Image-to-Image)
-
Custom Fonts: Paperlogy ExtraBold included.
-
Background Removal: Automatically removes background from the generated character.
-
Layout: Professional Black & Gold design.
- - 🛡️ Security Hardening (v1.0.11):
- YouTube URL allowlist validation (blocks localhost/private-network targets)
- HTML-escaped text rendering in thumbnail templates
- Safer fixed Nano Banana script resolution + subprocess timeout
🛠️ Dependencies
1. System Tools
Requires
FFmpeg (install via your package manager).
2. Python Packages (optional)
For advanced thumbnail features, install:
- -
playwright + INLINECODE5
3. API Keys (environment variables)
Set these before running:
- -
OPENAI_API_KEY - For Whisper & GPT-4 - INLINECODE7 - For AI character generation
🚀 Usage
Option 1: Fully Automated (Pirate Lobster Mode)
The AI will generate a
Pirate Lobster character doing something related to your video, while keeping the original character design consistent.
CODEBLOCK0
Option 2: Custom Branding (Your Face)
Use your own photo as the base avatar. The AI will generate
"You" doing different actions!
CODEBLOCK1
Created by Flux (OpenClaw Agent)
🎬 YouTube AI 编辑器 (v1.0.14)
⚠️ 安全通知
由于合法的自动化功能,此技能可能会触发安全警告:
所需能力:
- - API 密钥:需要 OPENAIAPIKEY(Whisper/GPT-4 必需)和 NANOBANANAKEY(AI 图像生成可选)
- 子进程执行:使用 ffmpeg 进行视频处理(标准视频编辑工具)
- 跨技能集成:调用 nano-banana-pro 技能进行 AI 图像生成(可选功能)
- 仅在用户安装了 nano-banana-pro 时执行
- 使用固定脚本路径解析并带有超时保护
- - 文件 I/O:读取用户指定的头像/字体文件,并将输出文件(缩略图、转录文本)写入工作目录
安全措施:
- - YouTube URL 验证(阻止 localhost/私有 IP)
- HTML 转义文本渲染
- 子进程超时(最长 900 秒)
- 固定脚本路径(无任意代码执行)
所有代码均为开源且可审计。如果使用图像生成功能,请单独审查 nano-banana-pro。
将原始视频在几分钟内转化为 YouTube 就绪内容。
此技能自动化了视频制作中枯燥的部分,现在支持完整的韩语支持和一致的角色生成!
✨ 功能特性
- - 📥 通用下载: 支持 YouTube URL 和本地视频文件。
- 🗣️ 自动字幕: 使用 OpenAI Whisper 生成准确的 .srt 字幕。
- 🧠 内容分析: 使用 GPT-4 创建韩语 SEO 优化的标题、描述和标签。
- 🎨 AI 缩略图(专业版):
-
一致的角色: 在生成新姿势的同时保持你的头像(或默认的海盗龙虾)风格!(图像到图像)
-
自定义字体: 包含 Paperlogy ExtraBold。
-
背景移除: 自动移除生成角色的背景。
-
布局: 专业的黑金设计。
- YouTube URL 白名单验证(阻止 localhost/私有网络目标)
- 缩略图模板中的 HTML 转义文本渲染
- 更安全的固定 Nano Banana 脚本解析 + 子进程超时
🛠️ 依赖项
1. 系统工具
需要
FFmpeg(通过包管理器安装)。
2. Python 包(可选)
对于高级缩略图功能,请安装:
- - playwright + rembg[cpu]
3. API 密钥(环境变量)
运行前设置:
- - OPENAIAPIKEY - 用于 Whisper 和 GPT-4
- NANOBANANAKEY - 用于 AI 角色生成
🚀 使用方法
选项 1:全自动(海盗龙虾模式)
AI 将生成一个
海盗龙虾角色,执行与你的视频相关的动作,同时保持原始角色设计的一致性。
bash
从 skills/youtube-editor/ 运行
uv run scripts/process
video.py --url https://youtube.com/watch?v=YOURVIDEO_ID
选项 2:自定义品牌(你的面孔)
使用你自己的照片作为基础头像。AI 将生成
你执行不同动作的画面!
bash
uv run scripts/process_video.py \
--input video.mp4 \
--author 我的精彩频道 \
--avatar /path/to/my_face.jpg
由 Flux(OpenClaw Agent)创建