Creating a transport stream flow that uses a standard source
Transport stream flows transport compressed content that is muxed into a single stream.
A flow uses a standard source when the content comes from anywhere other than a VPC (VPC source) or another AWS account (entitled source).
Important
If the source of your flow requires encryption, set up encryption before you begin this procedure.
Create a transport stream flow that uses a standard source (console)
Open the MediaConnect console at https://console.aws.amazon.com/mediaconnect/
. -
On the Flows page, choose Create flow.
-
In the Details section, for Name, specify a name for your flow. This name will become part of the ARN for this flow.
Note
MediaConnect allows you to create multiple flows with the same name. However, we encourage you to use unique flow names within an AWS Region to help with organization. After you create a flow, you can't change the name.
-
For Availability Zone, choose an Availability Zone for your flow. Use this option when you are setting up redundant flows. Otherwise, you can leave this as Any. If you leave the default, the service will randomly assign an Availability Zone within the current AWS Region, or if your source comes from a VPC, the service will assign the Availability Zone of the VPC subnet to the flow.
-
Determine which protocol your source uses.
Note
If you want to specify redundant sources for failover, create the flow with one of the sources. After the flow is created, update it to activate failover on the source, and add the second source to the flow. Because MediaConnect treats both sources as the primary source, it doesn't matter which one you specify when you first create the flow.
-
For specific instructions based on your source type and protocol, choose one of the following tabs:
-
Under Source monitoring configuration, choose which monitoring features you want to enable.
Turn on Thumbnails state to generate source thumbnails that you can preview in the console.
Turn on Content quality analysis state to monitor for the following audio and video quality issues.
(Optional) Turn on Black frames to detect periods of black video frames in the stream.
(Optional) Turn on Frozen frames to detect periods of unchanging video frames in the stream.
(Optional) Turn on Silent audio to detect periods of audio silence in the stream.
(Optional) Set a duration threshold between 10 and 60 seconds for each metric that you enable. The default is 30 seconds.
-
At the bottom of the page, choose Create flow.
Note
The flow doesn't start automatically. You must start the flow manually.
-
Add outputs to specify where you want MediaConnect to send the content, or grant entitlements to allow users of other AWS accounts to subscribe to your content.
Create a transport stream flow that uses a standard source (AWS CLI)
-
Create a JSON file that contains the details of the flow that you want to create.
The following example shows the structure for the contents of the file:
{ "Name": "
AwardsShow
", "Outputs": [ { "Destination": "198.51.100.5
", "Description": "RTP output
", "Name": "RTPOutput
", "Protocol": "rtp
", "Port":5020
} ], "Source": { "Name": "AwardsShowSource
", "Protocol": "rtp-fec
", "AllowlistCidr": "10.24.34.0/23
" } } -
In the AWS CLI, use the
create-flow
command:aws mediaconnect create-flow --cli-input-json file://
rtp.json
--profilePMprofile
The following example shows the return value:
{ "Flow": { "EgressIp": "203.0.113.0", "AvailabilityZone": "us-east-1d", "Name": "AwardsShow", "Status": "STANDBY", "FlowArn": "arn:aws:mediaconnect:us-east-1:111122223333:flow:1-23aBC45dEF67hiJ8-12AbC34DE5fG:AwardsShow", "Source": { "SourceArn": "arn:aws:mediaconnect:us-east-1:111122223333:source:3-4aBC56dEF78hiJ90-4de5fG6Hi78Jk:AwardsShowSource", "Name": "AwardsShowSource", "IngestPort": 5000, "AllowlistCidr": "10.24.34.0/23", "IngestIp": "198.51.100.15", "Transport": { "Protocol": "rtp-fec", "MaxBitrate": 80000000 } }, "Entitlements": [], "Outputs": [ { "Port": 5020, "Name": "AwardsShowOutput", "OutputArn": "arn:aws:mediaconnect:us-east-1:111122223333:output:2-3aBC45dEF67hiJ89-c34de5fG678h:AwardsShowOutput", "Description": "RTP-FEC Output", "Destination": "198.51.100.5", "Transport": { "Protocol": "rtp", "SmoothingLatency": 0 } } ] } }
Additional resources
For more information about source monitoring options, see Viewing thumbnails of the source video and Monitoring with content quality analysis in AWS Elemental MediaConnect.