Making an explainer video with Claude Code and an open-source renderer
An explainer video is a short video where a voice explains one idea and drawings appear while it speaks. For a developer tool it's often the fastest way to show what the thing does. You can put one at the top of a README, or next to a feature in the docs that is hard to explain in text. Making one used to mean a screen recorder and a video editor. Now a coding agent can do most of it. It can…
An explainer video is a short video featuring a voice explaining a single idea, accompanied by drawings appearing in sync with the narration. For developer tools, this is often the quickest way to illustrate the functionality of the tool. These videos can be placed at the top of a README file or next to a feature in documentation that is difficult to explain through text alone.
Traditionally, creating an explainer video involved using a screen recorder and a video editor. However, with the advent of coding agents, much of the process has now been automated.
One such coding agent is Claude Code, which can write the script and generate the scenes for the video. The resulting video file can be obtained using the open-source tool explainroo, which is available under the MIT license. explainroo is a free video tool designed for AI agents, enabling them to create explainer videos. The tool can handle multiple languages, including English, Spanish, French, Italian, Brazilian Portuguese, Hindi, Japanese, and Mandarin Chinese, without requiring an account or API key.
The process of creating an explainer video using explainroo begins by opening Claude Code in an empty folder and providing a topic for the video. The agent then utilizes a voice model called Kokoro, which is capable of generating audio in various languages. Kokoro reads the script and generates timing information for each word. The agent also employs a JavaScript library called scenes.js to draw the scenes based on the script.
After generating the script and scenes, explainroo renders the video using ffmpeg, a popular multimedia framework. The output is an MP4 file with subtitles and a cover image. The tool also generates YouTube chapters automatically when the script contains chapter markers. The first run of explainroo downloads approximately 400 MB of voice and timing models, which are necessary for generating the video.
Explainroo provides several features to help users refine their videos. Users can provide feedback on specific scenes, such as when a scene includes too much text. The agent will then modify the corresponding scenes.js file and render the video again. Explainroo also offers tools for checking the video for issues such as black frames, still images, and words that the voice model mispronounced. These checks can be performed on a video file created using any tool, including screen recordings that have been edited manually.
Additionally, explainroo supports recording real app demos using the npx --yes explainroo record command. This feature allows users to capture their application's screen, and the agent can then create a scene that overlays the recording with a pointer and zooms in on relevant areas. This is particularly useful for creating product demos that showcase how a user will interact with the application.
In summary, explainroo is an open-source video tool that enables coding agents to create explainer videos with minimal human intervention. The tool supports multiple languages, provides features for refining the video, and can even record real app demos. By leveraging the power of AI agents, developers can easily create engaging explainer videos for their projects, making it an invaluable resource for product documentation and marketing materials.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to