Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/media/MediaRecorder.OutputFormat#constants) \| [Inherited Methods](https://developer.android.com/reference/android/media/MediaRecorder.OutputFormat#inhmethods)

# MediaRecorder.OutputFormat

*** ** * ** ***

` public final class MediaRecorder.OutputFormat `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.media.MediaRecorder.OutputFormat |

<br />

*** ** * ** ***

Defines the output format. These constants are used with `https://developer.android.com/reference/android/media/MediaRecorder#setOutputFormat(int)`.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/media/MediaRecorder.OutputFormat#AAC_ADTS` AAC ADTS file format |
| `int` | `https://developer.android.com/reference/android/media/MediaRecorder.OutputFormat#AMR_NB` AMR NB file format |
| `int` | `https://developer.android.com/reference/android/media/MediaRecorder.OutputFormat#AMR_WB` AMR WB file format |
| `int` | `https://developer.android.com/reference/android/media/MediaRecorder.OutputFormat#DEFAULT` <br /> |
| `int` | `https://developer.android.com/reference/android/media/MediaRecorder.OutputFormat#MPEG_2_TS` H.264/AAC data encapsulated in MPEG2/TS |
| `int` | `https://developer.android.com/reference/android/media/MediaRecorder.OutputFormat#MPEG_4` MPEG4 media file format |
| `int` | `https://developer.android.com/reference/android/media/MediaRecorder.OutputFormat#OGG` Opus data in a Ogg container |
| `int` | `https://developer.android.com/reference/android/media/MediaRecorder.OutputFormat#RAW_AMR` *This constant was deprecated in API level 16. Deprecated in favor of MediaRecorder.OutputFormat.AMR_NB* |
| `int` | `https://developer.android.com/reference/android/media/MediaRecorder.OutputFormat#THREE_GPP` 3GPP media file format |
| `int` | `https://developer.android.com/reference/android/media/MediaRecorder.OutputFormat#WEBM` VP8/VORBIS data in a WEBM container |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### AAC_ADTS

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

```
public static final int AAC_ADTS
```

AAC ADTS file format

<br />

Constant Value: 6 (0x00000006)

### AMR_NB

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

```
public static final int AMR_NB
```

AMR NB file format

<br />

Constant Value: 3 (0x00000003)

### AMR_WB

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

```
public static final int AMR_WB
```

AMR WB file format

<br />

Constant Value: 4 (0x00000004)

### DEFAULT

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

```
public static final int DEFAULT
```

<br />

<br />

Constant Value: 0 (0x00000000)

### MPEG_2_TS

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

```
public static final int MPEG_2_TS
```

H.264/AAC data encapsulated in MPEG2/TS

<br />

Constant Value: 8 (0x00000008)

### MPEG_4

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

```
public static final int MPEG_4
```

MPEG4 media file format

<br />

Constant Value: 2 (0x00000002)

### OGG

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

```
public static final int OGG
```

Opus data in a Ogg container

<br />

Constant Value: 11 (0x0000000b)

### RAW_AMR

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

```
public static final int RAW_AMR
```

<br />

**This constant was deprecated in API level 16.**   

Deprecated in favor of MediaRecorder.OutputFormat.AMR_NB

AMR NB file format

<br />

Constant Value: 3 (0x00000003)

### THREE_GPP

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

```
public static final int THREE_GPP
```

3GPP media file format

<br />

Constant Value: 1 (0x00000001)

### WEBM

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

```
public static final int WEBM
```

VP8/VORBIS data in a WEBM container

<br />

Constant Value: 9 (0x00000009)