Bitrate
The bitrate setting affects stream quality in Moonbeam as it directly represents the amount of data transmitted per second.
Setting Bitrate
You can set the maximum bitrate for your stream using the --max-bitrate
option:
Moonbeam adjusts stream bandwidth up to 20 Mbps. It scales down based on network conditions or lower resolution/FPS needs.
Automatic Calculation
If you don’t specify a max bitrate, Moonbeam will automatically calculate an appropriate bitrate based on the resolution and FPS settings. This calculation takes into account:
- The maximum resolution you’ve set (or your display’s native resolution if not specified)
- The maximum FPS you’ve set (or your display’s refresh rate if not specified)
- Your current network conditions
Best Practices
-
Network Speed: Set your max bitrate to no more than 70-80% of your upload speed (on the host) and download speed (on the client) to leave headroom for other network traffic and to account for fluctuations.
-
Resolution and FPS Considerations: Higher resolutions and frame rates require higher bitrates. As a rough guide:
- 1080p60: 10-20 Mbps
- 1440p60: 20-40 Mbps
- 4K60: 40-80 Mbps
-
Game Type Considerations:
- Fast-paced games with lots of motion (e.g., FPS, racing) benefit from higher bitrates.
- Slower-paced games (e.g., strategy, RPGs) can often look good at lower bitrates.
-
Visual Quality vs. Latency: Higher bitrates generally provide better visual quality but can increase latency. Find a balance that works for your game and network.