How to control bitrate/quality
Control VDO.Ninja bitrate and video quality using URL parameters for resolution, frame rate, and room bandwidth.

Video Bitrate
For moving action and crowded venues, see Stream sports and events from a phone. It helps distinguish compression, camera blur, packet loss, and phone overheating before changing quality settings.
The bitrate controls are accessible via a URL parameter that can be added to the VIEW link.
Something like https://vdo.ninja/?view=yyyyy&bitrate=10000 lets the viewer request a 10 Mbps video bitrate. The value is in kilobits per second. The fallback is approximately 2500 kbps, while current camera setup normally selects 4000 kbps when quality is omitted. Capture mode, explicit quality, room allocation, and mobile caps affect the result; see Default resolution and bitrate by mode.
The viewer sets the bitrate generally, although you can set maximum allowed bitrates as the publisher of a stream. See the advanced settings in the wiki for more help here; there are many options available.
When in a group room, the guests will generally get a very low-quality preview of the stream. This can be changed with the &totalroombitrate parameter or via the room's director settings menu. The higher the room bitrate however, the more CPU and Network load will be placed on those in the room.
When dealing with a group scene link, you can use &bitrate as normal, or &totalbitrate. There are many other ways to control bitrates, in both rooms and push links, with these being the standard options.
Resolution
When &quality is omitted, VDO.Ninja selects an initial camera tier from the device type, available CPU cores, reported memory, and whether the guest is joining a room. The &quality parameter overrides that choice with a non-strict resolution preset: &quality=0 targets 1920x1080, &quality=1 targets 1280x720, and &quality=2 targets 640x360. The actual frame rate remains device- and browser-dependent unless a frame-rate parameter is also used.
You can manually set the video resolution via the URL, using &width=1920&height=1080, and this might be helpful when dealing with non-standard aspect-ratios.
The resolution can also be set on the viewer-side via the &scale=100 parameter. This scales down the resolution, as a percentage, based on the original camera capture resolution.
By default, VDO.Ninja will try to optimize and scale down the incoming resolution to fit the viewer's window size, but sometimes you might want to disable this. Adding &scale=100 to the view link can achieve that, as it forces 100% scale, or no scaling in other words.
VDO.Ninja may still scale the video down however, although only if the connection between the two peers is having network issues, if the sender's encoder is having issues, or if the set bitrate is too low to sustain the higher resolution.
Audio
You can improve audio quality in the same way, by increasing the &audiobitrate, but you can get better results by just disabling noise and echo cancellation instead.
&proaudio is flag that presets many audio options, which can be added to both the sender's and viewer's link to enable stereo audio with no audio processing and a very high audio bitrate set. You may need to be using headphones, especially if in a group room, if using &proaudio or if disabling the echo cancellation features.
More Details
Video bitrate for push/view linksVideo bitrate in roomsAudio Filters & BitrateFor adaptive camera profiles, extreme low-bitrate behavior, browser qualification and measured phone results, see Low-bandwidth video and connection profiles.
Last updated
Was this helpful?