# EditedMediaItem

Artifact: [androidx.media3:media3-transformer](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/transformer/EditedMediaItem.java+class:androidx.media3.transformer.EditedMediaItem)

*** ** * ** ***


```
@UnstableApi
class EditedMediaItem
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` with the transformations to apply to it.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem.Builder` A builder for `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem` instances. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem.Builder!` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#buildUpon()()` Returns a `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem.Builder` initialized with the values of this instance. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#durationUs()` The duration of the image in the output video for image `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`, or the original media duration for other types of `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`, in microseconds. |
| `https://developer.android.com/reference/kotlin/androidx/media3/transformer/Effects!` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#effects()` The `https://developer.android.com/reference/kotlin/androidx/media3/transformer/Effects` to apply to the `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#mediaItem()`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#flattenForSlowMotion()` Whether to flatten the `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#mediaItem()` if it contains slow motion markers. |
| `@https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 1) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#frameRate()` The frame rate of the image in the output video, in frames per second. |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#mediaItem()` The `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` on which transformations are applied. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#removeAudio()` Whether to remove the audio from the `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#mediaItem()`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#removeVideo()` Whether to remove the video from the `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#mediaItem()`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/SpeedParameters!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/ExperimentalApi https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#speedParameters()` |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/audio/SpeedProvider!` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#speedProvider()` |

## Public functions

### buildUpon

```
fun buildUpon(): EditedMediaItem.Builder!
```

Returns a `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem.Builder` initialized with the values of this instance.

### toString

```
fun toString(): String!
```

## Public properties

### durationUs

```
val durationUs: Long
```

The duration of the image in the output video for image `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`, or the original media duration for other types of `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`, in microseconds.

### effects

```
val effects: Effects!
```

The `https://developer.android.com/reference/kotlin/androidx/media3/transformer/Effects` to apply to the `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#mediaItem()`.

### flattenForSlowMotion

```
val flattenForSlowMotion: Boolean
```

Whether to flatten the `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#mediaItem()` if it contains slow motion markers.

The flattened output is obtained by removing the slow motion metadata and by actually slowing down the parts of the video and audio streams defined in this metadata.

Only Samsung Extension Format (SEF) slow motion metadata type is supported. Flattening has no effect if the input does not contain this metadata type.

For SEF slow motion media, the following assumptions are made on the input:

- The input container format is (unfragmented) MP4.
- The input contains an AVC video elementary stream with temporal SVC.
- The recording frame rate of the video is 120 or 240 fps.

### frameRate

```
val frameRate: @IntRange(from = 1) Int
```

The frame rate of the image in the output video, in frames per second.

### mediaItem

```
val mediaItem: MediaItem!
```

The `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` on which transformations are applied.

### removeAudio

```
val removeAudio: Boolean
```

Whether to remove the audio from the `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#mediaItem()`.

### removeVideo

```
val removeVideo: Boolean
```

Whether to remove the video from the `https://developer.android.com/reference/kotlin/androidx/media3/transformer/EditedMediaItem#mediaItem()`.

### speedParameters

```
@ExperimentalApi
val speedParameters: SpeedParameters!
```

### speedProvider

```
val speedProvider: SpeedProvider!
```