Back to Projects
Fresta
Media pipelineSolo buildfresta.pracandy.com

Your next Short is already sitting in footage you’ve recorded.

Fresta takes a long recording or a stream VOD and returns finished vertical Shorts: the clip chosen, the script written, the narration spoken in a voice I cloned, captions timed word by word, music underneath, and the whole thing scheduled to a channel. One upload in, a week of posts out.

Long to vertical
A recording or stream VOD becomes a 1080x1920 Short
One cloned voice
The same narrator across every clip, not a stock voice
Word by word
Captions timed to the syllable, not the sentence
Straight to YouTube
Multi-channel OAuth, upload and scheduling
The idea

Hours of footage, and nothing posted

Anyone who records long form is sitting on a backlog. A two hour stream has a dozen good thirty second moments in it, and every one of them stays buried because cutting, captioning and uploading each one is an evening’s work.

Fresta exists to close that gap. Not an editor that makes the work faster, but a pipeline that does the work and hands back something postable.

Architecture

A TypeScript front end sitting on Python workers

The app is Next.js 16 on the App Router with React 19, TypeScript, Tailwind and Radix for the interface, and Motion for the transitions. That half owns projects, settings, previews and everything the user touches.

The heavy half is Python. Source ingest, clipping, scene generation, transcription and assembly run as workers so a render never blocks a request. Jobs move through BullMQ on Redis, state lives in PostgreSQL through Prisma, and the front end polls progress rather than holding a connection open for the length of a render.

Splitting it that way meant I could keep the parts that are genuinely good in each language: typed product code on one side, the mature media and ML tooling on the other.

Voice

One cloned voice, instead of a different stock narrator every time

Stock text to speech is the fastest way to make a video sound like every other faceless channel. So the narration runs on a voice cloned from a single reference sample, which gives the output one consistent identity across every clip instead of a different rented voice each time.

Around it sits an engine layer: six text to speech backends behind one interface, so a project can fall back to another engine when one is unavailable, and so I can compare output without rewriting the pipeline. Voices preview before a render, and any single scene can be re-voiced without regenerating the whole video.

Captions

Timed to the word, because sentences read badly

Captions are the difference between a Short people watch and a Short people scroll past, and sentence level subtitles always feel a beat behind. Fresta transcribes the narration with Whisper and keeps the word level timings, then groups them into the short bursts that actually read well on a phone.

Those groups are rendered as animated captions rather than burnt-in text from a template, so the styling is a property of the composition and not something I have to redo per video.

Rendering

The video is a React component

The final frame is composed in Remotion, which means every element on screen is a React component driven by the current frame: captions, the moving watermark, the background treatment, the 1080x1920 crop.

The practical win is the preview. The same composition that renders on the server runs in the browser through Remotion’s player, so what you scrub through is the real thing rather than an approximation. FFmpeg handles the muxing underneath, audio ducking included, so narration sits above the music bed instead of fighting it.

Reliability

The dedup guard, and other unglamorous necessities

The failure mode that actually hurts an automated channel is not a crash, it is quietly posting the same moment twice. A dedup guard tracks what has already been cut and published, so a source cannot be reused and a clip cannot go out a second time.

Renders fail for boring reasons too, a missing font, a codec, a model that will not load, so there is a preflight check that validates the environment before a job starts rather than discovering it twenty minutes into a render.

Publishing

Finished is when it is on the channel

A rendered file on a disk is not a published Short. Fresta holds OAuth for multiple YouTube channels, uploads with the title, description and privacy setting attached, and schedules the post so a week of clips goes out on a cadence instead of all at once.

Performance comes back the other way, so the channel’s own numbers inform what gets cut next.

Where it is now

Fresta runs end to end: drop in footage, and it clips, writes, narrates in a cloned voice, captions word by word, scores it, renders at 1080x1920 and schedules the result to a channel. It is the project where I learned that the interesting engineering in a media tool is almost never the rendering, it is everything that keeps a long job honest while nobody is watching it.

Under the hood

Next.js 16 (App Router)React 19 + CompilerTypeScriptTailwind v4Radix UIMotionRemotion (Player + Renderer)Python workersFFmpegWhisperPostgreSQLPrismaBullMQ + RedisNextAuthYouTube Data API