Skip to content

StreamLive Input Configuration โ€‹

Updated

An Input is the connection through which StreamLive receives the source video. An input is required both when the encoder sends directly and when StreamLink relays.

Distinguishing PUSH and PULL โ€‹

Input TypeSide That Initiates the ConnectionUsage Example
RTMP_PUSH / RTMPS_PUSHEncoder or relay serviceStream to the address provided by StreamLive
RTMP_PULLStreamLiveReceive from an accessible RTMP source
SRT_PUSHSending sideTransmit to the StreamLive receiving address
SRT_PULLStreamLiveConnect to the source SRT Listener and receive
HLS_PULLStreamLiveReceive from an accessible HLS source

If the StreamLink output is an SRT Caller, the receiving side must act as the Listener. First compare the Type in the input list with the actual connection direction.

Prerequisites โ€‹

  • Check the protocol to use and the source video / audio format.
  • For PUSH input, prepare an input security group.
  • For PULL input, check the source address, network accessibility, and required authentication.

Create an RTMP Input โ€‹

  1. In the StreamLive console, select Input โ†’ Create Input.
  2. Specify the name and the RTMP_PUSH type.
  3. Attach a security group.
  4. Enter the application name and stream name of the Destination.
  5. If you use username / password authentication, also apply it in the settings on the sending side.
  6. After saving, check the generated input address.

Specify the input name using English letters / numbers / underscores within a range of 1~32 characters.

StreamLive RTMP input creation form

In the RTMP_PUSH input creation form, select a Security Group, specify the application name and stream name in Destination A, and then click Confirm. Destination B is used for the second pipeline.

Connecting the Streaming Address โ€‹

Setting on the Receiving SideValue to Enter on the Sending Side
Generated RTMP host and application nameServer URL
stream nameStream Key
Username / password authenticationAuthentication settings of the streaming program

In programs that take a full RTMP URL, such as FFmpeg, combine them according to the format of that program.

API Example โ€‹

Replace YOUR_SECURITY_GROUP_ID with the ID of the group you created. This example creates an RTMP input; connecting the channel is a separate step.

bash
tccli mdl CreateStreamLiveInput --region ap-seoul \
  --Name demo_input \
  --Type RTMP_PUSH \
  --SecurityGroupIds '["YOUR_SECURITY_GROUP_ID"]' \
  --InputSettings '[{"AppName":"demo","StreamName":"demo_stream"}]'
bash
tccli mdl DescribeStreamLiveInput --region ap-seoul --Id YOUR_INPUT_ID

In the query response, check the input type, attached security group, application name and stream name, and the generated address.

Channel Connection and Redundancy โ€‹

Connect the Input to the Channel. Check the Attached status together with the actual streaming / reception metrics.

Primary input and backup input

The A/B pipelines provided by a single Input differ from a configuration that connects multiple Inputs to a channel. Check both the input switchover policy to use and the streaming from both sources.

Verification and Ending the Test โ€‹

Start the channel and send a test signal from an allowed sending side. Check the address / key / protocol / IP / authentication and output playback.

End the test streaming and clean up the dedicated Input.

Built with VitePress ยท Deployed on Tencent EdgeOne Pages