View a markdown version of this page

Disabling some Elemental Inference features in a channel - MediaLive

Disabling some Elemental Inference features in a channel

Follow this procedure if you want to disable some Elemental Inference features in the MediaLive channel, but you want to keep at least one feature. For example:

  • Keep smart crop enabled in at least one output.

  • Disable smart crop but keep event clipping enabled.

In this procedure, you disable a feature in the relevant MediaLive channel outputs. And you disable the output for that feature in the Elemental Inference feed.

Make changes in MediaLive

Use update-channel to make changes in the JSON for the MediaLive channel.

If you want to disable...

Action

Event clipping

There are no changes to make in the channel JSON.

Smart crop in one or more outputs
  1. Identify the video encodes (video descriptions) for the target outputs where you want to disable smart crop. For example, one target output might be the video encode (video description) named high_resolution in an output named output_A in the output group named My_outputgroup.

  2. In the JSON for each video description that you identified, change these parameters:

    • Width and Height: Set to values that are suitable when there is no Elemental Inference features occurring.

    • ScalingBehavior: Set to a value other than SMART_CROP.

    Smart crop is now disabled in these outputs.

See Setting up Elemental Inference features for the first time for an example of the JSON as it appears before you make these changes.

Note

Don't touch the feedArn parameter in the InferenceSettings section of the JSON.

Make changes in Elemental Inference

Make changes in Elemental Inference as described in the following table.

Action

Action

To disable event clipping

Use UpdateFeed to change the status parameter of the OutputConfig that is of type ClippingConfig. Change the status from ENABLED to DISABLED.

To disable smart crop in all video outputs Use UpdateFeed to change the status parameter of the OutputConfig that is of type CropConfig. Change the status from ENABLED to DISABLED.
To disable smart crop in some video outputs There are no changes to make. Leave the status of CropConfig as ENABLED.

Result of disabling some features

Disabling some features changes the behavior of MediaLive and Elemental Inference as follows:

  • MediaLive continues to send the source video to Elemental Inference because there is still a feedArn parameter in the channel.

  • Elemental Inference continues to produce metadata for outputs that are enabled (which means that corresponding feature is enabled). But it stops producing metadata for outputs that are disabled.

    When an output is disabled, the following rules apply:

    • You don't incur charges for a DISABLED output.

    • But you can still read the existing metadata in that output for the next 24 hours. After that time, the output remains disabled, but its metadata is deleted.

For example, if you previously had both event clipping and smart crop enabled, but you then disable event clipping, MediaLive continues to send the source video. Elemental Inference continues to produce event clipping metadata but it stops producing smart cropping metadata.

Re-enabling Elemental Inference features

If a MediaLive channel currently has at least one Elemental Inference feature enabled, you can re-enable features that you previously disabled). Follow the procedure Adding more Elemental Inference features, with this difference: instead of adding OutputConfig items, set the status of existing items to ENABLED.