Skip to main content
Audio and video settings control the quality and performance of your stream. Sunshine supports multiple hardware encoders (NVIDIA, AMD, Intel) and software encoding.

Audio Configuration

string
default:"Default audio device"
The name of the audio sink used for audio loopback.
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.
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.
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 cards
  • quicksync - Intel graphics cards
  • amdvce - AMD graphics cards
  • vaapi - 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, requires cap_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 minimum
  • 1-1000 - Specify custom value
number
default:"28"
Quantization Parameter for devices without Constant Bit Rate support.
Higher values = more compression but lower quality

Video Codec Support

number
default:"0"
Allow HEVC (H.265) video streams.Options:
  • 0 - Auto-detect based on encoder capabilities (recommended)
  • 1 - Disable HEVC
  • 2 - Enable HEVC Main profile
  • 3 - Enable HEVC Main and Main10 (HDR)
HEVC is more CPU-intensive with software encoding
number
default:"0"
Allow AV1 video streams.Options:
  • 0 - Auto-detect based on encoder capabilities (recommended)
  • 1 - Disable AV1
  • 2 - Enable AV1 Main 8-bit
  • 3 - Enable AV1 Main 8-bit and 10-bit (HDR)
AV1 is more CPU-intensive with software encoding

NVIDIA NVENC Settings

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 resolution
  • full_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

string
default:"medium"
Encoder preset.Options: veryfast, faster, fast, medium, slow, slower, veryslow
string
default:"auto"
Entropy encoding for H.264.
  • auto - Let FFmpeg decide
  • cabac - Better quality
  • cavlc - Faster decode

AMD AMF Settings

string
default:"ultralowlatency"
Encoder usage profile.
  • transcoding - Slowest, highest quality
  • webcam - Slow
  • lowlatency_high_quality - Fast
  • lowlatency - Faster
  • ultralowlatency - Fastest
string
default:"vbr_latency"
Rate control mode.
  • cqp - Constant QP
  • cbr - Constant bitrate
  • vbr_latency - Variable bitrate, latency constrained
  • vbr_peak - Variable bitrate, peak constrained
string
default:"balanced"
Quality profile.Options: speed, balanced, quality
boolean
default:"enabled"
Variance Based Adaptive Quantization for improved visual quality.

Software Encoder Settings

string
default:"superfast"
Encoder preset. Slower presets provide better compression.Options: ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow
string
default:"zerolatency"
Tuning preset.
  • film - High quality movie content
  • animation - Cartoons
  • grain - Old grainy film
  • stillimage - Slideshow content
  • fastdecode - Faster decoding
  • zerolatency - Low-latency streaming

Windows Display Configuration

The following settings apply to Windows only
string
default:"disabled"
Mandatory verification and configuration for display devices.
  • disabled - No additional configuration
  • verify_only - Verify display is active
  • ensure_active - Activate if inactive
  • ensure_primary - Activate and make primary
  • ensure_only_display - Activate and disable others
string
default:"auto"
Resolution configuration.
  • disabled - No configuration
  • auto - Use client resolution
  • manual - Use manual resolution (requires dd_manual_resolution)
Requires “Optimize game settings” enabled in Moonlight
string
default:"auto"
HDR configuration.
  • disabled - No HDR configuration
  • auto - Match client HDR state

Next Steps

Input Configuration

Configure gamepad and input devices

Network Settings

Set up ports and network access