Virtual ASCII turns webcam video into ASCII art made from text characters, on Linux. It sends the result to a virtual webcam that call apps can select. It comes as a command line tool and as a native window with a tray icon, and it has Matrix, Mono, and Color looks.
How it works
The app is written in Rust and writes to the virtual webcam through v4l2loopback. Frames move through three stages. Capture reads the camera's frames, render draws the characters, and output writes them to the virtual camera. Each stage hands over only its newest frame, so a slow stage skips ahead and the picture stays current. The output uses the YUYV video format by default, with an RGB24 option for apps that can't read it.
Most of the work went into making that cheap. The renderer draws straight into the output's pooled frame and allocates nothing per frame, and the decoder only makes as many pixels as the look needs. Every change was measured with the same script, reader, and tool, on the same machine and camera.

The camera's frame size moves the CPU number by several points. On one day the camera sent frames of about 240 KB and the app used 14.68% of a core. On another day they were 460 to 490 KB and it used 18.7%, with the same build. Both days stayed under the 20% of one core that was the target, so the figure is a range of about 15 to 19%. Before the speed work it used about 50% of a core.
Highlights
- Drops frames instead of falling behindCapture, render, and output run as separate stages that each keep only the newest frame. When the renderer can't keep up, the call sees fresh frames instead of a growing delay.
- Decodes only what it needsThe camera sends JPEG frames, and the app decodes them at a fraction of full size, as small as 1/8, since the character grid doesn't need every pixel. It does this only for the looks and cell sizes where the result matched a full decode on 98% of cells.
- Survives an unplugged cameraWhen the camera disappears or stops responding, the app shows that it's reconnecting, keeps retrying, and keeps the virtual camera fed with a card in the meantime.
Built with
- Rust
- V4L2
- mozjpeg
- egui
Details
- Started
- Status
- In development
- License
- MIT
- Source
- Not public yet

