Audio Configuration
string
default:"Default audio device"
The name of the audio sink used for audio loopback.
- Windows
- Linux (PulseAudio)
- Linux (PipeWire)
- macOS
Use the included tool to find audio device names:Example:For devices with identical names, use the Device ID instead.
string
default:"None"
A virtual audio device that allows streaming audio while muting speakers.Virtual Audio Options:
- Steam Streaming Speakers (all platforms) - requires Steam installation
- Virtual Audio Cable (Windows/macOS)
boolean
default:"enabled"
Whether to stream audio. Disable for headless displays used as second monitors.
boolean
default:"enabled"
Install Steam Streaming Speakers driver (if Steam is installed) for surround sound and host audio muting.
Windows only
Display Selection
string
default:"Default video card"
Select the video card to use for encoding.
- Windows
- Linux (VA-API)
Use the included tool to find adapter names:Example:
string
default:"Default display"
Select the display to stream.Check Sunshine logs during startup to see detected displays and their IDs.
- Windows
- Linux/macOS
Use the
device_id value from startup logs:Video Encoder Selection
string
default:"Auto"
Force a specific encoder. Sunshine uses the first available encoder by default.Options:
nvenc- NVIDIA graphics cardsquicksync- Intel graphics cardsamdvce- AMD graphics cardsvaapi- VA-API (AMD, Intel on Linux)software- CPU encoding
string
default:"Auto"
Force a specific screen capture method.Options:
nvfbc- NVIDIA Frame Buffer Capture (Linux, fastest for NVIDIA)wlr- Wayland/wlroots compositors (Linux)kms- DRM/KMS kernel capture (Linux, requirescap_sys_admin)x11- XCB capture (FreeBSD/Linux, slowest)ddx- DirectX Desktop Duplication (Windows)wgc- Windows.Graphics.Capture (Windows, beta, not compatible with service)
Video Quality
number
default:"0"
Maximum bitrate in Kbps. Set to 0 to always use the bitrate requested by Moonlight.
number
default:"0"
Lowest effective framerate for bandwidth optimization.
0- Use half the stream’s FPS as minimum1-1000- Specify custom value
number
default:"28"
Quantization Parameter for devices without Constant Bit Rate support.
Video Codec Support
number
default:"0"
Allow HEVC (H.265) video streams.Options:
0- Auto-detect based on encoder capabilities (recommended)1- Disable HEVC2- Enable HEVC Main profile3- Enable HEVC Main and Main10 (HDR)
number
default:"0"
Allow AV1 video streams.Options:
0- Auto-detect based on encoder capabilities (recommended)1- Disable AV12- Enable AV1 Main 8-bit3- Enable AV1 Main 8-bit and 10-bit (HDR)
NVIDIA NVENC Settings
NVENC Encoder Options
NVENC Encoder Options
number
default:"1"
Performance preset (1=fastest, 7=slowest). Higher presets improve compression at the cost of latency.
string
default:"quarter_res"
Enable two-pass encoding for better bitrate distribution.
disabled- One pass (fastest)quarter_res- Two passes, first at quarter resolutionfull_res- Two passes, first at full resolution
boolean
default:"disabled"
Assign higher QP to flat regions. Recommended for low bitrate streaming.
boolean
default:"disabled"
Use CAVLC entropy coding instead of CABAC. Requires 10% more bitrate but faster software decoding.
Intel QuickSync Settings
QuickSync Encoder Options
QuickSync Encoder Options
AMD AMF Settings
AMD Encoder Options
AMD Encoder Options
string
default:"ultralowlatency"
Encoder usage profile.
transcoding- Slowest, highest qualitywebcam- Slowlowlatency_high_quality- Fastlowlatency- Fasterultralowlatency- Fastest
string
default:"vbr_latency"
Rate control mode.
cqp- Constant QPcbr- Constant bitratevbr_latency- Variable bitrate, latency constrainedvbr_peak- Variable bitrate, peak constrained
string
default:"balanced"
Quality profile.Options:
speed, balanced, qualityboolean
default:"enabled"
Variance Based Adaptive Quantization for improved visual quality.
Software Encoder Settings
Software Encoder Options
Software Encoder Options
string
default:"superfast"
Encoder preset. Slower presets provide better compression.Options:
ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslowstring
default:"zerolatency"
Tuning preset.
film- High quality movie contentanimation- Cartoonsgrain- Old grainy filmstillimage- Slideshow contentfastdecode- Faster decodingzerolatency- Low-latency streaming
Windows Display Configuration
The following settings apply to Windows only
Windows Display Options
Windows Display Options
string
default:"disabled"
Mandatory verification and configuration for display devices.
disabled- No additional configurationverify_only- Verify display is activeensure_active- Activate if inactiveensure_primary- Activate and make primaryensure_only_display- Activate and disable others
string
default:"auto"
Resolution configuration.
disabled- No configurationauto- Use client resolutionmanual- Use manual resolution (requires dd_manual_resolution)
Requires “Optimize game settings” enabled in Moonlight
string
default:"auto"
HDR configuration.
disabled- No HDR configurationauto- Match client HDR state
Next Steps
Input Configuration
Configure gamepad and input devices
Network Settings
Set up ports and network access

