

# Step A: Create the feed in Elemental Inference
<a name="create-feed"></a>

You must create a feed that contains the features (outputs) that you want to use. After you've created the feed, you must associate a source media (resource) with it. 

You can create an Elemental Inference feed using the Elemental Inference console or the AWS CLI. 

**Topics**
+ [

# Creating using the console
](create-feed-console.md)
+ [

# Creating using the CLI
](create-feed-cli.md)
+ [

# Configuring each feature
](create-feed-outputs.md)

# Creating using the console
<a name="create-feed-console"></a>

This section describes how to use the Elemental Inference console to create an Elemental Inference feed.

**Create the feed**

1. Open the Elemental Inference console at [https://console.aws.amazon.com/elemental-inference/](https://console.aws.amazon.com/elemental-inference/).

1. In the left navigation bar, choose **Feeds**. On the **Feeds** page, choose **Create**. 

1. Complete the fields:
   + Enter a friendly name for the feed. You might want to specify a name that helps you to identify the source media that you plan to use with this feed. For example, **feed-soccer**.
   + In **AI features** section, enable the features you want to use. Each feature becomes an output in the feed. See the sections after this procedure for information about specific configuration for a feature.
   + Optionally, associate tags with the feed.

1. Choose **Create feed**. The **Feeds** page appears showing a list with one line for each feed. After a few moments, the status of the feed you just created will be **Available**.

   **Available** means that the feed isn't currently associated with a source media.

**Associate the resource**

1. In **Feed association**, choose **Add association**. Enter a friendly name for the source media (resource) that you intend for this feed. You might want to specify a name that helps you to identify the feed that this source media belongs to. For example, **source-soccer**.

1. In the **Feed association** section, choose **Save** to confirm the association. The **Feed** information on the page is updated: 
   + In **Feed association**, the **Integration** field appears, showing the data endpoint for the feed.
   + In **General details**, the status of the feed changes to **Active**, which means that a resource is associated with the feed.
   + In **Outputs**, the status of each output changes to **Enabled**.

     If you want to disable an output or change any other information for the output, select the **Edit** button (a pencil) on the right. 

   For information about feed and output status, see [Lifecycle of an AWS Elemental Inference workflow](monitor-inference-feed-lifecycle.md).

1. Make a note of the data endpoint (in the **Integration** field). You will need this value in order to deliver the source media to Elemental Inference.

# Creating using the CLI
<a name="create-feed-cli"></a>

This section describes how to use the AWS CLI to create an Elemental Inference feed.

You must set up a fully-configured feed: resource - feed - output or outputs, where the MediaLive channel is the resource and each output represents one Elemental Inference feature.

1. Use `create-feed` to create a new feed. 

   Include one output for each feature you want to implement. Set the status to `ENABLED` in each output.

1. The response includes the following information that you should make a note of:
   + `id`: The feed ID, which you will need for CLI commands on this feed.
   + `arn`: The feed ARN. You can also obtain the ARN using `get-feed`.
   + `dataEndpoints`: The ARN of the data endpoint for this feed. You will use this ARN when you send source media to Elemental Inference for processing, and when you retrieve the metadata that is the result of this processing.

1. After the feed is created, the status of the feed will eventually change to `AVAILABLE`, indicating that it is ready to have a resource (source media) associated with it.

1. Use `associate-feed` to associate the source media with the feed. The source media is the resource for the feed. 

   You now have a useable feed: resource - feed - output.

# Configuring each feature
<a name="create-feed-outputs"></a>

Following are details about how to configure each feature (output) that you include in a Elemental Inference feed. 

## Configuring event clipping
<a name="create-feed-console-event-clip"></a>

In **Callback config**, you can enter a string that you want Elemental Inference to always include in the event clipping metadata for this output. This information is useful when you later work with Elemental Inference events in Amazon EventBridge. You will be able to filter events using this information, in order to find the events for one feed. The string might identify the sports event in the feed, for example.

## Configuring smart crop
<a name="create-feed-console-smart-crop"></a>

There is no specific configuration for smart crop.