Menu

1 / 5

A virtual camera operator in a browser tab: turning 16:9 into 9:16 with zero servers

DEV Community: rust·Pietro Zanella·3 days ago
#WfEycT29
#devtorust#devto#dev#face#frame
Long article (2154 words) — no AI summary yet.
Reading 0:00
15s threshold

If you cut a 9:16 picture out of a 16:9 video, at the same height, you keep about 32% of the image. Two thirds are gone. So the real question is: who chooses which third to keep?

Vertix is my answer: a virtual camera operator inside a browser tab. It takes a 16:9 video and turns it into a 9:16 video while it plays, with no server and no upload.

I worked as an audio and video technician before moving into software, and I have always loved the client side of streaming. This project started because I wanted to see how far the browser can go.

Live demo: https://pzanella.github.io/vertix/

Code: https://github.com/pzanella/vertix (Apache 2.0)

Left: centre crop. Right: Vertix (real output, Pexels sample clip).

Three rules

For this project I gave myself three rules:

Zero servers. All the logic lives in the browser tab. Once the page is loaded, it even works without a connection, with a local video file.

Real time, or almost.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.