Effects
@UnstableApi
public final class Effects
Effects to apply to a MediaItem or to a Composition.
Summary
Public fields |
|
|---|---|
final ImmutableList<AudioProcessor> |
The list of |
final ImmutableList<Effect> |
The list of |
Public constructors |
|---|
Effects(Creates an instance. |
Public methods |
|
|---|---|
static Pair<AudioProcessor, Effect> |
This method is deprecated. Use |
String |
toString() |
Public fields
audioProcessors
public final ImmutableList<AudioProcessor> audioProcessors
The list of audio processors to apply to audio buffers. They are applied in the order of the list, and buffers will only be modified by that AudioProcessor if it isActive based on the current configuration.
videoEffects
public final ImmutableList<Effect> videoEffects
The list of video effects to apply to each frame. They are applied in the order of the list.
Public constructors
Effects
public Effects(
List<AudioProcessor> audioProcessors,
List<Effect> videoEffects
)
Creates an instance.
| Parameters | |
|---|---|
List<AudioProcessor> audioProcessors |
The |
List<Effect> videoEffects |
The |
Public methods
createExperimentalSpeedChangingEffect
public static Pair<AudioProcessor, Effect>createExperimentalSpeedChangingEffect(SpeedProvider speedProvider)
Creates an interlinked audio processor and video effect that changes the speed of media samples in segments of the input file specified by the given SpeedProvider.
The audio processor and video effect are interlinked to help maintain A/V sync. When using Transformer, if the input file doesn't have audio, or audio is being removed, you may have to include TRACK_TYPE_AUDIO in the trackTypes of the EditedMediaItemSequence for the interlinked effects to function correctly. Alternatively, you can use SpeedChangeEffect when the input has no audio.
| Parameters | |
|---|---|
SpeedProvider speedProvider |
The |