## Configure an automated blackout

Live Encoder can blackout a program on SCTE-35 trigger and replace the video with a still image.\
SCTE-35 metadata can be:

- either [in-band](/traditional-products-and-appliances/components/live-encoder/configure/input/inband-metadata)
- or [out-of-band](/traditional-products-and-appliances/components/live-encoder/configure/input/outofband-metadata)

Before you start: ensure you have configured the SCTE-35 metadata in the input stream.

To create a scheduled blackout, follow these steps:

### Configure the metadata encoding

1. From the **Encoding** tab, go to the **Metadata encoding** section.

2. For each SCTE-35 metadata, click `Edit` icon in the **Actions** column then set the **Codec** to **Conditioning**.

3. Click **Ok** to validate.

### Configure the blackout encoding

1. Go to the **Blackout configuration** section.

2. Click **Add** then configure a blackout configuration by selecting and setting the adequate [blackout parameters](/traditional-products-and-appliances/components/live-encoder/parameters/encoding/blackout).

   For example, the **Track SCTE-35** field identifies the encoded metadata track. The trigger is **spliceOutSpliceIn** and the timeout is 5000 ms.

3. Click **Ok** to validate.

### Configure the video encoding

1. Go to the **Video encoding** section.

2. For each video stream, select the associated [**Stream Conditioning** and **Blackout**](/traditional-products-and-appliances/components/live-encoder/parameters/encoding/video#general-parameters) configuration.

   The video encoding shows the chosen metadata in **Stream conditioning** and the blackout configuration in **Blackout**.

3. Click **Ok** to validate.

### Configure the audio encoding

1. Go to the **Audio encoding** section.

2. For each audio stream, select the associated [**Blackout**](/traditional-products-and-appliances/components/live-encoder/parameters/encoding/audio#mpeg-1-layer-ii-dolby-digital-dolby-digital-plus-aac-he-aac-he-aac-v2-parameters) configuration.

   The audio encoding lists the selected configuration in **Blackout**.

3. Click **Ok** to validate.

### Configure the subtitle encoding

1. Go to the **Subtitle encoding** section.

2. For each subtitle stream, select the associated [**Blackout**](/traditional-products-and-appliances/components/live-encoder/parameters/encoding/subtitle#general-parameters) configuration.

   The subtitle encoding lists **Pass-through** and the selected blackout configuration.

3. Click **Ok** to validate.

### Check that blackout is present in the output

```
Open the **Output** tab to ensure that blackout is present in the output.

The output stream list shows the blackout label against the encodings that use it.
```

### Activate blackout.

You can [Manually activate or deactivate a blackout](/traditional-products-and-appliances/components/live-encoder/configure/encoding/blackout-encoding#manually-activate-or-deactivate-a-blackout).

## Configure a manual blackout

To configure a manual blackout, follow these steps:

### Activate ESAM

From the **General** tab, set the **ESAM server network interface** to activate ESAM.

### Create an SCTE-35 out-of-band input stream

Go to the **Input** > **Sources** > **Out-of-band streams** section to create an SCTE-35 out-of-band input stream.

```
The form lists **SCTE-35 OOB**, the network name, zone identity, ESAM server network interface, and failover recovery setting.
```

### Configure the metadata encoding

1. From the **Encoding** tab, go to the **Metadata encoding** section.

2. Next to your SCTE-35 metadata, click the edit button, `Edit` icon in the **Actions** column then set the **Codec** to **Conditioning**.

   **Encoded metadata selection** shows **Conditioning** as its codec. The form includes **Use POIS**, **PTS insertion compensation**, and **Recover conditioning state if failover**.

3. Click **OK** to validate.

### Configure the blackout encoding

1. Go to the **Blackout configuration** section.

2. Click **Add** then configure a blackout configuration by selecting and setting the adequate **[blackout parameters](/traditional-products-and-appliances/components/live-encoder/parameters/encoding/blackout).**

   For example, the **Track SCTE-35** field identifies the encoded metadata track. The trigger is **spliceOutSpliceIn** and the timeout is 5000 ms.

3. Click **OK** to validate.

### Configure the video encoding

1. Go to the **Video encoding** section.

2. For each video stream, click `Edit` icon to select the associated [**Stream Conditioning** and **Blackout**](/traditional-products-and-appliances/components/live-encoder/parameters/encoding/video#general-parameters) settings.

   The video encoding shows the chosen metadata in **Stream conditioning** and the blackout configuration in **Blackout**.

3. Click **OK** to validate.

### Check that blackout is present in the output

Open the **Output** tab to ensure that blackout is present in the output.

```
The output stream list shows the blackout label against the encodings that use it.
```

### Save

Return to the list of services, or edit any parameters then save.

### Check statistics

1. From the list of services, click `Chart` icon to view statistics.

2. Ensure that blackout configurations display as expected in the **Monitoring** section of the **Statistics** page.

   **Blackout status** shows the image status, last web delivery allowed flag, web delivery allowed count, and timeout count.

### Activate blackout

You can [Manually activate or deactivate a blackout](/traditional-products-and-appliances/components/live-encoder/configure/encoding/blackout-encoding#manually-activate-or-deactivate-a-blackout).

## Configure a scheduled blackout

Creating a scheduled blackout is a 4-step process:

1. [Create a scheduled blackout configuration](/traditional-products-and-appliances/components/live-encoder/configure/encoding/blackout-encoding#create-a-scheduled-blackout-configuration).
2. [Apply a blackout configuration to video encodings](/traditional-products-and-appliances/components/live-encoder/configure/encoding/blackout-encoding#apply-a-blackout-configuration-to-video-encodings).
3. [Apply a blackout configuration to audio encodings](/traditional-products-and-appliances/components/live-encoder/configure/encoding/blackout-encoding#apply-a-blackout-configuration-to-audio-encodings).
4. [Check blackout configurations](/traditional-products-and-appliances/components/live-encoder/configure/encoding/blackout-encoding#check-blackout-configurations).

### Create a scheduled blackout configuration

Live Encoder can blackout a program and replace the video with a still image.\
You must first create the blackout configuration, then configure to apply to video encodings.

Before you start, ensure that:

- A **Metadata input stream** must exist.
- Metadata processing is set to **Conditioning** in **Metadata encoding** parameters.

<blockquote data-callout="note"><strong>Note</strong><p>Audio plays during blackout, unless you configure the blackout to mute audio.</p></blockquote>

1. Display services.

2. Click `Edit` icon to edit the service.

3. Click the **Encoding** tab to display encoding options.

4. Scroll to **Blackout configuration** and click **+Add** to display parameters. The **Blackout configuration** options display.

   <blockquote data-callout="note"><strong>Note</strong><p>You can create multiple blackout configurations for a single service.</p></blockquote>

5. Configure the parameters, then click **Ok** to save. Blackout configurations display in the list.

   The **Blackout configuration** form includes SCTE-35 input, trigger, timeout in milliseconds, and image URL.

<blockquote data-callout="note"><strong>Note</strong><p>If no <strong>SCTE-35 Input</strong> options display in the list, then <a href="/traditional-products-and-appliances/components/live-encoder/configure/encoding/metadata-encoding">reconfigure inputs</a>.</p></blockquote>

```
The configuration row lists the SCTE-35 input, trigger, timeout, and image URL. The example uses **webDeliveryAllowedFlag** and a timeout of 5000 ms.
```

6\.  Use the save options to save configurations.

7. Apply the blackout configuration to a [video](/traditional-products-and-appliances/components/live-encoder/configure/encoding/blackout-encoding#apply-a-blackout-configuration-to-video-encodings) and/or [audio](/traditional-products-and-appliances/components/live-encoder/configure/encoding/blackout-encoding#apply-a-blackout-configuration-to-audio-encodings) encoding.

### Apply a blackout configuration to video encodings

You can apply a blackout configuration per video encoding.

Before you start: ensure that you created at least one blackout configuration.

<blockquote data-callout="note"><strong>Note</strong><p>Blackout is <strong>not supported in Pass-through</strong>.</p></blockquote>

1. Display services.

2. Click `Edit` icon to edit the service.

3. Open the **Encoding** tab, then click `Edit` icon to edit the video stream.

4. Select the blackout option. All previously created blackout configurations display.

5. Check that the applied Blackout option displays for video encodings.

   The **Blackout** column in the video encoding table shows the assigned configuration next to the resolution, codec, and rate control.

6. [Apply the blackout configuration to audio](/traditional-products-and-appliances/components/live-encoder/configure/encoding/blackout-encoding#apply-a-blackout-configuration-to-audio-encodings) streams.

7. [Add encodings to output](/traditional-products-and-appliances/components/live-encoder/configure/output/configure-output#define-the-output-stream-composition).

8. Use the save options to save configurations.

9. Ensure that [Blackout configurations are configured and applied](/traditional-products-and-appliances/components/live-encoder/configure/encoding/blackout-encoding#check-blackout-configurations) as expected.

### Apply a blackout configuration to audio encodings

You can apply a blackout configuration per audio encoding.

before you start, ensure that you have  created at least one blackout configuration.

<blockquote data-callout="note"><strong>Note</strong><p>Blackout is <strong>not supported in Pass-through</strong>.</p></blockquote>

1. Display services.

2. Click `Edit` icon to edit the service.

3. Open the **Encoding** tab, then click `Edit` icon to edit the audio stream, or **Add** a stream.

4. Click **Blackout** to display the list of previously created blackout configurations, then select a blackout configuration to apply.

   The **Blackout** menu in **Encoding audio** lists the available blackout configurations.

5. Click **OK** to save.

6. Check that audio encodings display in the list with the blackout tag displayed.

   The **Blackout** column in the audio encoding table shows the assigned configuration.

7. [Add encodings to output](/traditional-products-and-appliances/components/live-encoder/configure/output/configure-output#define-the-output-stream-composition).

### Check blackout configurations

Blackout configurations are first created, then applied to video and/or audio encodings. The encodings are then configured in an output stream. Check the overviews to ensure that blackouts are configured and applied.

1. Display services.

2. Click `Edit` icon to edit the service.

3. Open the **Encoding** tab and ensure that any expected blackout configurations display in the list.

   The configuration row lists the SCTE-35 input, trigger, timeout, and image URL. The example uses **webDeliveryAllowedFlag** and a timeout of 5000 ms.

4. Check video and audio encodings to ensure that blackout configurations are applied as expected.

5. Open the **Output** tab to ensure expected video and audio encodings display in the list.

   The list of output streams identifies each encoding and its assigned blackout configuration.

6. Return to the list of services, or edit any parameters and then save.

7. From the list of services, click `Chart` icon to view statistics.

8. Ensure that blackout configurations display as expected in the **Statistics** page.

   **Blackout status** shows the image status, last web delivery allowed flag, web delivery allowed count, and timeout count.

### Activate blackout

You can [Manually activate or deactivate a blackout](/traditional-products-and-appliances/components/live-encoder/configure/encoding/blackout-encoding#manually-activate-or-deactivate-a-blackout).

## Manually activate or deactivate a blackout

Once you have configured a [manual](/traditional-products-and-appliances/components/live-encoder/configure/encoding/blackout-encoding#configure-a-manual-blackout) or an [automated blackout](/traditional-products-and-appliances/components/live-encoder/configure/encoding/blackout-encoding#configure-an-automated-blackout) and started a service, you can manually activate or deactivate it.

<blockquote data-callout="note"><strong>Note</strong><p>Manual blackout activation/deactivation is only available if <strong>Trigger</strong> parameter is set to <strong>spliceOutSpliceIn</strong>.</p></blockquote>

The **Blackout configuration** shows **spliceOutSpliceIn** as its trigger.

1. Display statistics on [**Outputs**](/traditional-products-and-appliances/components/live-encoder/monitor-statistics#outputs).

   The **Outputs** tab shows **Activate Blackout** and **Deactivate Blackout** above the output stream information.

2. Click the **Activate Blackout** button. A message informs you that the command has been sent.

3. Click **OK**. The current video is blacked out until the specified **Timeout** (if configured); or by clicking the **Deactivate Blackout** button.
