Ad-Flow: Output to MediaLive's RTP Input
This guide explains how to create an RTP input in AWS MediaLive and configure the Ad-Flow container to stream to it.
Creating the MediaLive Input
Security Group Setup
- Navigate to MediaLive in AWS Console
- Go to Network Input Security Groups
- Click Create Input Security Group
- Set the following:
- For Type, select RTP
- Input CIDR range: Add the CIDR range that includes your Ad-Flow container's IP
- Give your security group a meaningful name
- Note down the Security Group ID for later use
Creating RTP Input
- In MediaLive, go to Inputs
- Click Create Input
- Configure the following settings:
- Input Type: Select RTP
- Input network location: Select AWS
- Input Security Group: Choose the security group created above
- Name: Give your input a descriptive name (e.g., "channel1-rtp-input")
- Network Input Settings:
- For each destination (Primary and Secondary):
- Select Local IP: Choose "Auto"
- Local Port: Enter desired port (e.g., 5000)
- For each destination (Primary and Secondary):
- Buffer Size: Set to at least 120ms (matches Ad-Flow delay)
- Click Create
- Note down the following from the input details:
- Primary Destination IP
- Primary Destination Port
- Secondary Destination IP (if using redundancy)
- Secondary Destination Port (if using redundancy)
Configuring Ad-Flow Container
Update your container configuration to match the MediaLive input settings:
Basic Configuration
Parameter | Value | Notes |
---|---|---|
OUTPUT_IP | <Primary Destination IP> | From MediaLive input |
OUTPUT_PORT | <Primary Destination Port> | From MediaLive input |
STREAM_PROTOCOL | rtp | Must be RTP for MediaLive |
Example Configuration
OUTPUT_IP: "10.100.20.30" # MediaLive Primary Destination
OUTPUT_PORT: "5000" # MediaLive Primary Port
STREAM_PROTOCOL: "rtp"
DELAY_SECONDS: "120" # Match with MediaLive buffer
Configuration Notes
Single vs. Dual Pipeline
-
For single pipeline:
- Configure only primary destination
- MediaLive input will have one endpoint
-
For dual pipeline (redundant):
- Stream from Ad-Flow to the primary destination
- Stream from Delay-Flow to the secondary destination
- Configure each container with respective MediaLive endpoint
- Set identical
DELAY_SECONDS
on both containers
Network Considerations
- Security Groups
- Ad-Flow container must be able to reach MediaLive input
- MediaLive security group must allow Ad-Flow container IP