$ prompts
Make motion-graphics videos by talking, for free, with Remotion or HyperFrames
A coding agent writes the video's code and a tool renders it. Two prompts to copy: one installs the toolkit (Node.js, FFmpeg, yt-dlp, Whisper), one makes the video. Plus the steps and commands.
Set up a complete video-making toolkit in this empty folder. I'm a beginner: explain each step in one line and ask before every install.
First detect my operating system and use its package manager (winget on Windows, Homebrew on Mac, apt on Linux). For each tool below, check whether it is already installed, install only what is missing, then print its version.
1. Node.js LTS (version 22 or later) and Git. Python 3.10 or later if any tool below needs it.
2. The video tool: [Remotion or HyperFrames], created in this folder, with its official agent skills.
3. FFmpeg and FFprobe: cutting, joining, converting, extracting audio, burning in subtitles.
4. yt-dlp: downloading a video or audio from a link I give you. Use it only for content I own or have the right to reuse.
5. Whisper for speech to text, the multilingual version so Arabic works (whisper.cpp or faster-whisper; with Remotion use @remotion/install-whisper-cpp). Pick a model size that runs well on this computer and tell me which one and why.
6. Optional, ask me first: an open-source background-removal tool such as rembg, for cutting me out of a video.
7. A free Arabic font (Cairo or Tajawal), added to the project.
When everything is installed, make a 3-second test video with one Arabic word, open the preview, render it to MP4 and tell me where the file is. Then list anything that failed or needs a terminal restart. Do not start my real video yet.The short version
The AI here doesn't generate the video frame by frame, the way cinematic video tools do. It writes the video's code, and a second tool, Remotion or HyperFrames, renders that code to a video file, exactly. That is why Arabic text comes out right, and why you can change any detail with one sentence.
There are two prompts, and you use them in order. The one at the top of the page installs everything: paste it once, in an empty folder. The second, further down, makes the video, and it is an example you change to fit your own video.
Which tool?
Both tools are good, and you use them the same way: you talk to the agent, it writes the code and runs the commands. What really separates them is the licence:
- Remotion: you write the video in React. Free for individuals and for companies of up to three people; bigger companies need a company licence.
- HyperFrames: you write the video as a plain HTML page. Free for everyone, under Apache-2.0.
If you work alone or in a small team, pick either. If your company has more than three people and you don't want to buy a licence, pick HyperFrames.
The five steps
Install a coding agent such as Google's Antigravity. Then install the LTS version of Node.js. HyperFrames needs version 22 or later.
Open an empty folder in the agent and paste the setup prompt from the top of the page, with Remotion or HyperFrames in the brackets. The agent checks what you already have, then installs the rest: FFmpeg, yt-dlp, Whisper and the tool's skills. It asks before every install. Skills are official instructions from the tool's makers that teach the agent to write correct code for it.
Describe the video you have in mind: the size, the scenes, the length and the files you'll give it. The video prompt below is a worked example, not a template to paste as it is. If you have a video you shot on your phone, use the variant under it.
Open the preview and watch the video live, then edit by talking: "make the title bigger", "slow this transition down". The agent changes the code and the preview updates in front of you.
Tell it "render", and you get an MP4 ready to post.
What the setup prompt installs
You don't need to know these tools to use them, but here is what each is for, so you can tell the agent which one to use:
- Node.js and Git: run the video project and track its changes.
- Remotion or HyperFrames: turn code into video. Remotion bundles its own FFmpeg; HyperFrames needs FFmpeg installed.
- FFmpeg and FFprobe: the Swiss-army knife of video from the command line. It cuts, joins, converts, extracts audio, adjusts volume and burns in subtitles. Agents drive it well, but it doesn't do motion graphics.
- yt-dlp: downloads a video or just its audio from a link, so the agent can work on a file instead of a URL.
- Whisper: turns speech into text with the time of every word. That is what makes captions line up with your voice, and what lets the agent cut the silences.
- rembg (optional): cuts you out of a video with an open-source model that runs on your computer.
- An Arabic font: so the agent never falls back to a font that breaks the letters.
The commands the agent will run
You won't type these yourself. They're here so you know what's happening, and so you can check what the agent asks to run:
Remotion (needs only Node.js; FFmpeg comes bundled):
- New project with its skills:
npx create-video@latest --skills - Skills for an existing project:
npx skills add remotion-dev/skills - Preview:
npm run dev - Render:
npx remotion render
HyperFrames (needs Node.js 22 or later, and FFmpeg):
- New project:
npx hyperframes init my-video - Skills:
npx skills add heygen-com/hyperframes - Preview:
npx hyperframes preview - Render:
npx hyperframes render
Checking the tools: after the install, ffmpeg -version and yt-dlp --version should each print a version. If one says "command not found", restart the terminal and try again.
The video prompt
Make a 30-second vertical video, 1080x1920, at 60 fps, with [Remotion or HyperFrames].
Scene 1, 0 to 8 s: my logo (assets/logo.svg) builds from glowing lines on a dark background.
Scene 2, 8 to 20 s: the title "خلّي الكلام يشتغل" appears word by word, timed to my voiceover.
Scene 3, 20 to 30 s: three icons pop in, each with a short label.
Voiceover: use assets/voice.m4a. With FFmpeg, cut the long silences. With Whisper (Arabic), transcribe it and use the word timings for the captions and for the timing of the scenes.
Music: use assets/music.mp3 quietly under the voice and fade it out at the end with FFmpeg. If I give you a link instead of a file, download it with yt-dlp, only if it's mine or licensed for reuse.
Style: flat design, background #111211, accent #C7FF3D, font Cairo.
Arabic text: right-to-left, an Arabic font only, never split Arabic letters, animate word by word, captions inside the bottom safe area.
Add soft sound effects on the main moments, quieter than the voice.
Show me 4 still frames for approval before you render. Then render an H.264 MP4 with AAC audio and tell me where it is.Variant: edit a video you shot on your phone
Same rule: this is an example. Change the file name, the title, the name in the lower third and the style.
Here is my phone video: assets/phone.mp4.
With FFmpeg, cut the silences and the mistakes.
Add a title at the start, a lower third with my name, and key words as text on screen.
With Whisper (Arabic), transcribe what I say and add captions, word by word, synced to my voice.
Remove the background behind me with an open-source matting model that runs on this computer (such as rembg), export me with a transparent background, and put animated motion graphics behind me.
Render a vertical 1080x1920 MP4 and show me 4 still frames for approval first.The variant is heavier than the first: the agent runs Whisper and a background-removal model on your computer, which can take a while on an average one.
Other tools that work the same way
The same idea, code in and video out, exists in other tools:
- Motion Canvas and Revideo: you write the video in TypeScript.
- Manim: you write it in Python; it was made for explaining maths.
- Blender: the agent writes Python that animates a 3D scene.
Before you start
- The free limit is weekly. A video with many scenes and many edits can use up a week of Antigravity. Any other agent works the same way: Codex, Claude Code, Cursor or Gemini CLI.
- Arabic is right as long as it's real text. If the agent draws the text inside a canvas or a 3D scene, the letters can come apart. That is why the prompt asks for an Arabic font only and unsplit letters. Check every word before you render.
- Check Whisper's Arabic captions. It gets most words right but can miss names, brands and English words inside Arabic speech. Read the captions once before you render.
- Models take space. Whisper and the background-removal model download on first use; the larger Whisper models are gigabytes. The agent will tell you the size before it downloads.
- Only download what you may reuse. yt-dlp can fetch almost any video, but that doesn't make it yours to use. Use it for your own videos and for content licensed for reuse.
- Read the licence if the video is for a company. Remotion's full terms are on its licence page.
Links
Related lessons
- What is an AI agent?: why the agent can install and run commands by itself.
- What is the difference between Skills, MCP, Connectors and Plugins?: what the skills add in step 2.