Try your camera
See your camera through Cubetta, live, then save the video if you like. Nothing is uploaded.
Page version 2026-11-04.98
Press Start camera. Your browser asks to use the camera: choose Allow.
More settings
What do the Network options mean?
"Network" pretends the video travels over a real connection to someone on a call, so you see what they would see. Nothing leaves your computer: the page itself holds each packet back, slows it down, or throws it away, the way that kind of connection would. It works with Latency set to Zero.
The choices
- This computer (no network): no simulated network. The video goes straight from the encoder to the decoder.
- Good Wi-Fi: 3 Mbit/s, 20 ms each way, nothing lost. Video at the quality you chose fits easily.
- Mobile: 600 kbit/s, 60 ms, and 1 packet in 100 lost, like a phone on 4G with fair signal.
- Train: the speed changes every 20 seconds, 800 then 200 then 600 kbit/s, with 50 ms delay and a few losses, like a phone on a moving train.
- Changing: the speed rises and falls smoothly between 150 and 750 kbit/s every 15 seconds, with 40 ms delay. This shows how well the sender follows the network.
- Bad 3G: 300 kbit/s, 150 ms, and 3 packets in 100 lost. A hard case.
- 2G / EDGE: 80 kbit/s, 300 ms, and 5 packets in 100 lost, like an old phone network in the countryside.
- Very bad 2G: 30 kbit/s, half a second each way, and 8 packets in 100 lost. Almost nothing gets through; this is the worst case.
- Dropouts: 150 kbit/s, but every 15 seconds the connection disappears for 2 seconds, like a train going through a tunnel.
kbit/s is how much data the connection carries each second; video that needs more than that has to wait in a queue. The delay (ms) is how long each packet takes to arrive, and it also varies a little from packet to packet, the way real networks do.
Adapt to the network
When this is on, the sender behaves like a good video-call app. The receiver reports back 20 times a second what arrived. From that, the sender estimates the speed of the connection and lowers or raises the quality (the QP) to fit it. When the connection is full it skips frames instead of letting them pile up and arrive late. When packets are being lost it adds spare "parity" packets, so a lost packet can be rebuilt on arrival. And when a packet is lost anyway, the next frame continues from the last frame the receiver did get, which costs far less than sending a whole new picture. On a very slow connection (under 150 kbit/s) it also sends the picture smaller, at half or a quarter of its width and height, and the receiver scales it back up: at those speeds a smaller sharp picture looks better than a full-size blocky one. It goes back to full size when the connection allows. When it is off, the quality stays where the slider is and each loss is repaired with a whole new picture, which is how a simple sender behaves.
Reading the results
- Picture frozen: the share of time the picture on the receiving side stopped: no new picture for clearly longer than usual (the usual gap plus 0.15 s), the way video-call apps count freezes. How late the pictures arrive is in Latency. Lower is better; under a few percent feels smooth. Below it, lost packets counts the packets the network threw away and how many were rebuilt from parity packets without any visible effect.
- Network estimate: the speed the sender thinks the connection has right now. Below it are the quality it chose (QP, lower is sharper), how long packets wait in the network's queue, and how many parity packets it adds (1 in 3 means one spare packet for every three). "Sent at 320 × 180" means the picture is sent smaller to fit a very slow connection.
- Latency, camera to screen includes the network's delay and queue when a network is chosen. Quality (Y PSNR) (in dB, higher is better) drops when Adapt lowers the quality to fit a slow network. The compression ratio works the same as without a network.
To compare, run the same network with "Adapt to the network" on and then off, and watch Picture frozen.
How does it work?
The encoder and decoder each run on one CPU core in a background worker. The compression ratio compares the Cubetta stream with the same frames as raw 4:2:0 video, over the last 2 seconds and since Start. Latency counts encoding, decoding and drawing; it does not include the camera's own delay. When the encoder cannot keep up, frames are dropped rather than queued, so latency stays low. The "Auto" preset codes with Ultrafast and moves to Realtime, whose stream is about 5% smaller, while the encoder has time to spare; it moves back to Ultrafast as soon as a frame is dropped. On a slow computer, where even Ultrafast cannot keep up, it moves to Quick, which searches less (about a fifth less work for the same stream size on webcam video), and back to Ultrafast when there is room again. At 720p and up it first tries Quick Plus, a step between them: Quick with the searches it uses on webcam video, about 4% smaller than Quick and still a little faster than Ultrafast. "Network" sends the video through a simulated network (its speed, delay, jitter and lost packets) before it is decoded, so you see what the other side of a call would see; latency then includes the network. With "Adapt to the network" the sender estimates the speed from the receiver's reports (20 a second), sets the quality to fit it, holds frames back when the network is full, and after a lost packet sends a frame that continues from the newest frame the receiver had, which costs far less than a full new picture. When the network loses packets it also sends parity packets, from which the receiver rebuilds a lost packet at once. Without it, the quality stays where the slider is and every loss is repaired with a full new picture. "Picture frozen" is the share of time the picture on screen stopped (no new picture for clearly longer than usual). On a very slow network Adapt also sends the picture smaller and scales it back up. "Save .cubetta" writes everything since Start as a Cubetta video file that the Python decoder, the C decoder or this page can play; until then the coded video waits in the browser's own storage on disk, not in memory, so a long session stays light. That copy is deleted when you start again or close or reload the page, so Save before you leave (choose "Nothing" to keep no copy at all). "Play .cubetta…" also opens older .xyzv files. "Camera motion" lets the encoder predict from the last picture moved, turned and zoomed the way the whole camera moved, which helps a hand-held or panning camera. On Auto it is tried now and then and kept only while the camera moves, so a still camera loses no speed; changing it starts a new session, and it works at zero latency only. "Face priority" spends more of the bits on faces, found by a face detector a few times a second, and fewer on the background; switch it on and off while the camera runs to compare, and tick "Show face area" to see the area it favours. It looks for faces seen from the front, so a turned head keeps the last area for about a second and a half. It changes only the encoder's choices, so every Cubetta player plays the result. "Voice" sends the microphone with the video (Opus, up to 24 kbit/s, with the browser's echo cancellation and noise suppression; with a video file, the file's own sound). In a call it travels through the same network and shares its speed: 24 kbit/s on a good link, down to 6 kbit/s on 2G, with the video taking what is left. Save keeps it in the file, with each frame's capture time, so "Play .cubetta…" plays picture and voice together. "Hear yourself" plays the decoded voice the way the other side hears it; use headphones. The voice codec is libopus 1.5.2 (BSD licence, copyright Xiph.Org Foundation and contributors).