mcpField
Y
youtube-video-generation

youtube-video-generation

github.com/eachlabs创意与媒体44340 次安装今天更新
代码仓库

关于 youtube-video-generation

youtube-video-generation 是使用 each::sense 制作 YouTube 内容的技能,涵盖长视频、Shorts 和缩略图,适用于制作无露脸视频、解说、教程、评测及其他频道内容的创作者。

主要功能

  1. 01生成无露脸视频
  2. 02制作竖屏 YouTube Shorts
  3. 03制作教育解说和教程
  4. 04制作评测与合集视频
  5. 05生成频道片头和缩略图

适用场景

  1. 01将脚本制作成 YouTube Short
  2. 02制作教育解说视频
  3. 03为频道制作产品评测
  4. 04设计频道片头和缩略图内容

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/eachlabs/skills --skill youtube-video-generation

安装后在 Claude Code 中输入/youtube-video-generation确认已加载。

附带文件references/SSE-EVENTS.md

详细介绍

YouTube 视频生成

使用 each::sense 生成引人入胜的 YouTube 内容。此技能可创建针对 YouTube 各种格式优化的视频,包括长视频、Shorts 和缩略图。

功能

  • 无露脸视频:无需出镜的 AI 生成内容
  • YouTube Shorts:最长 3 分钟的竖屏 9:16 内容
  • 解说视频:配有视觉辅助内容的教育内容
  • 产品评测:使用 AI 视觉效果展示并评测产品
  • 教程:分步讲解操作方法
  • 新闻摘要:快速回顾新闻的视频
  • 合集:精心策划的内容合集
  • 游戏精彩集锦:游戏片段合集
  • ASMR/放松内容:氛围舒缓、令人放松的内容
  • 频道品牌素材:片头、片尾和缩略图

快速开始

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 30-second faceless YouTube video about the benefits of meditation, with calming visuals and text overlays"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

YouTube 视频格式和尺寸

格式宽高比分辨率最长时长用途
长视频16:91920x1080不限标准 YouTube 视频
YouTube Shorts9:161080x19203 分钟短视频竖屏内容
缩略图16:91280x720不适用视频缩略图

用例示例

1. 无露脸 YouTube 视频生成
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 60-second faceless YouTube video about 5 interesting facts about space. Use stunning space imagery, smooth transitions, and animated text overlays for each fact. Add a cinematic orchestral background music feel. 16:9 aspect ratio at 1920x1080."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
2. 根据脚本生成 YouTube Shorts
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a YouTube Short (9:16, 1080x1920) from this script: \"Did you know that honey never spoils? Archaeologists found 3000-year-old honey in Egyptian tombs that was still edible!\" Use eye-catching visuals of honey, ancient Egypt, and include bold captions. Make it attention-grabbing for the first 2 seconds."}],

    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
3. 解说/教育视频
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 2-minute educational explainer video about how photosynthesis works. Use animated diagrams, infographics, and step-by-step visualizations. Include a friendly voiceover style with clear explanations. 16:9 at 1920x1080. Target audience: middle school students."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
4. 产品评测视频
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 90-second product review video for wireless noise-canceling headphones. Show the product from multiple angles, highlight key features (battery life, noise cancellation, comfort), include pros and cons sections with graphics, and end with a rating. 16:9 at 1920x1080, modern tech review style."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
5. 教程/操作指南视频
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a step-by-step tutorial video on how to make the perfect pour-over coffee. Include numbered steps, close-up shots of equipment, water temperature graphics, timing indicators, and brewing tips. 16:9 at 1920x1080. Duration: 3 minutes. Clean, minimalist aesthetic."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
6. 新闻摘要视频
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 60-second news summary video template for a tech news channel. Include animated lower thirds, headline graphics, transition effects, and space for B-roll footage. Professional news broadcast style with modern graphics. 16:9 at 1920x1080. Blue and white color scheme."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
7. 合集视频
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 2-minute satisfying compilation video. Include various satisfying visuals: slime being pressed, perfect cake cutting, kinetic sand, soap cutting, and paint mixing. Smooth transitions between clips, no text overlays, relaxing ambient music vibe. 16:9 at 1920x1080."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
8. 游戏精彩集锦视频
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 45-second gaming highlight intro/template video. Energetic style with glitch effects, neon colors, dynamic transitions, and space for gameplay clips. Include animated subscribe button, social media handles placeholder, and channel logo placement. 16:9 at 1920x1080. EDM/trap music energy."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
9. ASMR/放松视频
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 3-minute relaxation video for sleep and meditation. Slow-moving visuals of a peaceful forest with gentle rain, soft fog drifting through trees, and occasional wildlife. Very slow, calming transitions. No text, no sudden movements. 16:9 at 1920x1080. Ambient nature sounds."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
10. 频道片头/片尾生成
# Create channel intro
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 5-second YouTube channel intro for a cooking channel called \"Kitchen Creations\". Animated logo reveal with steam/smoke effects, wooden textures, warm colors. Include a brief jingle spot. Professional but inviting. 16:9 at 1920x1080."}],

    "model": "eachsense/beta",
    "stream": true,
    "session_id": "cooking-channel-branding"
  }'

# Create matching outro (same session for consistency)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Now create a matching 10-second outro for the same channel. Include animated end screen with subscribe button, two video placeholders for suggested videos, and social media icons. Match the style and colors of the intro we just created."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "cooking-channel-branding"
  }'

最佳实践

长视频(16:9)
  • 尽早吸引观众:前 5-10 秒对留住观众至关重要
  • 节奏稳定:每隔 5-10 秒切换场景,保持视觉吸引力
  • 结构清晰:使用视觉章节和分段标记
  • 结束画面:针对 YouTube 结束画面叠加层进行设计(最后 20 秒)
  • 缩略图:制作醒目的 1280x720 缩略图
YouTube Shorts(9:16)
  • 针对竖屏优化:按照移动设备全屏观看的方式进行设计
  • 开头即吸引注意:在最初 1-2 秒抓住观众注意力
  • 便于循环播放:尽可能制作无缝循环
  • 醒目文字:使用大号、易读的字幕,方便静音观看
  • 保持简洁明快:虽然最长可达 3 分钟,但 30-60 秒通常效果最佳
缩略图
  • 高对比度:使用与 YouTube 白色/深色界面形成鲜明对比的颜色
  • 文字清晰易读:最多使用 3-5 个词
  • 面部表情有效:富有表现力的面孔能提高点击率
  • 保持品牌一致性:让所有缩略图保持统一的频道风格

YouTube 视频提示词技巧

创建 YouTube 内容时,请在提示词中包含以下细节:

  1. 格式:指定长视频(16:9)或 Shorts(9:16)
  2. 分辨率:视频使用 1920x1080,缩略图使用 1280x720
  3. 时长:明确指定视频时长
  4. 风格:描述视觉美学(电影感、极简、活力十足等)
  5. 内容类型:无露脸、教程、评测、合集等
  6. 目标受众:视频面向哪些人?
  7. 文字/字幕:说明是否需要添加文字叠加层
  8. 音乐/氛围:描述音频氛围
提示词结构示例
"Create a [duration] [format] YouTube [video type] about [topic].
Include [visual elements] with [style/aesthetic].
Target audience: [demographic].
[Additional requirements like text overlays, music style, transitions, etc.]
Resolution: [1920x1080 or 1080x1920]"

模式选择

生成前询问用户:

“您想要快速且便宜的方案,还是高质量方案?”

模式最适合速度质量
max最终视频、已发布内容、高制作水准较慢最高
eco快速草稿、概念测试、故事板预览较快良好

多轮创意迭代

使用 session_id 迭代视频内容:

# Initial video concept
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 30-second YouTube Short about morning productivity tips"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "productivity-short-001"
  }'

# Iterate based on feedback
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Make the transitions faster and add more energetic text animations. Also add a stronger hook in the first 2 seconds."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "productivity-short-001"
  }'

# Create thumbnail for the video
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a thumbnail for this video at 1280x720. Make it eye-catching with bold text saying \"5 AM ROUTINE\" and show a sunrise with productivity imagery."}],

    "model": "eachsense/beta",
    "stream": true,
    "session_id": "productivity-short-001"
  }'

系列内容生成

为视频系列生成风格一致的内容:

# Episode 1
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create episode 1 of a \"World Mysteries\" series - focus on the Bermuda Triangle. 2 minutes, dramatic documentary style, 16:9 at 1920x1080."}],

    "model": "eachsense/beta",
    "stream": true,
    "session_id": "world-mysteries-series",
    "mode": "max"
  }'

# Episode 2 (same session for style consistency)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create episode 2 about Stonehenge. Keep the same visual style, intro, and format as episode 1."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "world-mysteries-series",
    "mode": "max"
  }'

错误处理

错误原因解决方案
Failed to create prediction: HTTP 422余额不足在 eachlabs.ai 充值
内容政策违规内容被禁止调整提示词,使其符合内容政策
超时视频生成过程复杂或耗时较长将客户端超时时间设为至少 10 分钟

相关技能

  • each-sense - 核心 API 文档
  • meta-ad-creative-generation - Meta/Facebook 广告创意
  • tiktok-ad-creative-generation - TikTok 广告创意
  • video-generation - 通用视频生成

评论

支持 Markdown