Step 2: Creating a MediaConnect Distribution Flow

Let’s start creating a MediaConnect distribution flows. The source for this distribution flow will be the program output of the switcher EC2 instance.

Note

In order to minimize cross-AZ traffic, we will choose the same AZ for our signal path. In this example we will choose us-west-2a.

  1. Search for MediaConnect in the search bar and enter into MediaConnect Console.

    Alt text Alt text

MediaConnect Contribution Flow

  1. Click on Create Flow.

  2. Add a Name for the Flow. In this example, distribution-flow.

    Choose an Availability Zone for our signal path. Make sure to use the same one as the EC2 instance previously created.

    Add a Name for the Source of the flow. In this example, srt-source-01.

    Define the Protocol: RTP (we will update this later to SRT once we have a VPC Interface).

    Allowlist CIDR block 0.0.0.0/0.

    Define the Inbound port: 8000.

    Click Create Flow

    Alt text Alt text

  3. In order for our switcher EC2 instance to communicate with our distribution mediaconnect flow within our VPC, we need to create a VPC Interface. Select the VPC intefaces tab and click Add VPC interface.

    Alt text Alt text

  4. Under Name, type in vpc-interface

    Under Role ARN select the MediaConnectServiceRole we created earlier.

    Under VPC select the default VPC.

    Under Subnet, select the only subnet listed that corresponds to the us-west-2a AZ.

    Under Security groups, select the distribution-security-group we created earlier.

    Now click Add.

    Alt text Alt text

    You should now see the newly created vpc-interface listed under the VPC interfaces tab.

    Alt text Alt text

  5. Now click the Sources tab and select the srt-source-01 and click Update.

    Alt text Alt text

    Update the source with the following information.

    Under Source type, select VPC source.

    Under Protocol, select SRT listener.

    Under VPC interface name, select vpc-interface.

    Then click Update source.

    Alt text Alt text

    Take note of the Inbound IP address. You will need this to configure the switcher.

    Alt text Alt text

  6. Now in order to direct the output of the Distribution flow to the workshop destination, we need to click the Outputs tab and click Add output.

    Alt text Alt text

  7. In the Add output form, fill in the following information.

    Under Name, type output-to-destination.

    Under Output type, select Standard output.

    Under Protocol, select SRT caller.

    Under Destination address, type in the public IP provided by the workshop host..

    Under Port, type in the port provided by the workshop host.

    Then click Add output.

    Alt text Alt text

  8. Click Start to start the distribution Flow.

    Alt text Alt text

Let’s jump into the next session and configure our switcher EC2 Channels.

 


Click here to advance to the next step »