

# Creating media stream pipelines using the Amazon Chime SDK
<a name="create-media-stream-pipeline"></a>

Media stream pipelines capture individual audio for all the attendees in a meeting, plus the mixed audio generated by a media concatenation pipeline. All media stream pipelines save their data to [ Amazon Kinesis Video Streams](https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/what-is-kinesis-video.html) (KVS).

You create the video stream by calling the [https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_media-pipelines-chime_CreateMediaPipelineKinesisVideoStreamPool.html](https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_media-pipelines-chime_CreateMediaPipelineKinesisVideoStreamPool.html) API. You can create one media stream pipeline per Amazon Chime SDK meeting.

**Note**  
If a meeting uses an opt-in Region as its [MediaRegion](https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_meeting-chime_CreateMeeting.html#chimesdk-meeting-chime_CreateMeeting-request-MediaRegion), the KVS stream must be in that same Region. For example, if a meeting uses the `af-south-1` Region, the KVS stream must also be in `af-south-1`. However, if the meeting uses a Region that AWS turns on by default, the KVS stream can be in any available Region, including an opt-in Region. For example, if the meeting uses `ca-central-1`, the KVS stream can be in `eu-west-2`, `us-east-1`, `af-south-1`, or any other Region that the Amazon Chime SDK supports.  
To learn which AWS Region a meeting uses, call the [GetMeeting](https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_meeting-chime_GetMeeting.html) API and use the [MediaRegion](https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_meeting-chime_CreateMeeting.html#chimesdk-meeting-chime_CreateMeeting-request-MediaRegion) parameter from the response.  
For more information about opt-in Regions, refer to [Available AWS Regions for the Amazon Chime SDK](sdk-available-regions.md) in this guide, and [Specify which AWS Regions your account can use](https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-regions.html#rande-manage-enable.html), in the *AWS Account Management Reference Guide*.

The following sections explain how to create a media stream pipeline. Follow them in the order listed.

**Topics**
+ [Creating a Kinesis Video Streams pool for Amazon Chime SDK media stream pipelines](create-kvs-pool.md)
+ [Example code for Kinesis Video Streams pools for Amazon Chime SDK media stream pipelines](pool-creation-code.md)
+ [Creating Amazon Chime SDK media stream pipelines](create-stream-pipeline.md)
+ [Example code for Amazon Chime SDK media stream pipelines](pipeline-creation-code.md)
+ [Using Event Bridge notifications for Amazon Chime SDK media stream pipelines](media-stream-event-bridge.md)
+ [Using Amazon Chime SDK media stream pipelines data](media-stream-tips-tricks.md)