tencent cloud

Feedback

Adding Inputs and Outputs

Last updated: 2023-12-23 17:17:10
    
    
    
    On the Flow management page, select a flow in the flow list to add inputs and outputs.

    Adding an Input

    Click Add input and enter the following information:
    Input name: Enter a name that can help you easily distinguish the input from others.
    Input region: Select the input region.
    Protocol type: Select the input protocol. The protocols supported include RTMP, RTMP_PULL, SRT, and RTP. The other input settings vary with the input protocol you select.
    Latency setting: Set the server-side latency. Currently, only the SRT protocol supports latency configuration.
    Mode: If the input protocol is SRT, you choose either the listener or caller mode.
    

    1. RTMP

    If you select RTMP as the input protocol, you need to push the stream to an address generated by StreamLink.
    Failover: If you enable failover, StreamLink will generate two input addresses. You can push streams to both addresses. The stream that arrives first will be used as the primary source. If the primary source is down, StreamLink will automatically switch to the backup stream.
    CIDR IP allowlist: The IP allowlist, which specifies the IP addresses (example: 203.3.3.3/28) that are allowed to push streams. This makes for improved security. Separate multiple addresses with semicolons, as in 203.3.3.3/28;202.3.3.3/28.
    

    2. RTMP_PULL

    If you select RTMP_PULL as the input protocol, StreamLink will pull streams from the address you specify.
    Source address: The RTMP URL, such as rtmp://example.com/live.
    Flow key: The RTMP stream key, such as e18c3c4dd05aef020946e6afbf9e04ef.
    Failover: Currently, failover is not yet supported for this protocol type. It will be made available in the future.
    

    3. SRT Listener

    If you use this as the input protocol:
    Mode: Select Listener. In this mode, you need to use the SRT caller mode to request to send your stream to the StreamLink input address. You can view the input address in the flow list.
    Latency setting: The server-side SRT latency. If the push end is in the same country as your StreamLink AZ, we recommend you set this to 120 ms. If the push end is not in the same country as your StreamLink AZ, we recommend you set this to 200 ms. If the push end is not in the same continent as your StreamLink AZ, we recommend you set this to 1,000 ms. You can determine the value of this parameter based on the IP address assigned.
    Decryption settings: You can toggle this on to use the encryption feature of SRT for improved security. Enter the key and key length. You need to configure the same parameters at the push end, or you will fail to push the stream.
    - Decryption key: The encryption/decryption key. You need to configure the same key at the push end.
    - Key length: The key length. You need to specify the same key length at the push end.
    Failover: Currently, failover is not yet supported for this protocol type. It will be made available in the future.
    CIDR IP allowlist: The IP allowlist, which specifies the IP addresses (example: 203.3.3.3/28) that are allowed to push streams. This makes for improved security. Separate multiple addresses with semicolons, as in 203.3.3.3/28;202.3.3.3/28.
    

    4. SRT Caller

    If you use this as the input protocol:
    Mode: Select Caller. In this mode, StreamLink will request the source stream from the address you provide using the caller mode.
    Input IP address: The IP address of the source stream. You can also enter a domain.
    Source port: The port number of the source stream.
    Latency setting: The server-side SRT latency. If the source address is in the same country as your StreamLink AZ, we recommend you set this to 120 ms. If the source address is not in the same country as your StreamLink AZ, we recommend you set this to 200 ms. If the source address is not in the same continent as your StreamLink AZ, we recommend you set this to 1,000 ms. You can determine the value of this parameter based on the IP address assigned.
    Decryption settings: If encryption is enabled for the source stream, you need to toggle this on and enter the decryption key and key length; otherwise, StreamLink will fail to pull the stream.
    Decryption key: The decryption key. This is required if encryption is enabled for the source stream.
    Key length: The key length, which must be the same as that configured for the source stream.
    Failover: Currently, failover is not yet supported for this protocol type. It will be made available in the future.
    

    5. RTP

    If you select RTP as the input protocol, you need to push the stream to an address generated by StreamLink.
    Failover: Currently, failover is not yet supported for this protocol type. It will be made available in the future.
    CIDR IP allowlist: The IP allowlist, which specifies the IP addresses (example: 203.3.3.3/28) that are allowed to push streams. This makes for improved security. Separate multiple addresses with semicolons, as in 203.3.3.3/28;202.3.3.3/28.
    
    
    

    Adding an Output

    Click Add output and enter the following information:
    Output name: Enter a name that can help you easily distinguish the output from others.
    Output region: Select the region to push your stream to.
    Protocol type: Select the output protocol type. The other output settings vary with the protocol you choose.
    Input Protocols
    Supported Output Protocols
    RTMP, RTMP_PULL
    RTMP, RTMP_PUSH, RTMP_PULL, SRT
    SRT
    SRT, RTMP_PUSH
    RTP
    RTP
    RTSP
    RTSP

    1. RTMP_PUSH

    If you select this protocol, the stream will be relayed to the address you specify.
    Destination URL: The RTMP URL, such as rtmp://example.com/live.
    Flow key: The RTMP stream key, such as e18c3c4dd05aef020946e6afbf9e04ef.
    

    2. RTMP_PULL

    If you need to play your stream from an output, select this protocol. After creating an RTMP_PULL output, you can view the playback URL in the output list.
    CIDR IP allowlist: The IP allowlist, which specifies the IP addresses (example: 203.3.3.3/28) that are allowed to push streams. This makes for improved security. Separate multiple addresses with semicolons, as in 203.3.3.3/28;202.3.3.3/28.
    

    3. SRT Listener

    If you use this as the input protocol:
    Mode: Select Listener. In this mode, you need to use the SRT caller mode at the receiving end to request the stream from StreamLink. You can view the playback URL in the output list.
    Latency setting: The server-side SRT latency. If the push end is in the same country as your StreamLink AZ, we recommend you set this to 120 ms. If the push end is not in the same country as your StreamLink AZ, we recommend you set this to 200 ms. If the push end is not in the same continent as your StreamLink AZ, we recommend you set this to 1,000 ms. You can determine the value of this parameter based on the IP address assigned.
    Enable encryption: If you enable encryption for the output, you need to do the same at the receiving end and configure the key and key length; otherwise, you will fail to pull the stream from StreamLink.
    Encryption key: The encryption key.
    Key length: The key length.
    CIDR IP allowlist: The IP allowlist, which specifies the IP addresses (example: 203.3.3.3/28) that are allowed to push streams. This makes for improved security. Separate multiple addresses with semicolons, as in 203.3.3.3/28;202.3.3.3/28.
    

    4. SRT Caller

    If you use this as the input protocol:
    Mode: Select Caller. In this mode, StreamLink will use the SRT caller mode to send the stream to the address you specify.
    Output IP address: The IP address that receives the SRT stream. You can also enter a domain.
    Port: The port that receives the SRT stream.
    Latency setting: The server-side SRT latency. If the source address is in the same country as your StreamLink AZ, we recommend you set this to 120 ms. If the source address is not in the same country as your StreamLink AZ, we recommend you set this to 200 ms. If the source address is not in the same continent as your StreamLink AZ, we recommend you set this to 1,000 ms. You can determine the value of this parameter based on the IP address assigned.
    Enable encryption: If you enable encryption at the receiving end, you need to toggle this on and specify the encryption key and key length. Otherwise, you will fail to push the stream.
    Encryption key: The encryption key.
    Key length: The key length, which must be the same as that configured at the receiving end.
    

    5. RTP

    If you select this protocol, StreamLink will push the stream to the address you specify.
    Output IP address: The IP address StreamLink will push the stream to.
    Port: The port StreamLink will push the RTP stream to.
    
    
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support