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

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.

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

## Example

```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);
```

## 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`).
