The Evolution of Chinese Open-Source LLMs and a Practical Workflow for Code-Based Video Rendering
This article evaluates the engineering capabilities of leading Chinese open-source large language models through a complex task: generating front-end code and rendering it into an MP4 video. It explains a browser-based rendering architecture, environment setup and safety precautions, and a 20-second product video workflow with frame-level synchronization checks. The results show that open-source models can already support practical code generation, tool use, and automated content production when combined with suitable development tools and engineering workflows.
1. The Current State and Core Capabilities of Open-Source LLMs
The open-source AI ecosystem has grown rapidly, with models reaching parameter scales of up to one trillion. For developers and enterprise users, the key question is how open-source models compare with closed-source models in practical capabilities.
Based on extensive testing and real-world implementation feedback, leading open-source models are now broadly comparable to closed-source models in routine text-processing tasks. However, they still face challenges in demanding engineering scenarios such as code generation, deep understanding of long documents, and complex tool use. These areas remain important technical bottlenecks for the industry.
To evaluate the engineering capabilities of current open-source models more directly, this article uses a representative complex task: asking an LLM to generate front-end code and render it directly into a video file. This tests the model’s logical reasoning, code-generation, tool-calling, and error-correction capabilities.
2. Designing an Automated Video Rendering Workflow with Web Code
Video production is often time-consuming in product marketing and content creation. Traditional editing requires manual adjustments to the timeline, often frame by frame. Asking an LLM to generate code for a professional video framework can also lead to compilation failures because of complex dependencies and runtime environments.
To reduce this complexity, an alternative approach is to have the model generate standard front-end code using HTML, CSS, and JavaScript. A headless browser can then capture the webpage frame by frame and combine the frames into an MP4 video.
This architecture has several advantages:
- The front-end technology stack is mature and widely supported.
- LLMs have access to extensive training data for HTML and CSS, which improves generation accuracy.
- Standardized DOM operations make it relatively straightforward to synchronize data animations, dynamic subtitles, and other visual elements.
- Browser-based rendering avoids the need to integrate a specialized video-generation framework directly into the model’s output.
3. Environment Setup and Safety Considerations
Implementing this workflow requires a reliable local environment. In this practice, a mainstream Chinese open-source LLM was configured as the core reasoning engine inside an AI-assisted coding tool.
3.1 Checking Core Dependencies
The coding tool can use natural-language instructions to inspect and configure the local environment. The main dependencies include the Node.js runtime, the npm package manager, and a headless browser rendering environment.
# Example: check core dependency versionsnode -vnpm -v# Confirm that the headless browser dependency is installednpm list puppeteer
3.2 Dependency Cleanup and Safety Intercepts
When installing the rendering framework and related dependencies, conflicts caused by outdated dependency fragments are common. In this workflow, the model attempted to clean up the existing node_modules directory. The coding tool then displayed a security warning indicating that a bulk deletion operation would remove more than 5,000 files and was therefore considered high risk.
Developers should not approve such operations blindly. First, inspect the file paths shown in the warning:
- If the paths clearly point to dependency caches or other files inside the project directory, the deletion can be approved for that specific operation.
- If the paths involve the system drive or files outside the project directory, the operation should be rejected immediately to avoid damaging the environment.
A well-designed approval process can preserve cleanup efficiency while reducing the risk of accidental deletion.
After the environment was initialized and checked, the model ran a built-in 10-second headless rendering test. The complete process typically finished in less than 20 seconds.
4. Practical Case: From Webpage Analysis to Frame-by-Frame Video Rendering
Once the environment was ready, the workflow was tested by creating a 20-second vertical product-launch video. The objective was to evaluate the open-source model’s tool-calling and code-generation capabilities in a complex engineering task.
4.1 Analyzing the Target and Extracting Visual Elements
The first step was to instruct the model to inspect the target product’s official website and analyze its design system and visual elements, including:
- Primary brand colors
- Logo styling
- Layout structure
- Key CSS properties
The model used a network request tool to retrieve the webpage DOM and extract relevant CSS information.
4.2 Generating the Code and Rendering Logic
Based on the extracted design elements, the model generated HTML, CSS, and JavaScript for a vertical video format such as 1080x1920.
The generated code needed to include:
- Animation keyframes
- Animated data counters or growth effects
- Narration subtitle components
- Layouts suitable for vertical video
A headless browser then drove the webpage, captured frames at a specified frame rate such as 30 fps, and processed the captured output into a video stream and final MP4 file.
4.3 Verification Standard: Frame Synchronization
Dropped frames and inconsistent rendering are among the most common problems in browser-based video generation. To validate the rendering pipeline, a three-step verification process was used.
Step A: In the headless browser, use code to freeze the page at frame 150, which corresponds to the fifth second at 30 fps, and capture a screenshot.
Step B: Run the complete video export process and generate the final MP4 file.
Step C: Use a video-processing library to extract frame 150 from the exported MP4 file.
The two images are then compared. If the visual content and animation progress are identical, the rendering pipeline is working correctly.
In testing, the code generated by the open-source model drove the rendering workflow reliably. No dropped frames were observed, and the two verification images were fully aligned. This provided clear evidence that the webpage-to-video rendering pipeline was stable.
5. Conclusion and Outlook
This practice shows that current Chinese open-source LLMs have reached a strong level of practical usability in code generation, tool calling, and following complex engineering instructions.
Although they may still show minor differences from some leading closed-source models when handling extremely complex logic, open-source models can already support demanding automated content-generation tasks when combined with AI-assisted coding tools and suitable engineering abstractions.
As computing resources and model algorithms continue to improve, developers can use general cloud platforms such as Baidu AI Cloud to build more scalable code-generation and rendering pipelines. Relevant infrastructure may include high-performance GPU container platforms, large-scale object storage, and logging and alerting services.
These capabilities can reduce development costs and help advance AI-driven content production toward more automated and scalable workflows.
