AWS mediaconnect: MediaConnect router I/O: RTMP Push, SRT decryption, and switching modes
Summary
Adds RTMP Push router input/output documentation (port 1935, naming types, codec limits, no RTMPS support on inputs), documents RTMPS TLS encryption for outputs, adds SRT Caller/Listener decryption steps using a Role ARN and an AWS Secrets Manager Secret ARN, adds per-source port requirements and RTP FEC port reservation notes, and adds router fabric switching mode (Immediate/Key frame) plus processor configuration. Also removes the external SRT Configuration Guidelines link and renumbers steps.
Security assessment
The change documents security-relevant configuration: enabling SRT decryption via a Role ARN and a Secrets Manager Secret ARN (credentials/secrets handling), RTMPS TLS encryption for RTMP Push outputs, and the limitation that router inputs do not support RTMPS. It is feature/best-practice documentation rather than a fix for a specific vulnerability, so it is not tied to a CVE or incident.
Evidence
+ 5. **Decryption** \- If you want to enable decryption, follow these steps:
Diff
diff --git a/mediaconnect/latest/ug/creating-router-io.md b/mediaconnect/latest/ug/creating-router-io.md index 0292c16..9086b10 100644 --- a//mediaconnect/latest/ug/creating-router-io.md +++ b//mediaconnect/latest/ug/creating-router-io.md @@ -114,0 +115,27 @@ RIST +RTMP Push + + + 1. **Port** \- RTMP Push supports only port 1935. + + 2. **Naming type** \- Choose how the application name and stream name are set: + + * **Automatic naming type** \- MediaConnect generates the application name and stream name. + + * **Manual naming type** \- Specify the names yourself: + + 1. **Application name** \- Enter the application name that you want your sender to push to. + + 2. **Stream name** \- Enter the stream name that you want your sender to use. + +After you create the router input, configure your sender with the **URL** and stream name that appear on the router input details page. + +###### Note + +RTMP Push has the following requirements and limitations: + + * The application name and stream name can each be up to 1,024 characters, can contain only printable ASCII characters, can't begin or end with a space, and can't contain double quotation marks or backslashes. + + * The content must use the H.264 or H.265 video codec and the AAC, AC3, or MP3 audio codec. + + * Router inputs don't support RTMPS (RTMP over TLS). + @@ -133 +160 @@ SRT Caller -The SRT protocol uses a **minimum latency** configuration on each side of the connection. The larger of these two values is used as the _recovery latency_. If the transmitted bitrate, multiplied by the recovery latency, is higher than the _receiver buffer_ , the buffer will overflow and the stream can fail with a `Buffer Overflow Error`. On the SRT receiver side, the receiver buffer is configured by the SRTO_RCVBUF value. The size of the receiver buffer is limited by the _flow control window size_ (SRTO_FC) value. On the MediaConnect side, the receiver buffer is calculated as the **maximum bitrate** value multiplied by the **minimum latency** value. For more information about the SRT buffer, see [the SRT Configuration Guidelines.](https://github.com/Haivision/srt/blob/master/docs/API/configuration-guidelines.md) +The SRT protocol uses a **minimum latency** configuration on each side of the connection. The larger of these two values is used as the _recovery latency_. If the transmitted bitrate, multiplied by the recovery latency, is higher than the _receiver buffer_ , the buffer will overflow and the stream can fail with a `Buffer Overflow Error`. On the SRT receiver side, the receiver buffer is configured by the SRTO_RCVBUF value. The size of the receiver buffer is limited by the _flow control window size_ (SRTO_FC) value. On the MediaConnect side, the receiver buffer is calculated as the **maximum bitrate** value multiplied by the **minimum latency** value. @@ -154 +181 @@ SRT Listener -The SRT protocol uses a **minimum latency** configuration on each side of the connection. The larger of these two values is used as the _recovery latency_. If the transmitted bitrate, multiplied by the recovery latency, is higher than the _receiver buffer_ , the buffer will overflow and the stream can fail with a `Buffer Overflow Error`. On the SRT receiver side, the receiver buffer is configured by the SRTO_RCVBUF value. The size of the receiver buffer is limited by the _flow control window size_ (SRTO_FC) value. On the MediaConnect side, the receiver buffer is calculated as the **maximum bitrate** value multiplied by the **minimum latency** value. For more information about the SRT buffer, see [the SRT Configuration Guidelines.](https://github.com/Haivision/srt/blob/master/docs/API/configuration-guidelines.md) +The SRT protocol uses a **minimum latency** configuration on each side of the connection. The larger of these two values is used as the _recovery latency_. If the transmitted bitrate, multiplied by the recovery latency, is higher than the _receiver buffer_ , the buffer will overflow and the stream can fail with a `Buffer Overflow Error`. On the SRT receiver side, the receiver buffer is configured by the SRTO_RCVBUF value. The size of the receiver buffer is limited by the _flow control window size_ (SRTO_FC) value. On the MediaConnect side, the receiver buffer is calculated as the **maximum bitrate** value multiplied by the **minimum latency** value. @@ -210 +237 @@ If you want to create the router input and connect the channel at a later time, - 2. Under **First source protocol configuration** , define the protocol settings for the primary source. + 2. For each source, define the protocol settings. @@ -214,0 +242,2 @@ RIST +Each source must use a different port number. + @@ -218,0 +248,23 @@ RIST +RTMP Push + + +Both sources use port 1935. For failover to work, each source must use a different combination of application name and stream name. + + 1. **Naming type** \- Choose how the application name and stream name are set for both sources: + + * **Automatic naming type** \- MediaConnect generates a different application name and stream name combination for each source. + + * **Manual naming type** \- For each source, enter an **Application name** and a **Stream name**. Make sure that each source uses a different combination of application name and stream name. + +After you create the router input, configure each sender with the **URL** and stream name that appear on the router input details page. + +###### Note + +RTMP Push has the following requirements and limitations: + + * The application name and stream name can each be up to 1,024 characters, can contain only printable ASCII characters, can't begin or end with a space, and can't contain double quotation marks or backslashes. + + * The content must use the H.264 or H.265 video codec and the AAC, AC3, or MP3 audio codec. + + * Router inputs don't support RTMPS (RTMP over TLS). + @@ -221,0 +274,2 @@ RTP +Each source must use a different port number. + @@ -225,0 +280,6 @@ RTP +###### Note + +When using RTP with FEC enabled for failover/merge on a router input, MediaConnect automatically reserves three ports: the port you specify, plus the ports that are +2 and +4 from that. + +For example, if you specify port 2000 for the input, MediaConnect will also reserve ports 2002 and 2004 for the FEC streams. + @@ -228,0 +289,2 @@ SRT Caller +Each source must use a different port number. + @@ -237 +299 @@ SRT Caller -The SRT protocol uses a **minimum latency** configuration on each side of the connection. The larger of these two values is used as the _recovery latency_. If the transmitted bitrate, multiplied by the recovery latency, is higher than the _receiver buffer_ , the buffer will overflow and the stream can fail with a `Buffer Overflow Error`. On the SRT receiver side, the receiver buffer is configured by the SRTO_RCVBUF value. The size of the receiver buffer is limited by the _flow control window size_ (SRTO_FC) value. On the MediaConnect side, the receiver buffer is calculated as the **maximum bitrate** value multiplied by the **minimum latency** value. For more information about the SRT buffer, see [the SRT Configuration Guidelines.](https://github.com/Haivision/srt/blob/master/docs/API/configuration-guidelines.md) +The SRT protocol uses a **minimum latency** configuration on each side of the connection. The larger of these two values is used as the _recovery latency_. If the transmitted bitrate, multiplied by the recovery latency, is higher than the _receiver buffer_ , the buffer will overflow and the stream can fail with a `Buffer Overflow Error`. On the SRT receiver side, the receiver buffer is configured by the SRTO_RCVBUF value. The size of the receiver buffer is limited by the _flow control window size_ (SRTO_FC) value. On the MediaConnect side, the receiver buffer is calculated as the **maximum bitrate** value multiplied by the **minimum latency** value. @@ -251,0 +314,2 @@ SRT Listener +Each source must use a different port number. + @@ -258 +322 @@ SRT Listener -The SRT protocol uses a **minimum latency** configuration on each side of the connection. The larger of these two values is used as the _recovery latency_. If the transmitted bitrate, multiplied by the recovery latency, is higher than the _receiver buffer_ , the buffer will overflow and the stream can fail with a `Buffer Overflow Error`. On the SRT receiver side, the receiver buffer is configured by the SRTO_RCVBUF value. The size of the receiver buffer is limited by the _flow control window size_ (SRTO_FC) value. On the MediaConnect side, the receiver buffer is calculated as the **maximum bitrate** value multiplied by the **minimum latency** value. For more information about the SRT buffer, see [the SRT Configuration Guidelines.](https://github.com/Haivision/srt/blob/master/docs/API/configuration-guidelines.md) +The SRT protocol uses a **minimum latency** configuration on each side of the connection. The larger of these two values is used as the _recovery latency_. If the transmitted bitrate, multiplied by the recovery latency, is higher than the _receiver buffer_ , the buffer will overflow and the stream can fail with a `Buffer Overflow Error`. On the SRT receiver side, the receiver buffer is configured by the SRTO_RCVBUF value. The size of the receiver buffer is limited by the _flow control window size_ (SRTO_FC) value. On the MediaConnect side, the receiver buffer is calculated as the **maximum bitrate** value multiplied by the **minimum latency** value. @@ -268,9 +332 @@ The SRT protocol uses a **minimum latency** configuration on each side of the co - 3. Under **Second source protocol configuration** , repeat the previous step for the secondary source using a different port number. - -###### Note - -When using RTP with FEC enabled for failover/merge on a router input, MediaConnect automatically reserves three ports: the port you specify, plus the ports that are +2 and +4 from that. - -For example, if you specify port 2000 for the input, MediaConnect will also reserve ports 2002 and 2004 for the FEC streams. - - 4. Under **Source priority configuration** , choose how sources are prioritized during failover scenarios. + 3. Under **Source priority configuration** , choose how sources are prioritized during failover scenarios. @@ -290 +346 @@ The recovery window is the size of the buffer (delay) that you want MediaConnect - 2. Under **First source protocol configuration** , define the protocol settings for the first source. + 2. For each source, define the protocol settings. @@ -294,0 +351,2 @@ RIST +Each source must use a different port number. + @@ -301,0 +360,2 @@ RTP +Each source must use a different port number. + @@ -306,2 +365,0 @@ RTP - 3. Under **Second source protocol configuration** , repeat the previous configuration step for the second source using a different port number. - @@ -313,0 +372,54 @@ For example, if you specify port 2000 for the input, MediaConnect will also rese +SRT Caller + + +###### Important + +Your sender must send both streams using SRT connection bonding in broadcast mode. + +Each source must use a different port number. + + 1. **Source address** \- Enter the IP address or domain name for the SRT connection. + + 2. **Router input source port** \- Specify the SRT Listener source port. + + 3. **Minimum latency** \- Specify the smallest buffer latency that you want to maintain between the source and the router input. + +###### Note + +The SRT protocol uses a **minimum latency** configuration on each side of the connection. The larger of these two values is used as the _recovery latency_. If the transmitted bitrate, multiplied by the recovery latency, is higher than the _receiver buffer_ , the buffer will overflow and the stream can fail with a `Buffer Overflow Error`. On the SRT receiver side, the receiver buffer is configured by the SRTO_RCVBUF value. The size of the receiver buffer is limited by the _flow control window size_ (SRTO_FC) value. On the MediaConnect side, the receiver buffer is calculated as the **maximum bitrate** value multiplied by the **minimum latency** value. + + 4. **Stream ID** \- Enter the identifier for the stream. + + 5. **Decryption** \- If you want to enable decryption, follow these steps: + + 1. Select **Enable decryption**. + + 2. Under **Role ARN** , enter the ARN of the role that you created when you set up MediaConnect as a trusted entity. + + 3. Under **Secret ARN** , enter the ARN that AWS Secrets Manager assigned when you created the secret to store the encryption key. + +SRT Listener + + +###### Important + +Your sender must send both streams using SRT connection bonding in broadcast mode. + +Each source must use a different port number. + + 1. **Port** \- Enter the listening port for incoming content. + + 2. **Minimum latency** \- Specify the smallest buffer latency that you want to maintain between the source and the router input. + +###### Note + +The SRT protocol uses a **minimum latency** configuration on each side of the connection. The larger of these two values is used as the _recovery latency_. If the transmitted bitrate, multiplied by the recovery latency, is higher than the _receiver buffer_ , the buffer will overflow and the stream can fail with a `Buffer Overflow Error`. On the SRT receiver side, the receiver buffer is configured by the SRTO_RCVBUF value. The size of the receiver buffer is limited by the _flow control window size_ (SRTO_FC) value. On the MediaConnect side, the receiver buffer is calculated as the **maximum bitrate** value multiplied by the **minimum latency** value. + + 3. **Decryption** \- If you want to enable decryption, follow these steps: + + 1. Select **Enable decryption**. + + 2. Under **Role ARN** , enter the ARN of the role that you created when you set up MediaConnect as a trusted entity. + + 3. Under **Secret ARN** , enter the ARN that AWS Secrets Manager assigned when you created the secret to store the encryption key. + @@ -393,0 +506,31 @@ RIST +RTMP Push + + + 1. Choose how to enter the destination: + + * Choose **Enter a URL** to paste a complete RTMP or RTMPS URL. MediaConnect fills in the scheme, destination address, port, and application name from the URL. Use the format `rtmp(s)://`Address`[:`Port`]/`ApplicationName``. If you omit the port, MediaConnect uses the default (1935 for RTMP, 443 for RTMPS). + + * Choose **Enter fields separately** to specify each field individually: + + 1. **Scheme** \- Select **RTMP** , or **RTMPS** to encrypt the connection with TLS. + + 2. **Destination address** \- Enter where you're sending the content. For RTMP, this can be an IP address or a domain name. For RTMPS, you must specify a domain name. + + 3. **Port** \- Specify the port to use. For RTMP, use a port from 1024 to 65535. For RTMPS, use 443 or a port from 1024 to 65535. + + 4. **Application name** \- Enter the application name that your destination expects. + + 2. **Stream name** \- Enter the stream name that your destination expects. + + 3. **TLS encryption type** \- If you chose **RTMPS** , keep this set to **Public**. MediaConnect supports public certificate-based TLS encryption only. + +###### Note + +RTMP Push has the following requirements and limitations: + + * The application name and stream name can each be up to 1,024 characters, can contain only printable ASCII characters, can't begin or end with a space, and can't contain double quotation marks or backslashes. + + * The content must use the H.264 or H.265 video codec and the AAC, AC3, or MP3 audio codec. + + * For RTMPS, MediaConnect supports public certificate-based TLS encryption only. +