What does ljq-broll-video-generator do?
基于参考素材打点、抽帧、拆解并用 Remotion 生成可编辑 B-roll 的 Codex Skill
Overview
This skill processes reference video footage to create B-roll material. It performs three main steps:
- Marking key points: Analyzes the video to identify significant moments (cuts, motion changes, or manually specified timestamps).
- Frame extraction: Extracts representative frames from those points for thumbnail/preview use.
- Scene decomposition: Splits the video into smaller clips based on identified markers.
Finally, it generates a Remotion project that composites these clips into an editable B-roll sequence, with controls for duration, transitions, and overlays.
Use Cases
- Automatically generating B-roll for YouTube or social media videos.
- Creating visual assets for presentations from demo recordings.
- Producing training materials with supporting clips from screen captures.
Requirements
- Codex environment (AI-assisted coding tool).
- Node.js 18+ installed locally.
- Remotion CLI (
npx remotion) available. - FFmpeg for video/audio processing.
How It Works
- Input: Provide a reference video file or a URL.
- Processing: The skill runs a script that:
- Detects scene changes using FFmpeg.
- Creates a list of timestamps.
- Extracts frames at those timestamps.
- Splits video into segments.
- Output: Generates a Remotion
src/directory with composition files, ready to render.
Example Usage
# Run the skill on a video file
codex run ljq-broll-video-generator --input ./demo.mp4 --output ./broll_project
This will create a Remotion project in ./broll_project with:
src/Composition.tsxsrc/scenes/(individual clip components)package.jsonwith Remotion dependenciesremotion.config.ts
Supported Platforms
- Codex (primary)
- Should also work with other AI coding agents (Claude Code, Cursor, etc.) with minor adjustments.
Customization
You can tweak the generated Remotion project by editing the composition components:
- Change transition effects.
- Adjust clip durations.
- Add text overlays or logos.
License
MIT (see repository for details).