Show HN: AI that generates 3blue1brown-style explainer videos (tma.live)
So I made a tool that automatically generates animated math/science explanations in the style of 3blue1brown using Manim from any text prompt.
Try it yourself at https://TMA.live (no signup required)
or see the demo video here: https://x.com/i/status/1874948287759081608
The UX is pretty simple right now, you just write a text prompt and then start watching the video as it's generated. Once it's done generating you can download it.
I built this because I kept finding myself spending 30+ minutes in AI chats trying to understand very specific concepts that would have clicked instantly if there were a visual explanations on YouTube.
Technical Implementation:
- LLM + prompt to use Manim well, right now this uses Gemini with grounding to ensure some level of factuality, but it works equally well with Claude
- Manim for animation generation
- OpenAI TTS for the voiceovers
- Fly.io for hosting the web app
- Modal.com for fast serverless GPUs to render the videos
- HLS protocol for streaming the videos as they are rendered
Note: This is focused on STEM education and visualization, and it is particularly good for math, but get creative and try it with anything! I used it recently to teach my partner's parents a new board game in Mandarin (which I don't speak!)
I'll be around to answer questions. Happy learning!
47 comments
[ 2.9 ms ] story [ 86.4 ms ] thread- The LLM is prompted to generate an explainer video as sequence of small Manim scene segments with corresponding voiceovers
- LLM streams response token-by-token as Server-Sent-Events
- Whenever a complete Manim segment is finished, send it to Modal to start rendering
- Start streaming the rendered partial video files from manim as they are generated via HLS
I feel like this is the one thing that's been missing from all the LLMs: actual visual explainers, whether image or video. python plots only get you so far, and all the Diffusion stuff is nonsensical. This is amazing.
1. Doesn't work at all on Firefox 133.0.3 (64-bit)
2. Works on Chrome 131.0.6778.205 (Official Build) (64-bit)
3. No existing links do anything but a sub second "Generating" which disappears quickly
4. Does not work in Incognito on Chrome 131.0.6778.205 (Official Build) (64-bit)
My prompt kind of worked but ended at 48 seconds
Prompt: "Describe a honeybee learning which flower to land on in a field using Markov Decision Process with Bellman updating":
https://tma.live/video/88f535b5-0e5f-41ca-9bd8-e35e7aa8a95a
I ran it a second time and got a longer video of 1:55 but it primarily just created Text. It also didn't explain Bellman's equation and wrote it incorrectly:
https://tma.live/video/88f535b5-0e5f-41ca-9bd8-e35e7aa8a95a
The second prompt kind of worked but ends at 47 seconds and then loops the final 4 seconds forever.
Prompt: "Describe how the OODA Loop, MDP and SPA learning approaches are the same"
https://tma.live/video/ee7b5048-3fde-4f1a-8ec1-c8bb48883c75
Overall this worked as described. It's more than fast enough, but fails to deliver on consistency and graphics.
A few more iterations and fine tuning and you'll have a solid Beta. I can see this being very useful after another year or so of use and tuning.
Great work and congrats on shipping.
The other issues are bugs with my streaming logic retrying clips which failed to generate. LLMs aren't yet perfect at writing Manim, so to keep things smooth I try to skip clips which fail to render properly. Still also have layout issues which are hard to automatically detect.
I expect with a few more generations of LLM updates, prompt iterating, and better streaming/retrying logic on my end this will become more reliable
You can probably imitate the structure/scaffolding of a 3b1b video in a cargo cult way, but you are losing domain expert level verification of quality (which is why AI fails, because it's not a domain expert).
So heres how I'm hearing yoir question, and it answers itself: "how do I get domain expert quality from a non-domain expert AI?"....
"An expert is a person who is far away from home and gives advice"
Of course people can't be born experts and for every expert there must be a prior step in their personal growth when they were less expert. But that doesn't prevent people from using an imperfect heuristic for judging whether you can trust someone's expertise.
Classic example is the pyramid structures around the world. The fact that people found that it's easy to pile rocks that way in order to build tall stable structures doesn't mean that there was a single culture that span the entire globe.
Compared to https://www.youtube.com/watch?v=24GfgNtnjXc this video is absurdly limited https://tma.live/video/9c8e725e-ec21-41a7-984a-317d84216497
https://youtu.be/pj0wXRLXai8
Same for me. I think of the cones of light being formed when I see the rainbow and that amazing lecture.
Although it is pretty impressive for what an LLM can generate these days.
As an example, I asked about the Cantor function. It generated a 1:24 video, which is laughably short, explained correctly how the Cantor set is defined but showed a flawed visual representation, then simply skipped over how the Cantor function is constructed and simply states the basic properties. Sorry, but this is garbage content.
I think they use some extremely cheap model for writing the code, probably 4o-mini or similar.
Btw for some reason on iOS I had to download to view the video
I asked a history question - tell me about Reddy kings rule. It made up a physics rule and started talking about electrons.