long-video-generation-using-free-clips
Skill4 starsChanged 9 days agoMITView on GitHub
Plan, script and render 5 to 30+ minute YouTube videos from free stock footage (Pexels, Pixabay, Mixkit, Wikimedia Commons, Internet Archive, Unsplash), AI or own voiceover (Piper, ElevenLabs, Whisper subtitles) and automated FFmpeg editing, with per-clip licence tracking and YouTube originality checks. Use this skill whenever the user wants a long-form or faceless video made from stock clips, a video from a script or topic with voiceover and subtitles, automatic scene-by-scene editing, 1080p rendering, or a YouTube title, description, chapters and thumbnail for such a video, even if they just say "make a long video", "video from free clips", or "faceless YouTube video".
- Reads credentials
In this repository9 other files it gives its agents.
- analyticsSkill
- auto-publishSkill
- brand-voiceSkill
- content-strategySkill
- short-form-video-scriptsSkill
- social-media-calendarSkill
- social-media-contentSkill
- thumbnail-designSkill
- viral-content-researchSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Create a project folder and keep everything in project.json (schema in references/scripting-and-packaging.md).
- Very specific: line 19
Research and outline: Use WebSearch/WebFetch (and viral-content-research or content-strategy if present) to collect facts with links.
- Distinctive: line 20
Script: Write narration for the spoken word, about 150 words per minute, one idea per scene, 40 to 160 words per scene.
- Very specific: line 52
Every file used is recorded with source, creator, page URL and licence in project.json.
- Distinctive: line 53
Do not stitch unrelated clips behind the narration just to fill time.
- Distinctive: line 54
Do not present a synthetic voice or avatar as a real person or expert.
- Distinctive: line 55
Do not use footage of identifiable people in a way that implies endorsement or misleads, and do not download photos of public figures from …
- Distinctive: line 56
If a step fails because the sandbox blocks the network, say so and give the exact command for the user's own machine.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Long-form video from free clips
Turns a topic into a finished 1080p video: research and outline, script, scenes, footage search, voiceover, edit, subtitles, music, title, description, chapters and thumbnail. The scripts are standard-library Python plus FFmpeg. Replies to the user follow their language preference; file contents and commands stay in English.
Read this first: the real risk
YouTube demonetizes channels whose uploads are mass-produced, repetitive or template-like ("inauthentic content") and compilations without meaningful commentary or change ("reused content"). Stock clips plus a synthetic voice and no original angle is exactly that pattern, and the policy applies to the whole channel. So this skill automates the labour (searching, downloading, syncing, rendering) but not the value. Every project needs an original angle, real research and sources, and a human watching the whole video before upload. Say this plainly to the user at the start, in one or two sentences, and do not promise that a fully automatic video will earn money. Details and gates: references/youtube-policy-and-originality.md.
Workflow
Create a project folder and keep everything in project.json (schema in references/scripting-and-packaging.md).
- Intake. Topic, audience, language, length, voice choice (Piper free, ElevenLabs, or the user's own recording), available API keys, music file. Ask only for what is missing. If the topic is health, legal, finance, politics or news, read the sensitive-topic rules in the policy reference before going on.
- Research and outline. Use WebSearch/WebFetch (and
viral-content-researchorcontent-strategyif present) to collect facts with links. Write the one-sentenceangle(what this video says that others do not) andsources. Outline in chapters. Never invent facts, numbers or quotes. - Script. Write narration for the spoken word, about 150 words per minute, one idea per scene, 40 to 160 words per scene. Vary structure; open with the payoff, not a greeting.
- Scenes. Fill
scenesinproject.jsonwithid,chapter,narration, 2 to 3 concretekeywords(nouns, not abstractions), optionalon_screen_text. - Check the plan.
python scripts/project.py validate DIRandestimate DIR. Fix warnings that are real. - Voiceover.
python scripts/voiceover.py DIR. Gives exact per-scene durations, which drive everything else. - Find footage.
python scripts/stock_search.py DIR(Pexels and Pixabay by default; keys in env vars). Results are ranked by how well each result's own tags match the keyword (relevance, 0 to 1) before resolution or video vs photo; the output says how many kept candidates are on-topic. If a scene has few on-topic results, use plainer nouns or--kinds imagefor that scene (--scene ID). Thenpython scripts/fetch_clips.py pick DIR, which skips weak matches (relevance under 0.3) unless--allow-offtopic. Mixkit has no API in the sources checked: tell the user to download by hand and register files withfetch_clips.py add-local. Commons, Internet Archive and Unsplash results need a per-file licence check before use. - Review every shot, then draft.
python scripts/fetch_clips.py review DIRwritesbuild/review.htmlwith one frame per shot next to its narration: look at all of them (tags still mislead, and logos or identifiable people slip in). Remove wrong ones withfetch_clips.py reject DIR SCENE IDand top up withpick DIR --scene SCENE --fill; replace a whole scene withpick DIR --scene SCENE --redo. Thenpython scripts/build_video.py DIR --draft(640x360, fast), watch it, repeat. - Subtitles.
python scripts/subtitles.py DIR(timings from the script) or--mode whisperfor real word timings with faster-whisper. Proofread. - Final render.
python scripts/build_video.py DIRwritesout/video.mp4at 1080p, with music ducked under the voice and loudness normalized. Add--burn-subsonly if the user wants hard-coded captions; otherwise upload the SRT. - Packaging. Fill
youtubeinproject.json(title, description, tags, disclosure), thenpython scripts/package_youtube.py credits DIRandthumbnail DIR --text "...". Offer 3 title options and 2 thumbnail concepts with reasons. - Human review. The user watches the whole video, checks facts and licences, then sets
review.human_checkedto true. Do not call the video ready before this.
Each step can be rerun: audio, shots and scenes are cached, so fixing one scene re-renders only that scene.
Commands
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]Keys come from environment variables only: PEXELS_API_KEY, PIXABAY_API_KEY, UNSPLASH_ACCESS_KEY (opt-in), ELEVENLABS_API_KEY. Never write a key into a file, a log or the chat.
Rules that keep the output honest and safe
- Respect the sources' API terms: rate limits, caching, no bulk downloading, show the source. Download only the files that were chosen. See
references/sources-and-licenses.md. - Every file used is recorded with source, creator, page URL and licence in
project.json;creditsturns that into the description credits. Anything not markedlicense_status: okblocks publishing until checked. - Do not stitch unrelated clips behind the narration just to fill time; each shot should show something the sentence is about. Prefer fewer, better-matched shots, add maps, charts, diagrams or the user's own footage where stock is generic.
- Do not present a synthetic voice or avatar as a real person or expert. Follow the platform's "altered or synthetic content" disclosure rules; the user decides, Claude flags it.
- Do not use footage of identifiable people in a way that implies endorsement or misleads, and do not download photos of public figures from the web into the video.
- If a step fails because the sandbox blocks the network, say so and give the exact command for the user's own machine; never fake search results or downloads.
- Report only what was verified. The scripts were tested with local test media and mocked API responses, not live APIs; if a live call fails, show the error and adjust, do not guess.
References
references/youtube-policy-and-originality.md: what YouTube's rules target, originality gates, sensitive topics, disclosure.references/sources-and-licenses.md: per-source terms, limits, confidence level, attribution text.references/scripting-and-packaging.md: research, outline, script rules, scene splitting,project.jsonschema, titles, description, chapters, thumbnail.references/voiceover.md: Piper, ElevenLabs, own recording, Whisper, pacing and pronunciation.references/editing-and-render.md: how timing, transitions, Ken Burns, music ducking and loudness work, tuning, troubleshooting, and why FFmpeg is used instead of MoviePy.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

