> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# GopSize

Class · [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)

GOP size (keyframe interval). Use the static factory methods to specify in frames or seconds.

The value must be greater than zero. When expressed in frames it must be a whole number;
when expressed in seconds it may be fractional.

Obtainable from: GopSize.frames, GopSize.seconds

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/video-codec-settings.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-medialive-alpha/lib/video-codec-settings.ts#L222)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
const gopSize = medialive_alpha.GopSize.frames(123);
```

Python:

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

gop_size = medialive_alpha.GopSize.frames(123)
```

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.medialive.alpha.*;

GopSize gopSize = GopSize.frames(123);
```

C#:

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

var gopSize = GopSize.Frames(123);
```

Go:

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

gopSize := medialive_alpha.GopSize_Frames(jsii.Number(123))
```

## Methods

- `frames(value: number): GopSize // chainable` (static) — GOP size in frames.

  Must be a whole number.

- `seconds(value: number): GopSize // chainable` (static) — GOP size in seconds.

  May be fractional (e.g. `1.5`).
