You’ve just recorded your screen. Maybe it’s a tutorial or maybe it’s a product demo. You open it up and… it’s just sitting there. Static. Boring. Like watching paint dry. You could use something like Screen Studio. But what if you’re not thrilled about paying $29 each month for automatic zooms and some other features you can live without?

I didn’t want to pay!!!

So I built my own take on the idea.

No fancy polish or automatic zooms, just simple manual control. Fully local for your privacy, open source, and completely free for commercial use (Honestly, who would have even paid for this anyway?🙂). It’s a small project, but it does the job and I learned a lot in the process.

The Big Idea: Three Worlds

Making stuff look smooth on a screen means keeping track of three “worlds” at once.

Diagram of the three worlds: raw real video, the screen or canvas, and the virtual camera with pan, zoom, scale, and motion blur

World 1: The Real Video (AKA “The Truth”)

This is the raw recording. Unmoving. Literal. A fixed rectangle of pixels that never changes position on its own.

World 2: The Screen You’re Looking At (AKA “The Stage”)

This is the surface where the video appears. It can be resized or moved. It is the stage where everything performs.

World 3: The Virtual Camera (AKA “The Mask”)

A pretend camera that frames the video however it wants. Zooming feels like movement, but nothing in the actual video moves. The camera is the only thing doing the work.

It’s the same trick movies use, except instead of a camera operator named Dave with a gimbal, it’s a bunch of math updating 60 times per second.

The Smooth Part: Cameras That Move Like Humans

Instead of snapping to a new position, the camera moves by closing a fixed percentage of the distance each frame. It starts fast, slows as it approaches the target, and eases into place like a real operator. This simple rule creates movement that feels intentional rather than mechanical.

The Secret: Being Lazy (In a Good Way)

The camera doesn’t immediately snap to its target. Every 60th of a second, it looks at where it is and where it should be, then moves about x% of the gap.

Next frame? Another x% of what’s left. And another. And another.

It’s called “exponential easing” if you want to impress the huzz 👯 at parties (or get kicked out). Meme: 'They don't know I know what exponential easing is'

Zoom: Keeping Your Eye on the Prize

Zooming seems simple until the thing you want flies out of the frame. Scaling always happens relative to an origin. Pick the wrong origin and everything slides around.

The solution is to calculate exactly how much the camera must shift to keep the focus point locked while scaling.

Do this 60 times per second with some easing, and you have a zoom that feels like butter.

Motion Blur: The Small Details that Matter

Real cameras blur when moving quickly because the sensor gathers light over time. Your brain expects that blur. Remove it, and movement looks too “digital.”

So I added a tiny bit of blur when the virtual camera moves fast. Not enough to consciously notice, but enough to make it natural.

The Crop Situation: Windows Inside Windows Inside Computers

Users can crop their video and select a portion to show. Now you’re dealing with coordinate systems inside coordinate systems. Cropping happens in video space, zooming happens in stage space. They don’t naturally speak the same language.

What you don’t want happening is something that should be out of the crop frame showing up in the camera’s view during the pan and zoom effect.

I had to build some math to figure out exactly where a cropped region sits while the camera moves and scales with the help of a mask. We got it right, but it took a while.

Why PixiJS?

We built this using a library called PixiJS. Why? Because it’s specifically designed for this kind of thing.

With all this in place, the preview looked incredible. Smooth zooms. Clean pans. Beautiful motion blur. The coordinate transformations were accurate. I was convinced I had finally pulled off my budget Screen Studio alternative.

Okay cool, but how do I actually export all this beauty?

The “Genius” Plan That Wasn’t

An older woman behind the wheel of a car

Asking a computer to:

  1. Pause a video
  2. Wait for the exact frame to render
  3. Capture that frame
  4. Save it
  5. Move 1/60th of a second forward
  6. Repeat thousands of times

…was about as fast as watching a grandma buttering toast.. Technically should work, but dreadful UX.

The Reality Check

Watching my first test export crawl along like it was being rendered on a potato, I had to do something. Something that could leverage actual video encoding, GPU acceleration, and maybe a bit of multithreading or multiprocessing magic. Something that wouldn’t make users want to throw their computer out the window. Of course, there’s only so much I can do. The performance still depends on the user’s system as well.

I think I (maybe) figured it out? Stay tuned for Part 2.

❗ I write to learn, not to teach. If I get something wrong, we get to learn together. Please reach out to me 🙂.