Automated AI Multimedia Pipeline
A video engine that turns a text prompt into an edited short-form video for TikTok or YouTube. It generates the images, the narration (text-to-speech), the music and the subtitles, then puts them together into a finished video. The project covers the editing interface, the generation server and the data model.
The problem
A short video made by hand is several separate jobs: writing a script, creating visuals, recording a voice-over, choosing music, timing subtitles, and editing it all together. Generating those pieces with AI models removes much of the manual work, but brings two problems of its own.
The first is time. One video needs several image generations, audio and a final render, so a job takes minutes, not the second or two a normal web request takes. A page that simply waits gives the user no idea what is happening or whether something failed.
The second is control. Generated output isn't always right the first time. A wrong image or badly timed subtitle can spoil an otherwise good video, so the person making it needs a way to fix individual pieces before the final render.
Approach
Live progress for long-running jobs. Instead of a request that waits for the whole video, a WebSocket server built on Bun keeps a two-way connection open with the browser. It streams progress from each stage (image generation, audio encoding and video rendering), so the user can see where the job is at every point.
Editing interface in Svelte. The front end handles multi-track customization of the video, including narration styling and subtitle sync. That is a lot of state to keep consistent while the user edits and the server reports progress at the same time.
Control over each generated piece. The user can override image prompts, adjust the voice and change subtitle timing. The models do the first pass, and the person keeps the final say.
Data in PostgreSQL. A Postgres schema stores user configurations, asset metadata and generation history.
Where it is now
The engine is live at video.naregt.cloud.