# MediaMuxer.OutputFormat

Added in[API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# OutputFormat

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/media/MediaMuxer.OutputFormat "View this page in Java")  

```
class OutputFormat
```

|---|--------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                 ||
| ↳ | [android.media.MediaMuxer.OutputFormat](https://developer.android.com/reference/kotlin/android/media/MediaMuxer.OutputFormat#) |

Defines the output format. These constants are used with constructor.

## Summary

|                                                                                                                      Constants                                                                                                                       ||
|----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MUXER_OUTPUT_3GPP](https://developer.android.com/reference/kotlin/android/media/MediaMuxer.OutputFormat#MUXER_OUTPUT_3GPP:kotlin.Int) 3GPP media file format      |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MUXER_OUTPUT_HEIF](https://developer.android.com/reference/kotlin/android/media/MediaMuxer.OutputFormat#MUXER_OUTPUT_HEIF:kotlin.Int) HEIF media file format      |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MUXER_OUTPUT_MPEG_4](https://developer.android.com/reference/kotlin/android/media/MediaMuxer.OutputFormat#MUXER_OUTPUT_MPEG_4:kotlin.Int) MPEG4 media file format |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MUXER_OUTPUT_OGG](https://developer.android.com/reference/kotlin/android/media/MediaMuxer.OutputFormat#MUXER_OUTPUT_OGG:kotlin.Int) Ogg media file format         |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MUXER_OUTPUT_WEBM](https://developer.android.com/reference/kotlin/android/media/MediaMuxer.OutputFormat#MUXER_OUTPUT_WEBM:kotlin.Int) WEBM media file format      |

## Constants

### MUXER_OUTPUT_3GPP

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val MUXER_OUTPUT_3GPP: Int
```

3GPP media file format  

    Value: 2

### MUXER_OUTPUT_HEIF

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val MUXER_OUTPUT_HEIF: Int
```

HEIF media file format  

    Value: 3

### MUXER_OUTPUT_MPEG_4

Added in[API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val MUXER_OUTPUT_MPEG_4: Int
```

MPEG4 media file format  

    Value: 0

### MUXER_OUTPUT_OGG

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val MUXER_OUTPUT_OGG: Int
```

Ogg media file format  

    Value: 4

### MUXER_OUTPUT_WEBM

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val MUXER_OUTPUT_WEBM: Int
```

WEBM media file format  

    Value: 1