RTP
An input type that allows streaming video and audio to the Smelter server over RTP. It supports both streaming over UDP and TCP (smelter works as a TCP server).
RegisterRtpInput
Parameters for an input stream from RTP source. At least one of video and audio has to be defined.
Type definitions
Properties
port
UDP port or port range for the smelter to listen to incoming streams.
- Type:
string | number
transportProtocol
UDP port or port range for the smelter to listen to incoming streams.
- Type:
"udp" | "tcp_server"
- Supported values:
udp
- UDP protocol.tcp_server
- TCP protocol where Smelter is the server side of the connection.
video
Parameters of a video included in the RTP stream.
- Type:
InputRtpVideoOptions
audio
Parameters of an audio source included in the RTP stream.
- Type:
InputRtpAudioOptions
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.InputRtpVideoOptions
Parameters of a video source included in the RTP stream.
Type definitions
Properties
decoder
UDP port or port range for the smelter to listen to incoming streams.
- Type:
"ffmpeg_h264"
Inputs.InputRtpAudioOptions
Parameters of a audio source included in the RTP 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:
string
Properties (decoder: “aac”)
audioSpecificConfig
Configuration encoded in the format described in RFC 3640.
- Type:
boolean
- Default value:
false
For detailed instructions on obtaining this value, refer to the information provided in the table below:
Format/Protocol | Location of AAC Specific Config (ASC) | Notes |
---|---|---|
FFmpeg Streaming | SDP file | Use the -sdp_file FILENAME option when streaming to a smelter to generate an SDP file containing the ASC. |
MP4 Files | Inside the esds box | The ASC is embedded as part of the esds box, not the entire box. Applies to regular MP4 and fragmented MP4s (used in HLS playlists with MP4 files). |
FLV Files / RTMP | Inside the AACAUDIODATA tag | The ASC is contained within the AACAUDIODATA tag. |
rtpMode
Specifies the RFC 3640 mode that should be used when depacketizing this stream. For more information, visit RFC specification
- Type:
"low_bitrate" | "high_bitrate"
- Default value:
"high_bitrate"