You place the source videos in a folder and explain which clip is needed. Codex can find suitable fragments, prepare text, write editing commands, and check the finished file. It requires a program for processing, such as FFmpeg, which can cut and join videos.
First, save the originals. Create a separate edit folder for results. Then after a failed splice, you can return to the source.
What to give Codex before editing
Instead of "make it dynamic," specify the task: vertical clip about a new feature, one main idea, up to 30 seconds. Add what must remain and which fragments cannot be used.
If a person speaks on screen, both speech and image must be checked. Transcription helps find the needed phrase. Frames show what happens during it. One text alone cannot reveal if the person turned away or the needed object disappeared from the frame.
Edit a video from your own footage
An editing plan can be recorded as a regular table. Each fragment must have start and end. "Cut pauses" without exact boundaries leaves too many decisions for assembly time.
How to cut speech without losing meaning
First delete obvious failed duplicates. Then check long pauses and repeats. Do not remove all quiet sections in a row: quietly spoken words may also be subject to removal.
Check negations, numbers, and conditions especially carefully. From 'this does not work without internet' you cannot make 'this works without internet.' A shorter phrase here changes the meaning.
After splicing, listen to the end of the previous fragment and the start of the next. Was a consonant cut off? Is there a click? Does the phrase sound like the person said something else? In disputed spots, keep the original speech and mark it for manual resolution.
video-use: ready assistant for editing
The official browser-use/video-use project lists Codex among its supported agents. It uses timestamped transcripts, selected images and video-processing tools. Its instructions require Python, FFmpeg and an ElevenLabs key for speech recognition. The code is MIT licensed; ElevenLabs costs are separate. Repository video-use.
Before installation, read project description. video-use is not yet installed here. Its declared splice check cannot be considered proof of your clip's quality without viewing the result.
Prompt: Prepare video-use installation
After preparation, installation remains a separate action. First connect the key via settings or a local file excluded from Git history. Then test the tool on a short training fragment.
Verified example: make 9 seconds from 12.
The "Training Clip - Editing" archive contains its own book source: three scenes of four seconds each. Each scene shows one idea. The final version keeps the first three seconds of each scene.
| Was | Done | Succeeded |
|---|---|---|
| Scene 1: 0–4 seconds | Left 0–3 | Result: 0–3 |
| Scene 2: 4–8 seconds | Left 4–7 | Result: 3–6 |
| Scene 3: 8–12 seconds | Left 8–11 | Result: 6–9 |
Final file format: MP4, 720 × 1280, 24 frames per second. H.264 means the video compression method inside MP4. Verification reread all 216 frames, checked duration and scene transitions. The digital fingerprint of the source file matched the saved one: the original did not change.
This is a small example of trimming a finished video. It has no speech or music. The file captions.srt contains three prepared captions with timestamps. They correspond to training scenes; no speech recognition was done here. Captions are saved separately, not embedded in the image.
For Repetition:
- Unpack Archive into Separate Folder.
- Ask Codex to read the README and verify Python and required packages.
- Run the example with the command from README. Files will appear nearby
source.mp4,final.mp4andresults.json. - Open
final.mp4, then compare it with the source. Expected report: 10 successful checks out of 10.
The example uses PyAV 17.1.0 and Pillow 12.3.0. PyAV allows Python programs to work with FFmpeg libraries. Pillow draws its own training cards. Repeating on another system may require a font with Russian letters. PyAV documentation.
Before publishing, open the result fully in a regular player. For a video with speech, separately check words, names, numbers, and volume. MP4 property checks do not replace this viewing.
Sound, color, and editor work
For sound, first select a short problematic fragment. Compare speech before and after processing. Strong noise removal can make the voice unnatural. Test with headphones and regular speakers.
Color correction helps match shots. Start with brightness and natural color, then add style. If the product is in the shot, color changes may distort its appearance.
If working in DaVinci Resolve or another editor, first save a project copy. Study the available automation method for the specific version. Do not transfer FFmpeg commands into the editor interface as a ready connection. Full DaVinci workflow is not yet tested in this book.
Prompt: Prepare sound and color check.
