Communitygithub.com

利用免费素材生成长视频

规划、编写脚本并渲染 5 到 30 分钟以上的 YouTube 视频,使用免费素材库(Pexels、Pixabay、Mixkit、Wikimedia Commons、Internet Archive、Unsplash)、AI 或自己的配音(Piper、ElevenLabs、Whisper 字幕)以及自动 FFmpeg 编辑,并包含每个片段的使用许可追踪和 YouTube 原创性检查。

利用免费素材生成长视频 是什么?

此技能用于从用户提供的主题或脚本,自动生成适合 YouTube 的长视频(5-30 分钟以上)。它集成了研究、脚本编写、场景规划、免费素材搜索(Pexels, Pixabay 等)、AI(Piper, ElevenLabs)或真人配音、字幕生成(Whisper)、以及通过 FFmpeg 进行的自动化视频编辑和渲染。该技能特别强调原创性:它会在开始时明确告知用户 YouTube 关于“重复性内容”和“ reused content ”的政策风险,并强制要求用户在最终上传前进行人工审核。工作流程以 `project.json` 为核心,采用模块化的 Python 脚本驱动,支持逐步重试和缓存,适用于 Claude Code、Cursor 等基于终端的 AI 编码代理。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/jawadamjadbajwa/content-creator-skills/tree/HEAD/skills/long-video-generation-using-free-clips

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

利用免费素材生成长视频 是做什么的?

将主题转化为完整的 1080p 视频:研究与提纲、脚本、场景、素材搜索、配音、编辑、字幕、音乐、标题、描述、章节和缩略图。脚本使用标准库 Python 和 FFmpeg。对用户的回复遵循其语言偏好;文件内容和命令保持英文。

首先阅读:真实风险

YouTube 会对频道中大量制作、重复或模板化的内容(“非真实内容”)以及缺乏实质评论或更改的汇编内容(“重复使用内容”)进行广告收益取消资格。使用免费素材加合成语音且没有原创视角正是这种模式,该政策适用于整个频道。因此,本技能自动化的是劳动(搜索、下载、同步、渲染),而非价值。每个项目都需要一个原创视角、真实的研究和来源,并且在上传前需要有人观看整个视频。请在开始时用一两句话明确告知用户这一点,并且不要承诺完全自动生成的视频会赚钱。详情和检查项:references/youtube-policy-and-originality.md。

工作流程

创建项目文件夹,并将所有内容保存在 project.json 中(模式见 references/scripting-and-packaging.md)。

  1. 输入。 主题、受众、语言、时长、配音选择(免费 Piper、ElevenLabs 或用户自己的录音)、可用的 API 密钥、音乐文件。仅询问缺失的信息。如果主题涉及健康、法律、金融、政治或新闻,在继续之前阅读策略参考中的敏感话题规则。
  2. 研究和提纲。 使用 WebSearch/WebFetch(以及可用的 viral-content-research 或 content-strategy)收集带有链接的事实。写出单句的 角度(本视频说了别人没说过的内容)和 来源。按章节列出提纲。绝不能虚构事实、数字或引用。
  3. 脚本。 编写口语化的旁白,每分钟约 150 字,每个场景一个想法,每个场景 40 到 160 字。结构要有变化;以价值点开头,而不是问候语。
  4. 场景。 在 project.json 中填充 scenes,包含 id、chapter、narration、2 到 3 个具体的 keywords(名词,而非抽象概念),可选的 on_screen_text。
  5. 检查计划。 python scripts/project.py validate DIR 和 estimate DIR。修复警告中真正的问题。
  6. 配音。 python scripts/voiceover.py DIR。给出每个场景的精确时长,这驱动其他所有步骤。
  7. 查找素材。 python scripts/stock_search.py DIR(默认使用 Pexels 和 Pixabay;密钥存在于环境变量中)。结果根据结果自身的标签与关键词的匹配度(relevance,0 到 1)进行排序,然后才是分辨率或视频与图片;输出会说明有多少保留的候选片段是切题的。如果某个场景的切题结果很少,请使用更简单的名词或对该场景使用 --kinds image(--scene ID)。然后运行 python scripts/fetch_clips.py pick DIR,它会跳过弱匹配(相关性低于 0.3),除非使用 --allow-offtopic。在检查过的来源中,Mixkit 没有 API:告知用户手动下载,并使用 fetch_clips.py add-local 注册文件。Commons、Internet Archive 和 Unsplash 的结果在使用前需要逐文件检查许可。
  8. 检查每个镜头,然后生成草稿。 python scripts/fetch_clips.py review DIR 会写入 build/review.html,其中包含每个镜头的一帧及其旁白:请查看所有帧(标签仍然有误导性,标识或可识别的人物可能会混入)。使用 fetch_clips.py reject DIR SCENE ID 移除错误的镜头,并使用 pick DIR --scene SCENE --fill 补充;使用 pick DIR --scene SCENE --redo 替换整个场景。然后运行 python scripts/build_video.py DIR --draft(640x360,快速),观看它,重复操作。
  9. 字幕。 python scripts/subtitles.py DIR(脚本中的时间)或 --mode whisper 用于使用 faster-whisper 获取实时词级时间戳。校对。
  10. 最终渲染。 python scripts/build_video.py DIR 以 1080p 写入 out/video.mp4,音乐在语音下自动降低音量,并标准化响度。仅在用户想要硬编码字幕时添加 --burn-subs;否则上传 SRT 文件。
  11. 打包。 在 project.json 中填充 youtube 部分(标题、描述、标签、披露信息),然后运行 python scripts/package_youtube.py credits DIR 和 thumbnail DIR --text "..."。提供 3 个标题选项和 2 个缩略图概念,并附上理由。
  12. 人工审核。 用户观看整个视频,检查事实和许可,然后将 review.human_checked 设置为 true。在此之前,不要声称视频已准备好。

每个步骤都可以重新运行:音频、镜头和场景都被缓存,因此修复一个场景仅重新渲染该场景。

命令

python scripts/project.py init DIR --title "..." --minutes 12
python scripts/project.py validate DIR [--strict] | estimate DIR | status DIR
python scripts/voiceover.py DIR [--engine piper|elevenlabs|own|silent] [--scene ID] [--force] [--dry-run]
python scripts/stock_search.py DIR [--sources pexels,pixabay,commons] [--kinds video,image] [--max-requests 120]
python scripts/fetch_clips.py pick DIR [--prefer video|image|mixed] [--scene IDS] [--redo | --fill] [--allow-offtopic] [--dry-run]
python scripts/fetch_clips.py review DIR | reject DIR SCENE ID [ID ...] | add-local DIR SCENE FILE --license "..." --confirmed | list DIR
python scripts/subtitles.py DIR [--mode script|whisper]
python scripts/build_video.py DIR [--draft] [--only s01,s02] [--burn-subs] [--transition fade,dissolve] [--no-text]
python scripts/package_youtube.py credits DIR | thumbnail DIR --text "THREE WORDS" [--source FILE]

密钥仅来自环境变量:PEXELS_API_KEY、PIXABAY_API_KEY、UNSPLASH_ACCESS_KEY(可选加入)、ELEVENLABS_API_KEY。切勿将密钥写入文件、日志或聊天中。

保持输出诚实和安全的规则

  • 尊重来源的 API 条款:速率限制、缓存、禁止批量下载、显示来源。仅下载已选中的文件。参见 references/sources-and-licenses.md。
  • 使用的每个文件都会在 project.json 中记录其来源、创建者、页面 URL 和许可;credits 会将其转化为描述中的致谢。任何未标记为 license_status: ok 的文件在检查之前都会阻止发布。
  • 不要为了填充时间而将无关的片段拼接在旁白后面;每个镜头都应展示句子所描述的内容。优先选择更少但更匹配的镜头,在免费素材过于泛泛时,添加地图、图表、图示或用户自己的素材。
  • 不要将合成语音或虚拟形象呈现为真实人物或专家。遵循平台的“修改或合成内容”披露规则;由用户决定,Claude 标记出来。
  • 不要以暗示背书或误导的方式使用可识别的人物素材,也不要从网络下载公众人物的照片放入视频中。
  • 如果某个步骤因为沙盒阻止网络而失败,请告知用户并提供在用户自己机器上运行的确切命令;切勿伪造搜索结果或下载。
  • 仅报告已验证的信息。这些脚本是使用本地测试媒体和模拟的 API 响应进行测试的,而非实时 API;如果实时调用失败,显示错误并进行调整,不要猜测。

参考资料

  • references/youtube-policy-and-originality.md:YouTube 规则的针对性目标、原创性检查点、敏感话题、披露要求。
  • references/sources-and-licenses.md:各来源的条款、限制、置信度、署名文本。
  • references/scripting-and-packaging.md:研究、提纲、脚本规则、场景划分、project.json 模式、标题、描述、章节、缩略图。
  • references/voiceover.md:Piper、ElevenLabs、自己的录音、Whisper、语调和发音。
  • references/editing-and-render.md:时间、转场、Ken Burns 效果、音乐降音和响度的工作方式、调优、故障排除,以及为何使用 FFmpeg 而非 MoviePy。

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

brand-voice

Define, document and enforce a consistent brand or creator voice for social media, video and marketing copy. Builds a voice guide (personality, tone dials, vocabulary, do and don't examples) from interviews and real writing samples, measures writing habits with a script, rewrites drafts in that voice, audits existing content for consistency, and adapts tone per platform, audience and situation, including Roman Urdu, Urdu, Hinglish and English. Use this skill whenever the user wants a brand voice, tone of voice, voice guide, "sounds like me" writing, consistent captions or scripts, to rewrite text in their style, to check whether content matches their brand, or says "build my brand voice", "my tone", "style guide", even if they never say "voice".

short-form-video-scripts

Write, plan and improve short-form video scripts for YouTube Shorts, Instagram Reels and TikTok, including 3-second hooks, 15, 30, 60 and 90 second scripts, storytelling structures, pattern interrupts, retention edits, scene-by-scene breakdowns, voiceover and dialogue scripts, CTA placement, B-roll, on-screen text, camera directions, platform adaptation, and rewriting an existing script or video so it performs better. Validates topics with Google Trends and YouTube data, checks timing with a bundled script, generates SRT captions and shot lists, and builds a fully free production workflow with optional hand-offs to ElevenLabs, HeyGen and Veo. Use this skill whenever the user wants a reel, short, TikTok or video script, a hook, a voiceover, or a video idea turned into a shootable plan, even if they only say "write a script", "reel idea", "give me a hook" or "make this video better".

thumbnail-design

Design professional, high-clarity YouTube thumbnails (1280x720 videos, 9:16 Shorts covers) from a video title, script or topic. Produces 3 to 5 distinct concepts, builds the images (own photos, free stock, optional AI images, background removal), composes text, subject and effects with Pillow, makes variations, checks readability and file limits, and exports final JPG/PNG. Use this skill whenever the user asks for a thumbnail, thumbnail ideas, a thumbnail redesign, a Shorts cover, CTR-focused visuals, or says things like "make a thumbnail", "thumbnail for this video", "give me thumbnail concepts", even if they only paste a title or script.

相关技能