# EncodingParametersProperty

A collection of parameters that determine how MediaConnect will convert the content.

These fields only apply to outputs on flows that have a CDI source.

- Source: Generated at build time
- Type last changed: v2.143.0 · 24 May 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediaconnect as mediaconnect } from 'aws-cdk-lib';
const encodingParametersProperty: mediaconnect.CfnFlowOutput.EncodingParametersProperty = {
  compressionFactor: 123,

  // the properties below are optional
  encoderProfile: 'encoderProfile',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediaconnect as mediaconnect

encoding_parameters_property = mediaconnect.CfnFlowOutput.EncodingParametersProperty(
    compression_factor=123,

    # the properties below are optional
    encoder_profile="encoderProfile"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediaconnect.*;

EncodingParametersProperty encodingParametersProperty = EncodingParametersProperty.builder()
        .compressionFactor(123)

        // the properties below are optional
        .encoderProfile("encoderProfile")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaConnect;

var encodingParametersProperty = new EncodingParametersProperty {
    CompressionFactor = 123,

    // the properties below are optional
    EncoderProfile = "encoderProfile"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

encodingParametersProperty := &EncodingParametersProperty{
	CompressionFactor: jsii.Number(123),

	// the properties below are optional
	EncoderProfile: jsii.String("encoderProfile"),
}
```

## Properties

- `compressionFactor`: number (required) — A value that is used to calculate compression for an output.

  The bitrate of the output is calculated as follows: Output bitrate = (1 / compressionFactor) * (source bitrate) This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. Valid values are floating point numbers in the range of 3.0 to 10.0, inclusive.

- `encoderProfile`: string — A setting on the encoder that drives compression settings.

  This property only applies to video media streams associated with outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol.
