Codex Make Video From Script: Connect, Prompt and Export
To make a video from a script with Codex, add a video MCP server and let Codex direct it. Run codex mcp add rend --url https://rend.ai/api/mcp, then codex mcp login rend, point Codex at your script.md, and ask for a voiced, captioned video with b-roll. Rend does the narration, footage, music, captions and render; Codex reads your files, writes the brief and keeps track of revisions.
Codex alone can write a script or an FFmpeg command, but it has no narrator, music or hosted renderer. The connection is what turns a text file into an MP4.
Setup in two commands
codex mcp add rend --url https://rend.ai/api/mcp
codex mcp login rend
The login step opens a Rend page in your browser. Sign in, review the request and approve it; Codex stores and refreshes its own credentials. Nothing renders locally, so there's no GPU or FFmpeg to install. If your setup cannot do browser sign-in, Rend's connection guide covers personal tokens, and MCP video editing has every client side by side.
Shape the script so a video agent can use it
A script written for reading out loud is close, but a few marks make the production far more accurate. Use one paragraph per beat, and put visual notes in brackets where they belong:
# Why your basement floods in April
Every spring, the same street floods first. [Aerial of a flooded
suburban street] The houses at the bottom of Elm Avenue get
two inches of water while the ones at the top stay dry.
The reason is under the lawn. [Diagram: water table rising
under a house, labeled] ...
Brackets become the shot list. Diagram notes can become motion graphics or a 3D graphic. Anything with a real place or a person in it should come from your footage or a reference image, which matters if you want it to look real.
Length is arithmetic. Narration runs about 140 to 155 words a minute, so a 600-word script makes a video of about four minutes. If you need 60 seconds, you need about 145 words.
The production prompt
Read script.md. Using Rend:
1. Create a 16:9, 30 fps project with the script's title.
2. Count the words and tell me the expected length before anything else.
3. Design two narrator voices: plain, unhurried, a local contractor
explaining something to a neighbor. Voice the first paragraph
in each so I can choose.
4. After I pick, voice the full script.
5. For each [bracket], use files from ./footage first; generate b-roll
only where nothing fits, and list every generated shot by number.
6. Turn [Diagram: ...] notes into simple labeled motion graphics.
7. Quiet music bed, ducked under the voice. Word-timed captions, editable.
8. Send the Studio link and a preview. Don't export the final yet.
Step 2 is there because Codex will otherwise start rendering a five-minute video you thought was two. Step 3 is there because the voice carries the whole piece and you want to choose it before you pay for minutes of narration.
Worked example: a 4-minute explainer for a plumbing company
Here is a typical job: a local plumbing company wants a four-minute explainer for its site and a 45-second cut for ads. Its script is 590 words with 14 bracket notes, and it has a folder of 23 phone clips from job sites.
| Stage | Prompt to Codex | What comes back |
|---|---|---|
| Length check | "Count words, estimate length" | 590 words, about 4:05 |
| Voice | Two auditions | Pick one |
| Picture | Footage first, then generated | Generated-shot list |
| Diagrams | Motion graphics | Three labeled diagrams |
| Preview | Studio link | Notes on pace |
| Cutdown | "45 s, 9:16, hook first" | Second version, same project |
Where these jobs usually need a second pass is the generated shot list. A shot of a sump pump that looks like a stock photo from another country will cost the company more trust than it adds. Swap anything that looks wrong by its number, or replace it with a phone clip:
Replace generated shots 3 and 9 with footage/IMG_4471.mov and
IMG_4502.mov. Keep shot 6. Make shot 11 look like a phone photo
of a wet basement, not a studio shot.
The cutdown is a second prompt:
From this project, make a 45-second 9:16 version for paid social.
Open on the flooded street and the line "the same street floods first."
Keep only the three sentences that explain the cause and the fix,
captions large and inside the safe zone, then the phone number
as an end card.
If you plan to run it as an ad, video ads for local businesses covers hooks and offers for that kind of account.
Keep revisions in the repo
Codex is good at the bookkeeping that keeps video work sane. Ask it to write a video-notes.md beside the script with the project name, the chosen voice, the generated shot numbers you approved and each change you asked for. When the client sends "can the intro be shorter" three weeks later, Codex reads the notes, opens the same Rend project and makes the change without rebuilding anything.
Read video-notes.md. In the same Rend project, cut the first
paragraph by one sentence and revoice only that paragraph.
Re-export both versions and update video-notes.md.
You can also skip Codex for small fixes. The Studio link opens the same timeline in a browser, where you can trim a clip or fix a caption by hand.
When to use something else
If your video is pure data animation built from code, a code framework fits better. If you have a long recording and only want clips from it, a clipping tool is faster. For talking-head scripts, the bracket approach still works, but you'll want to record yourself rather than use narration over b-roll. Faceless YouTube channels with AI covers the narration-over-footage format in more depth.
FAQ
Can Codex make a video by itself?
Codex can write the script and run local commands, but it has no voice, music or hosted rendering. Connect it to a video agent such as Rend over MCP and it can produce a finished, editable video.
How do I add Rend to Codex?
Run codex mcp add rend --url https://rend.ai/api/mcp, then codex mcp login rend and approve the sign-in in your browser.
Can I use my own voice for the narration?
Yes. Upload a recording of the script to cut on its transcript, or have Rend clone your voice from a recording with your consent.
Can I change the video after it's exported?
Yes. The project keeps the timeline, so you or Codex can change a line, a shot or a caption and export again. Earlier exports stay available.
What does it cost?
Editing is free on Rend; you pay when Rend renders or generates something, like narration, b-roll or the export. See Rend pricing and the tools Rend gives your agent.
Turn one script into a video
Connect Codex with two commands and point it at a script you already have: create a free Rend account.