Communitygithub.com

akshayDev17/ai-explainer-video

1つのシーン設定を特定の時間枠でMP4にレンダリングします(またはQA用の静止画を生成します)。コースワークから説明ビデオを作成するパイプラインの第7ステージ、レンダリングプリミティブです。

ai-explainer-video とは?

このスキルは、「explainer-video-from-coursework」パイプラインの第7ステージであり、レンダリングプリミティブとして機能します。指定されたシーン設定と時間枠に基づいて、ヘッドレスChromiumでシーンを描画し、PNGフレームシーケンスを生成した後、ffmpegでH.264エンコードされたMP4動画に変換します。このスキルは単一シーンのレンダリングに特化しており、複数シーンの動画はアセンブルステージがウィンドウごとに呼び出します。また、`--shots`オプションを使用することで、完全な動画ではなくQA用の静止画を生成することも可能です。依存関係としてffmpegとヘッドレスChromiumが必要であり、不足している場合はSETUP.mdの手順に従うよう促します。このスキルは、シーンオーサリング中の素早いプレビューや、最終的な動画アセンブリのための部品生成に有用です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/akshayDev17/ai-explainer-video/tree/HEAD/skills/craft-video-render

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

craft-video-render — フレームからMP4へ

explainer-video-from-coursework パイプラインの一部 — 8ステージ中7番目。レンダリング プリミティブ。アセンブルステージがセグメントごとにこれを駆動します。シーンオーサリング中にQA用の 静止画を生成するために単独で実行することもできます。

パイプラインツールとシーンホストは、兄弟スキル explainer-video-from-coursework 内にあります。 これらを node ../explainer-video-from-coursework/tools/<tool>.mjs として実行します。パスはこの スキルのフォルダを基準に解決されます。プロジェクト から実行するため、out/ スクラッチは ノートの隣に配置されます。

前提条件: シーン設定。ウィンドウレンダリングの場合は out/<name>/<NN>/timeline.json。 マシンに ffmpeg とヘッドレスChromiumがインストールされていること(SETUP.md を参照)。

[node] / [setup] / Playwright cache not found エラーは前提条件が不足していることを 意味します。対応する SETUP.md の手順をユーザーに伝え、再実行してください。

node ../explainer-video-from-coursework/tools/render.mjs --scene "src/scene-diagram.html?scene=<name>" \
                      --range <t0>,<t1> --outdir out/<name>/<NN>/parts --name part-<key>

1つのシーン設定を1つの時間枠でレンダリングします — ヘッドレスChromium (CDP経由) → PNGシーケンス → ffmpeg H.264。これは動画全体のレンダラーではありません。--scene は1つの host?scene=<config> を受け取るため、マルチシーン動画はウィンドウごとにレンダリングされます。 --narration なしでレンダリングされたウィンドウは無音になり、これはアセンブルが期待する動作です。

--shots 6,20,34 は完全なシーケンスの代わりにQA用の静止画をレンダリングします。 --keep-frames はPNGシーケンスを保持します。

完了条件: 実行が終了コード 0 で終了し、[done] …<name>.mp4 が表示されること。

メンテナンス

このファイルを変更する場合、またはユーザーがこのステージの変更を依頼した場合は、メインの explainer-video-from-coursework スキルの 「Stage 7 — /render」 セクションもそれに合わせて 調整する必要があることをユーザーに伝え、そのセクションを返答で指定してください。

Individual skills in this repo

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

akshayDev17/ai-explainer-video

Assemble one video from its segments — render each window silent, concatenate, mux the narration once, and verify. Stage 8 of explainer-video-from-coursework.

akshayDev17/ai-explainer-video

Synthesize narration and build the measured timeline for one video. Stage 4 of explainer-video-from-coursework — the one-shot TTS primitive.

akshayDev17/ai-explainer-video

Retitle and curate the videos in an explainer-video plan — write enrichment.json and merge it. Stage 2 of explainer-video-from-coursework; run it alone to retitle an existing plan.

akshayDev17/ai-explainer-video

Decompose a coursework notes directory into an explainer-video plan and prove no content-bearing section is dropped. Stage 1 of explainer-video-from-coursework; run it alone to (re)plan a directory.

akshayDev17/ai-explainer-video

Generate YouTube chapters and English captions for one finished video. Stage 6 of explainer-video-from-coursework.

akshayDev17/ai-explainer-video

Author and iterate the animated visuals for one video's segments. Stage 5 of explainer-video-from-coursework; it re-invokes the audio stage when a beat needs a hold.

akshayDev17/ai-explainer-video

Write and validate the spoken narration for one explainer-video. Stage 3 of explainer-video-from-coursework; run it alone to (re)write a video's script.

akshayDev17/ai-explainer-video

Plan an explainer-video series from a directory of coursework notes — decompose into videos (proving nothing is dropped), retitle and curate, write the narration, synthesize the audio, author the visuals, then render and assemble the finished cut. Use when the user wants to turn structured coursework notes into explainer videos.

関連スキル