Stream Visual
stream_visualConfigure stream visuals, background, area, and capture settings in one call to avoid repeated encoder restarts and live blips.
Instructions
Set the stream's picture with raw numbers. While live this restarts the encoder: a 2-3 s blip on every site, so set everything in one call. mode: page (the visual page, drawn from the set's levels as stream_scene sets it: the one to change live with no blip), cqt (a piano-roll spectrum), spectrum (bars), waves, scope (a stereo vector scope) or none. colors: ['#rrggbb', '#rrggbb'] for spectrum and waves. background: '#rrggbb', or image: a still behind it, or window: the title of a window to capture (a page the agent draws, the VR stage mirror). area: [x, y, w, h] of the visualizer, fractions of the frame. chat_overlay: the newest chat line in the corner. width/height/fps: 1280x720 at 30 by default. video_kbps: 4500 (Twitch takes 6000 at most). encoder: auto (NVENC when the GPU has it), nvenc or x264. capture: how a window (or the page) is captured: auto (wgc where ffmpeg has it), wgc (Windows Graphics Capture: GPU-drawn pages such as the stage's WebGL, and a covered window, come through; the page draws on the GPU) or gdi (gdigrab: a GPU-drawn window comes out blank, so the page draws in software). A Chrome or Edge window is cropped to its web content. Look at the result with stream_look.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| area | No | ||
| mode | No | ||
| image | No | ||
| width | No | ||
| colors | No | ||
| height | No | ||
| window | No | ||
| capture | No | ||
| encoder | No | ||
| font_size | No | ||
| audio_kbps | No | ||
| background | No | ||
| text_color | No | ||
| video_kbps | No | ||
| chat_overlay | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |