video_encoder
Convert one raw video stream into encoded access units. video_encoder accepts
raw video only and can feed rtmp_push, srt_push, or segment.
{ "name": "h264", "type": "video_encoder", "inputs": ["mix_video"], "config": { "codec": "h264", "bitrateBps": 2500000, "keyframeIntervalSec": 2 }}| Field | Default | Description |
|---|---|---|
codec | required | h264, h265, vp9, or av1. |
bitrateBps | auto | Target bitrate, capped at 50 Mbps. |
keyframeIntervalSec | 2 | GOP interval, capped at 10 seconds. |
enableBFrames | false | Enable encoder B-frames. |
Equivalent compiler-generated nodes with the same input, filters, and config
are shared across sinks. A Job may contain at most one video_encoder after
sink encoding shortcuts are expanded. RTC sinks, including WHIP, reject encoded
input and must receive raw video.