Communitygithub.com

使用免費素材的長篇影片產生

規劃、撰寫腳本並產出5到30分鐘以上的YouTube影片,使用免費的素材(Pexels、Pixabay、Mixkit、Wikimedia Commons、Internet Archive、Unsplash)、AI或自己的配音(Piper、ElevenLabs、Whisper字幕)以及自動化的FFmpeg編輯,並附帶每個片段的使用許可追蹤與YouTube原創性檢查。

使用免費素材的長篇影片產生 是什麼?

這是一個專門為AI代理(例如Claude Code、Cursor、Codex)設計的技能,能將一個主題或簡短提示,自動化產出長達5到30分鐘以上的1080p YouTube影片。它能處理從研究大綱、腳本撰寫、場景規劃、自動搜尋並下載免費素材(支援Pexels、Pixabay、Mixkit等多個來源)、生成AI語音或匯入使用者錄音、產生字幕、FFmpeg自動剪輯,到最後產出YouTube標題、描述、章節與縮圖的完整流程。 此技能的核心價值在於自動化「勞動密集型」的工作,例如搜尋片段、下載、同步與渲染,但同時它明確提醒使用者,必須為影片注入原創觀點與真實研究,以避免觸犯YouTube的「重複內容」或「非原創內容」政策。技能檔案(SKILL.md)中包含詳細的12步工作流程、具體的Python CLI命令、環境變數設定,以及嚴格的規則來確保輸出內容的合法性與安全性,例如禁止偽造搜尋結果、必須記錄每個片段的使用許可、以及要求最終由真人觀看審查。

相容平台✓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)收集帶有連結的事實。撰寫一句話的 angle(這部影片說了什麼其他影片沒說的)和 sources。以章節方式建立大綱。切勿捏造事實、數字或引用。
  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,音樂會在語音下方進行 ducking,並對響度進行正規化。僅在使用者想要硬編碼字幕時才加入 --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 中記錄其來源、創作者、頁面網址和使用許可;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效果、音樂 ducking 和響度正規化的運作方式、調整、疑難排解,以及為何使用 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.

相關技能