Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Shyamalp16/CloudGaming/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thehost.video section controls all video encoding parameters including frame rate, bitrate adaptation, hardware encoder settings (NVENC/QSV/AMF), and HDR tone mapping.
Frame Rate and Timing
Target frames per second for capture and encoding.Higher values provide smoother motion but require more bandwidth and processing power.Recommended values:
30- Low bandwidth/performance60- Standard gaming120- High refresh rate gaming
Frame pacing interval in microseconds. Should match
1000000 / fps.For 60 FPS: 16666 μs (1000000 / 60)For 120 FPS: 8333 μs (1000000 / 120)Enable GPU encode timing diagnostics. Logs encode duration for performance analysis.
Bitrate Configuration
Initial encoding bitrate in bits per second (bps).Default:
8000000 (8 Mbps)This is the starting point for adaptive bitrate control.Minimum allowed bitrate in bps for adaptive bitrate controller.Default:
8000000 (8 Mbps)Maximum allowed bitrate in bps for adaptive bitrate controller.Default:
12000000 (12 Mbps)Higher values improve quality but require more bandwidth.Bitrate Controller
The adaptive bitrate controller adjusts encoding bitrate based on network conditions.Bitrate increase step size in bps when network conditions improve.Default:
1000000 (1 Mbps)Cooldown period in milliseconds before allowing bitrate increases after a decrease.Default:
1000 msNumber of consecutive clean network samples required before increasing bitrate.Default:
3Minimum interval in milliseconds between bitrate increases.Default:
1000 msHardware Encoder Settings (NVENC)
NVENC encoding preset. Lower numbers = faster encoding, higher latency. Higher numbers = slower encoding, better quality.Options:
p1, p2, p3, p4, p5, p6, p7Default: p2Recommended:p1orp2- Low latency gaming (fastest)p4- Balanced quality/performancep6orp7- High quality (slowest)
Rate control mode for the encoder.Options:
cbr- Constant bitrate (best for streaming)vbr- Variable bitrate (better quality, less predictable)
cbrNumber of B-frames (bidirectional prediction frames).Default:
0Rate control lookahead in frames. Higher values improve quality but add latency.Default:
0Set to 0 for lowest latency applications.Asynchronous encoding queue depth.Default:
2Controls how many frames can be queued for encoding simultaneously.Number of encode surfaces (GPU memory buffers).Default:
3Must be >= asyncDepth + 1.Color and Range
YUV color range configuration.Default:
false (limited/TV range 16-235)false- Limited range (16-235), standard for videotrue- Full range (0-255), PC RGB range
HDR Tone Mapping
When capturing HDR content for SDR displays, tone mapping converts the HDR signal.Enable HDR to SDR tone mapping.Default:
falseEnable this when capturing HDR content that will be viewed on SDR displays.Tone mapping algorithm.Options:
reinhard, hable, linearDefault: reinhardreinhard- Classic Reinhard operator, preserves bright detailshable- Filmic tone mapping (Uncharted 2)linear- Simple linear scaling
Exposure compensation value.Default:
0.0Adjust brightness: negative values darken, positive values brighten.Range: typically -2.0 to 2.0Gamma correction value.Default:
2.2 (standard sRGB gamma)Adjusts mid-tone brightness. Standard value is 2.2 for sRGB displays.Color saturation multiplier.Default:
1.0< 1.0- Desaturate (grayscale at 0.0)1.0- Original saturation> 1.0- Increase saturation
Picture Loss Indication (PLI)
PLI requests trigger full keyframes when the client detects corruption.Ignore PLI (Picture Loss Indication) requests from client.Default:
falseMinimum interval in milliseconds between processing PLI requests.Default:
3000 ms (3 seconds)Prevents excessive keyframe generation from repeated PLI requests.Minimum packet loss ratio (0.0-1.0) required to honor a PLI request.Default:
0.15 (15% loss)Filters out spurious PLI requests when packet loss is low.Advanced Settings
Hardware frame pool size for GPU memory management.Default:
3Number of hardware frames pre-allocated for encoding pipeline.