Disabling content quality analysis for a flow
Prerequisites
You must have already enabled content quality analysis for the flow.
Procedure
You can disable content quality analysis through the AWS Management Console, the AWS CLI, and the MediaConnect API.
- Console
-
To disable content quality analysis
Open the MediaConnect console at https://console.aws.amazon.com/mediaconnect/
. -
From the Flows screen, select the flow for which you want to disable content quality analysis.
-
On the flow details page, choose the Sources tab.
-
In the Source monitoring configuration section, choose Edit.
-
In the Content quality analysis section, turn off the metrics you want to disable, or turn off all metrics by turning off Content quality analysis state.
-
Choose Update to save your changes.
- AWS CLI
-
To disable all metrics
Run the update-flow command as shown in the following example:
aws mediaconnect update-flow \ --flow-arn "flowARN" \ --source-monitoring-config ContentQualityAnalysisState=DISABLEDIn the following example response,
ContentQualityAnalysisStateis disabled, but individual metric settings remain unchanged:{ "Flow": { "FlowArn": "<arn>", ... "SourceMonitoringConfig": { "ContentQualityAnalysisState": "DISABLED", "AudioMonitoringSettings": [ { "SilentAudio": { "State": "ENABLED", "ThresholdSeconds": 30 } } ], "VideoMonitoringSettings": [ { "BlackFrames": { "State": "ENABLED", "ThresholdSeconds": 30 }, "FrozenFrames": { "State": "ENABLED", "ThresholdSeconds": 10 } } ] } } }To disable specific metrics
Run the update-flow command with the
--source-monitoring-configparameter configured as shown in the following example. This example disables the two video metrics while preserving custom thresholds for future use:aws mediaconnect update-flow \ --flow-arn "flowARN" \ --source-monitoring-config '{"ContentQualityAnalysisState": "ENABLED", "VideoMonitoringSettings": [{ "FrozenFrames": {"State": "DISABLED", "ThresholdSeconds": 10}, "BlackFrames": {"State": "DISABLED", "ThresholdSeconds": 15}}], "AudioMonitoringSettings": [{ "SilentAudio": {"State": "ENABLED", "ThresholdSeconds": 25}}]}'Note the following:
-
When
ContentQualityAnalysisStateis set toDISABLED, it takes precedence over individual metric settings. Individual metrics might show asENABLED, but they are not active until you setContentQualityAnalysisStateback toENABLED. -
Your previously configured thresholds are preserved when you disable metrics.
-