WHIP
An input type that allows streaming video and audio to the Smelter over WHIP. Smelter exposes
WHIP server on port defined by SMELTER_WHIP_WHEP_SERVER_PORT
.
To connect new input, register it with Smelter.registerInput
and establish WHIP connection to /whip/:input_id
endpoint.
RegisterWhipInput
Parameters for an input stream from WHIP source. At least one of video and audio has to be defined.
Type definitions
Properties
video
Parameters of a video included in the WHIP stream.
- Type:
InputWhipVideoOptions
audio
Parameters of an audio included in the WHIP stream.
- Type:
InputWhipAudioOptions
required
Determines if the input stream is essential for output frame production. If set to true and the stream is delayed, Smelter will postpone output frames until the stream is received.
- Type:
boolean
- Default value:
false
offsetMs
Offset in milliseconds relative to the pipeline start (start request). If unspecified, the stream synchronizes based on the delivery time of the initial frames.
- Type:
number
Inputs.InputWhipVideoOptions
Parameters of a video source included in the WHIP stream.
Type definitions
Properties
decoder
- Type:
"ffmpeg_h264" | "vulkan_video"
- Supported values:
ffmpeg_h264
- uses FFmpeg’s H.264 software decoding.vulkan_video
- uses Vulkan Video for hardware-accelerated decoding.
Inputs.InputWhipAudioOptions
Parameters of a audio source included in the WHIP stream.
Type definitions
Properties (decoder: “opus”)
forwardErrorCorrection
Specifies whether the stream uses forward error correction. It’s specific for the Opus
codec. For more information, visit RFC specification.
- Type:
boolean
- Default value:
false