androidx.media3.transformer


Annotations

AssetLoader.SupportedOutputTypes

Supported output types of an asset loader.

Composition.HdrMode

The strategy to use to transcode or edit High Dynamic Range (HDR) input video.

ExportException.ErrorCode

Error codes that identify causes of Transformer errors.

SampleConsumer.InputResult

Specifies the result of an input operation.

TransformationException.ErrorCode

Error codes that identify causes of Transformer errors.

Transformer.ProgressState

Progress state.

VideoEncoderSettings.BitrateMode

The allowed values for bitrateMode.

Interfaces

AssetLoader

Provides media data to a Transformer.

AssetLoader.Factory

A factory for AssetLoader instances.

AssetLoader.Listener

A listener of AssetLoader events.

AudioMixer

An audio component which combines audio data from multiple sources into a single output.

AudioMixer.Factory

A factory for AudioMixer instances.

Codec

Provides a layer of abstraction for interacting with decoders and encoders.

Codec.DecoderFactory

A factory for decoder instances.

Codec.EncoderFactory

A factory for encoder instances.

DefaultDecoderFactory.Listener

Listener for decoder factory events.

EncoderSelector

Selector of MediaCodec encoder instances.

InAppMuxer.MetadataProvider

Provides metadata to add in the output MP4 file.

SampleConsumer

Consumer of encoded media samples, raw audio or raw video frames.

SurfaceAssetLoader.Callback

Callbacks for SurfaceAssetLoader events.

Transformer.Listener

A listener for the export events.

Classes

AssetLoader.CompositionSettings

Customizations set on the composition-level that are needed when loading each of the individual assets in the Composition.

AudioEncoderSettings

Represents the audio encoder settings.

AudioEncoderSettings.Builder

Builds AudioEncoderSettings instances.

Composition

A composition of MediaItem instances, with transformations to apply to them.

Composition.Builder

A builder for Composition instances.

DefaultAssetLoaderFactory

The default AssetLoader.Factory implementation.

DefaultAudioMixer

An AudioMixer that incrementally mixes source audio into a fixed size mixing buffer.

DefaultAudioMixer.Factory

An AudioMixer.Factory implementation for DefaultAudioMixer instances.

DefaultCodec

A default Codec implementation that uses MediaCodec.

DefaultDecoderFactory

Default implementation of Codec.DecoderFactory that uses MediaCodec for decoding.

DefaultDecoderFactory.Builder

A builder for DefaultDecoderFactory instances.

DefaultEncoderFactory

A default implementation of Codec.EncoderFactory.

DefaultEncoderFactory.Builder

A builder for DefaultEncoderFactory instances.

DefaultMuxer

A default Muxer implementation.

DefaultMuxer.Factory

A Muxer.Factory for DefaultMuxer.

EditedMediaItem

A MediaItem with the transformations to apply to it.

EditedMediaItem.Builder

A builder for EditedMediaItem instances.

EditedMediaItemSequence

A sequence of EditedMediaItem instances.

EditedMediaItemSequence.Builder

A builder for instances of EditedMediaItemSequence.

Effects

Effects to apply to a MediaItem or to a Composition.

EncoderUtil

Utility methods for MediaCodec encoders.

ExoPlayerAssetLoader

An AssetLoader implementation that uses an ExoPlayer to load samples.

ExoPlayerAssetLoader.Factory

An AssetLoader.Factory for ExoPlayerAssetLoader instances.

ExperimentalAnalyzerModeFactory

Factory for creating instances of Transformer that can be used to analyze media.

ExportException.CodecInfo

The Codec details.

ExportResult

Information about the result of an export.

ExportResult.Builder

A builder for ExportResult instances.

ExportResult.ProcessedInput

An input entirely or partially processed.

ImageAssetLoader

An AssetLoader implementation that loads images into Bitmap instances.

ImageAssetLoader.Factory

An AssetLoader.Factory for ImageAssetLoader instances.

InAppMuxer

Muxer implementation that uses an Mp4Muxer or FragmentedMp4Muxer.

InAppMuxer.Factory

Muxer.Factory for InAppMuxer.

InAppMuxer.Factory.Builder

A builder for Factory instances.

JsonUtil

Utilities for working with JSON

ProgressHolder

Holds a progress percentage.

RawAssetLoader

An AssetLoader implementation that loads raw audio and/or video data.

SurfaceAssetLoader

Asset loader that outputs video data passed to its input Surface.

SurfaceAssetLoader.Factory

Factory for SurfaceAssetLoader instances.

TextureAssetLoader

This class is deprecated.

Use RawAssetLoader.

TransformationRequest

A media transformation request.

TransformationRequest.Builder

A builder for TransformationRequest instances.

TransformationResult

This class is deprecated.

Use ExportResult instead.

TransformationResult.Builder

This class is deprecated.

Use ExportResult.Builder instead.

TransformationResult.ProcessedInput

This class is deprecated.

Use ExportResult.ProcessedInput instead.

Transformer

A transformer to export media inputs.

Transformer.Builder

A builder for Transformer instances.

TransformerUtil

Utility methods for Transformer.

VideoEncoderSettings

Represents the video encoder settings.

VideoEncoderSettings.Builder

Builds VideoEncoderSettings instances.

Exceptions

ExportException

Thrown when a non-locally recoverable export failure occurs.

TransformationException

This class is deprecated.

Use ExportException instead.