One video brought 1,000+ orders: I used Codex to build an automated editing process for delivery videos

AI editing tools are becoming a new variable in content production. Recently, some AI editing products have received attention, which essentially illustrat

Virtual Card

AI editing tools are becoming a new variable in content production. Recently, some AI editing products have received attention, which essentially illustrates one thing: the editing process that relied heavily on manual work in the past is being broken down into a set of processes that can be standardized and automated.

618 years ago, in order to improve the production capacity of delivery videos, I used Codex to build an automated editing workflow.

After running, I originally cut up to 6 videos a day, but now I can stably cut around 30 videos. The best performing one brought nearly 1,000 orders.

One video brought 1,000+ orders: I used Codex to build an automated editing process for delivery videos

During 618, about one-third of our running materials came from this process. It does not replace creativity, nor is it a “universal tool” for generating high-quality videos with one click, but it does increase production capacity in delivery scenarios that require high-frequency testing.

In this article, I have sorted out the ideas, key steps and pitfalls of building this workflow from 0 to 1.

Background: Why should we build an automated editing process for delivery videos?

The core of this process is not to let AI create from scratch, but to let it reproduce a video structure that has been verified.

For example, if you come across a popular video selling goods, you think its beginning, camera rhythm and copywriting logic are good, and you want to make another one using your own product materials. The traditional method is usually to open the clip, analyze the reference video frame by frame, and then go to the material library to find the scene, match the subtitles, and check the rhythm. It is common for a video to last two to three hours.

In this process, you only need to prepare the reference video and material library, and Codex will do the rest:

  • Identify the shot switching point of the reference video;
  • Unpack the structure and duration of each shot;
  • Match appropriate images from the material library;
  • Generate dubbing and subtitles;
  • Output preview video and a draft of the cut that can be edited. virtual card

After the process is familiar, a single video will take about 20-30 minutes from preparation to sample production; if the material library is complete enough, it can be compressed to about 5 minutes at the fastest. Of course, final review and fine-tuning is still necessary.

It is more suitable for the following types of content:

  • E-commerce and advertising materials, such as Douyin Qianchuan and hard advertising videos;
  • Videos with no one appearing, such as books, daily necessities, etc.;
  • Material splicing type mixed editing content or Vlog.

The third type can also be done, but the effect is usually average. The reason is simple: Codex is currently able to understand shot structure and basic visual characteristics, but its sense of complex emotions, narrative turns and subtle rhythms is still not as good as that of mature editors.

So my positioning for this workflow is very clear:It is an automated production tool, not a high-quality creation tool.

My own Skill contains some internal content, which is inconvenient to be disclosed directly. However, the following set of processes and key prompts are enough for you to create a usable version. You can also submit this article directly to Codex and let it help you organize it into your own Skill.

Pain point: Why is manual disassembly and editing difficult to scale?

When creating content or e-commerce, one of the fastest ways to get traffic is to research popular products that have been verified by the market.

The “imitation” mentioned here is not to move, but to dismantle its structure: how to capture people in the first few seconds, how to cut the camera, how to lay out the selling points, how to advance the copy, where to emphasize, and where to pause.

In the past, this could only be done manually. Now a lot of that duplication can be handed over to AI. virtual card

One video brought 1,000+ orders: I used Codex to build an automated editing process for delivery videos

My own working method is: first find suitable popular reference videos, and then prepare product materials. Codex is responsible for completing the disassembly, matching and preliminary synthesis, I only do the review and final refinement.

Before this process, a maximum of 6 videos of the same type could be produced in a day; now, around 30 videos can be produced, and the efficiency has increased by at least 5 times. Even so, we will still retain some manually edited videos to maintain content caps and test new creative directions.

Current situation: Tools and project structure to be prepared before construction

Before building this process, two parts must be prepared: the tool environment and the project folder.

1. Tool environment

The entire process is based on Codex, and the following tools need to be prepared:

  • Codex;
  • FFmpeg;
  • Python 3.8 and above;
  • Dubbing tools;
  • Screenshot Professional Edition.

Among them, FFmpeg is used to handle video splitting, synthesis and format conversion; Python is used to run automated scripts; Cutting Professional Edition is used to open and continue editing the final generated draft.

Dubbing tools can be selected as needed. When I was making delivery videos, the Doubao voice model was relatively stable according to actual measurements; if there is a need for voice cloning, open source solutions such as VoxCPM can also be used.

You can send the following paragraph to Codex and check the environment first:

Please help me check the environment required for automated video editing:

1. Check whether FFmpeg is installed; if not, please tell me how to install it.
2. Check whether the Python version is >= 3.8; if not, please tell me how to upgrade.
3. Check whether the professional version of Cutout has been installed; if not, please provide the official download entrance.
4. Check and install Python dependency packages: opencv-python, numpy, pillow.

Once the inspection is complete, please let me know:
- Which environments are ready;
- Which ones need to be processed manually?
- Suggestions on how to proceed next.

The cost of dubbing needs to be calculated separately. Based on my current usage, the cost of dubbing for a one-minute delivery video is about 4-8 cents.

2. Project folder

The clearer the project structure, the less likely it is to make mistakes later. I usually organize it like this:

Project folder/
├─ assets/ # material library
├─ work/ # Workspace, create an independent date folder for each clip
├─ final/ # final product
└─ AGENTS.md # Project rules and acceptance criteria
One video brought 1,000+ orders: I used Codex to build an automated editing process for delivery videos

assets/Used to store all original materials. It is recommended to classify by products, selling points, scenes, characters, shooting methods and other dimensions. For example, the delivery materials can be further divided into AI-generated materials, real-life photos, product displays, usage scenarios, etc.

Spending a little more time sorting out the material library in the early stage will save a lot of rework later. The more complete the material itself, the higher the stability of automatic matching.

work/is the workspace for each task. Every time you make a video, create a separate folder, for example2026-07-05, put the reference video, intermediate files, voice, subtitles and drafts in it.

AGENTS.mdis equivalent to the project specification, used to tell Codex: what the project is going to do, what the output specifications are, and what conditions are considered qualified. This document is very important. The clearer it is written, the closer the results will be to your expectations.

Solution: Four steps to automate the editing process

The entire workflow can be divided into four steps:

  1. Disassembly reference video;
  2. Match and replace materials;
  3. Generate dubbing;
  4. Output the sample and cutout draft.

Step One: Disassembly Reference Video

The goal of this step is to split the reference video into independent shots and extract the key frames, duration and copy of each shot.

First find a reference video. It can be an external hot product, or it can be a video that you have verified and has good data. Download and put inwork/Folder and name it with a name that is easy to identify.

One video brought 1,000+ orders: I used Codex to build an automated editing process for delivery videos

Then send the following prompt word to Codex:

I need to break down a reference video.

Reference video location: @ (enter the file name, Codex will automatically search)

Please complete the following tasks:
1. Use FFmpeg to identify the lens switching point of the video, which can be combined with inter-frame difference analysis;
2. Extract key frames for each shot and save them as pictures;
3. Extract the video audio track and save it separately;
4. Generate recipe.json and record the start time, end time, duration and key frame path of each shot;
5. If there is copywriting in the video, please generate dubbing text based on the audio and segment it by shot;
6. Proofread the copy to avoid obvious typos, missing words and recognition errors.

Please save the file as requested by AGENTS.md. Let me know when you're done:
- How many lenses have been recognized in total;
- Duration of each shot;
- If there is any suspected wrong segmentation position, please wait for my confirmation.

recipe.jsonis the core document for the subsequent process. It records the structure of the reference video, and subsequent material matching, dubbing generation and draft production will be based on it.

After the disassembly is completed, it is recommended that you perform a manual inspection first. Pay attention to whether the shot is cut incorrectly: for example, a complete picture is split into two parts, or the two shots are not separated. After discovering the problem, just let Codex adjust it.

Step 2: Filter and match materials

This step is the most critical part of the entire process and the most valuable part of automation.

Traditional editing requires going through the material library shot by shot, and then dragging the appropriate scenes to the timeline. When there are a lot of materials, it is not only time-consuming, but also easy to miss better options.

In the automated process, as long as you tell Codex the location of the material library, it can first extract the key frames of the material, and then filter relatively matching materials for the reference lens based on characteristics such as color, brightness, composition, and scene. virtual card

You can prompt like this:

I need to match and replace materials from the material library.

Project information:
- recipe.json path: @ (recipe.json generated in the previous step)
- Material library path: assets/
- Output path: work/ (this task folder)

Match requirements:
1. Read the key frames of each shot in recipe.json;
2. Traverse the material library and extract key frames for each material;
3. Based on color, brightness, composition and scene characteristics, recommend the most matching material for each shot and give a confidence score;
4. Avoid using the same type of material in three consecutive shots;
5. Avoid obvious duplication of rooms, characters or compositions in adjacent shots;
6. Generate fragment_plan.json and matches.json;
7. Copy the selected materials to corresponding folders such as material/fragment01/, fragment02/, etc.

Important principles:
If the match confidence for a shot is less than 0.6, please mark it as "missing material" and don't try to shoehorn it in with irrelevant material.

Once you're done, summarize the matches and list the shots that required manual additions.

One principle must be adhered to here:It is better to leave it blank than to force it.

One video brought 1,000+ orders: I used Codex to build an automated editing process for delivery videos

My early version would automatically lower the matching standard in order to ensure that every shot has a picture. The final result is ugly: some shots don’t match the context at all. The video obviously works, but it looks very “fake”.

Later, I changed it to low confidence and directly marked “lack of material”. Although there will be a little more work to manually supplement the material, the quality of the finished film will be significantly improved.

One more thing to note: after matching is completed, the materials should be “copied” to the project folder instead of “moved”. Once the original material library is destroyed, it is easy to cause problems later.

Step 3: Generate dubbing

After the material matching is completed, you can start dubbing.

When disassembling the reference video, we already had Codex extract the copy. However, the recognition accuracy of OCR and ASR cannot be 100%, so the copy must be manually checked before generating dubbing.

After confirming that everything is correct, you can use the following prompt words:

I need to generate a voiceover for a video.

Dubbing text: @(your copywriting.txt)

Requirements:
1. Call Doubao TTS interface to generate independent voice files for each shot;
2. Read the actual duration of each voice segment;
3. If the dubbing duration is inconsistent with the reference shot duration, record the duration difference;
4. Splice all the voice clips into a complete dubbing file: final_voice.mp3;
5. Update recipe.json and write the real dubbing duration.

When you're done, please let me know:
- The actual duration of each dubbing segment;
- Shots that differ greatly from the reference duration;
- Are there any problems with speaking speed, abrupt pauses or abnormal pronunciation?

The dubbing duration shall be subject to the actual generated results.

For example: the length of a shot in the reference video is 3 seconds, but the generated dubbing takes 5 seconds to read, then the final video should extend the shot to 5 seconds to ensure that the sound and the picture are naturally aligned. Don’t press your voice too fast to force the time limit, otherwise the viewing experience will usually be poor.

One video brought 1,000+ orders: I used Codex to build an automated editing process for delivery videos

Step 4: Generate proofs and cutting drafts

The last step is to combine the material, dubbing and subtitles into a preview video and generate an editable draft.

This step is relatively complicated because the editing draft format is relatively strict. As long as one of the material paths, timelines, and various IDs is wrong, problems such as inability to open, material loss, or draft abnormalities may occur.

I have stepped into several typical pitfalls myself:

  • The content ID, metadata ID, and root index ID need to maintain the correct association and cannot conflict with existing drafts;
  • The material path referenced by the draft usually needs to use an absolute path;
  • The material file must actually exist. The draft may become invalid after the file is moved;
  • The draft formats of different cut versions may be different. It is recommended to take a sample for compatibility verification first.

You can use the following prompt words directly:

I need to generate the final preview video and cut draft.

Enter information:
- recipe.json: work/recipe.json
- matches.json: work/matches.json
- Material path: work/material/
- Dubbing file (optional): work/voice/final_voice.mp3
- Subtitle text (optional): work/script.txt

Output content:
1. Preview video: work/remix.mp4
2. Subtitle file: work/captions.srt
3. Cutting draft: work/jianying_draft/

Requirements:
1. Splice the materials in the order of recipe.json and matches.json;
2. If there is dubbing, priority will be given to the actual duration of the dubbing; if there is no dubbing, the shot duration of the reference video will be used;
3. Generate .srt format subtitle file;
4. Generate a draft that can be opened by clipping;
5. Copy all materials to the project folder first to avoid invalidating the draft due to changes in the original material path;
6. Once the draft is generated, please remind me to check the footage, subtitles, dubbing, and timeline.

Once completed, please describe:
- Check whether the preview video is generated successfully;
-Draft file location;
- Whether there are missing materials, duration conflicts or subtitle anomalies.

The first generation is usually slower, taking about ten minutes. After the generation is completed, open the clip and check the following contents:

  • Whether the draft can be opened normally;
  • Whether the material is displayed normally;
  • Whether the timeline sequence is correct;
  • Whether the subtitles are misplaced, blocked or have typos;
  • Whether dubbing and pictures are synchronized.
One video brought 1,000+ orders: I used Codex to build an automated editing process for delivery videos

If there is a problem, go back to the previous steps to troubleshoot: there is a problem with the material matching, the dubbing duration is wrong, or the editing draft structure is wrong. Don’t overturn the entire process right from the start, it’s usually faster to position it link by link.

Continuous optimization: Precipitating processes into reusable skills

Just running through it once does not mean that the process is stable.

From reference video disassembly, material matching, dubbing generation to draft output, the entire process usually takes 20-30 minutes to run for the first time. Once the material library is complete enough and the rules are clear enough, the speed will become faster and faster.

More importantly, after running through, Codex must encapsulate the process into a Skill.

This way, next time you don’t need to repeatedly enter a long list of prompt words, you just need to tell it where the reference video is and which material library to use, and the entire workflow can be called.

There will definitely be problems when you first start using the Skill, this is normal. What you have to do is not to expect it to be perfect the first time, but to constantly discover problems in actual use, let Codex correct them, and then write the experience back to Skill.

After several rounds of iterations, the process will become more and more stable. virtual card

The way I use it now is basically: call the automatic editing Skill, tell it to refer to the video position, check the generated results after a while, and then go into the editing for final manual review.

This last step is manual refinement. I usually deal with BGM, sound effects, key characters and a small amount of rhythm adjustment. Codex can also do part of it, but in terms of picture mood, rhythm coordination and subtle aesthetic judgment, artificial intelligence is still more reliable.

If you spend an extra 10 minutes on this step for each video, the overall quality can often be improved to a higher level. Once the finished video is sent out, users usually won’t think it is an “AI video.”

The value of automation is not to completely eliminate manual labor, but to liberate people from repetitive labor and leave time for topic selection, materials, creativity and final judgment.

This is the real change brought about by this workflow.

Virtual Card

Original article by Virtual Card Reviews & Cross-Border Payment Guides. If republishing, credit the source: https://visaspay.com/en/one-video-brought-1-000-orders-i-used-codex-to-build-an-automated-editing-p/

Like (0)
Virtual Card Reviews & Cross-Border Payment GuidesVirtual Card Reviews & Cross-Border Payment Guides

Related Articles