# VideoEncodingProfile

> Use the options in this enumeration to change the encoder profile.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public enum VideoEncodingProfile
```

## Remarks

H.264 profiles (Baseline, Main, and High) are compression and encoding standards that determine how the [MediaEncoder](/engine/6000.5/script-reference/unityeditor/media/mediaencoder.md) compresses and encodes video files during recording. You can use the `MediaEncoder` to encode clips and choose the encoding profile via C#. The encoding profile you select influences the compatibility and compression efficiency of the H.264 codec. To record video, you can use the [Unity Recorder](https://docs.unity3d.com/Packages/com.unity.recorder@5.1/manual/index.html), which uses the `MediaEncoder` in its implementation, or you can implement your own custom recording logic to work directly with the `MediaEncoder` API.

For a code example, refer to [H264EncoderAttributes](/engine/6000.5/script-reference/unityeditor/media/h264encoderattributes.md).

This enum isn’t exposed in [VideoClipImporter](/engine/6000.5/script-reference/unityeditor/videoclipimporter.md), so when you transcode video clips to H.264 during an import, Unity uses the baseline profile for maximum stability and compatibility.

## Fields

| Value                                                                                            | Description                                                                                                |
| ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- |
| [H264Baseline](/engine/6000.5/script-reference/unityeditor/videoencodingprofile/h264baseline.md) | Encode video with the H.264 Baseline profile, the simplest profile with the broadest device compatibility. |
| [H264High](/engine/6000.5/script-reference/unityeditor/videoencodingprofile/h264high.md)         | Encode video with the H.264 High profile, the most advanced profile for high-definition content.           |
| [H264Main](/engine/6000.5/script-reference/unityeditor/videoencodingprofile/h264main.md)         | Encode video with the H.264 Main profile, the mid-tier option for standard-definition content.             |
