Skip to content
HZBench
All articles

How-to

How to check your webcam's real resolution and frame rate in a browser

The browser asks the camera for a mode and gets the closest one it supports. The resolution it receives is real; the frame rate is what that mode reports, not a count of delivered frames.

By HZBench editorial teamPublished:

Web pages reach the camera through getUserMedia(). It only works on secure (HTTPS) pages and always asks you for permission first [1]. The page describes the picture it would like, for example 1280 × 720, and the browser picks the camera mode closest to those ideal values [1]. What you get can be lower than the box promises, and that is exactly what a webcam test should show.

Requested versus delivered

Unless a page demands a value with min, max or exact, the browser may return another resolution if the requested one is not available [1]. After the camera starts, MediaStreamTrack.getSettings() returns the current values of each setting for the running stream [2]. HZBench reads the width and height from the video the browser actually receives, and the frame rate from those settings: it is the rate of the mode the camera chose, not a count of frames that really arrived.

What you seeWhat it usually means
Lower resolution than advertisedThe camera offers that mode only at a lower frame rate, through another connector, or in its own app.
Choppy video in a dim roomMany webcams lengthen the exposure in low light. When one exposure takes longer than a frame interval (33 ms at 30 fps, 17 ms at 60 fps), fewer frames may arrive than the mode reports.
Different results in two browsersEach browser negotiates the mode on its own; neither is wrong.

Step by step

  1. Close other apps that may be using the camera (video calls, camera utilities).
  2. Open the webcam test and allow camera access when the browser asks.
  3. Pick the camera if you have more than one, then read the resolution and the frame rate the camera mode reports.
  4. Wave a hand in front of the camera with a lamp facing you, then in a dim room. If motion looks clearly choppier in the dark, that may indicate that the camera is lowering its real frame rate to allow a longer exposure. The test cannot confirm it: the reported number describes the mode and stays the same, and choppy motion can also come from a busy computer or a slow USB connection.
  5. Copy the report if you want to compare after changing a cable, a USB port or a setting.

Reading the result

HZBench marks 30 to 60 frames per second as a good range for calls; higher rates mainly help fast movement. If the browser gets 1280 × 720 while the camera is sold as 1080p, check the camera's own software for a resolution or anti-flicker setting, try a USB port directly on the computer instead of a hub, and test again. If video gets choppy only in dim light, try more light first; it may help more than a new camera.

Limits

  • A browser sees the stream after the camera and the system have processed it. It cannot measure sensor quality or lens sharpness directly.
  • The frame rate in this test comes from the stream settings [2] and describes the camera mode; the test does not count delivered frames, so a low-light drop shows up in the picture, not in the number.
  • Video-call apps may choose a different mode from the browser test, so use the test to compare setups rather than to predict one app exactly.
  • Camera access stays on your device in HZBench; the page reads the settings and the picture locally.

When you are done, you can withdraw the camera permission in the browser's site settings. The browser asks again the next time a page wants the camera.

Sources

  1. [1] MediaDevices: getUserMedia() method, MDN Web Docs (accessed )
  2. [2] MediaStreamTrack: getSettings() method, MDN Web Docs (accessed )

Corrections

How we write and correct articlesReport an error