DefaultVideoStrategy.Builder with a AspectRatioResizer
using given aspect ratio value.Resizer that crops the input size to match the given
aspect ratio, respecting the source portrait or landscape-ness.DefaultVideoStrategy.Builder with an AtMostResizer
using given constraint.DefaultVideoStrategy.Builder with an AtMostResizer
using given constraints.Resizer that scales down the input size so that its dimension
is smaller or equal to a certain value.TimeInterpolator that altered the sample timestamp.TrackTranscoder that reads
from MediaExtractor and does feeding and draining job.DataSource that provides a silent audio track of the a specific duration.DefaultAudioStrategy.Builder.DataSource that clips the inner source within the given interval.AudioStretcher meant to be used when output size is smaller than the input.DataSource wrapper that simply delegates all methods to the
wrapped source.AudioResampler that delegates to appropriate classes
based on input and output size.TrackStrategy for audio that converts it to AAC with the given number
of channels.AudioStretcher that delegates to appropriate classes
based on input and output size.DataSink implementation that:
- Uses MediaMuxer to collect data
- Creates an output file with the readable mediaTimeInterpolator that does no time interpolation or correction -
it just returns the input time.Validator to understand whether to keep going with the
transcoding process or to abort and notify the listener.DefaultVideoStrategy.TrackStrategy for video that converts it AVC with the given size.AudioRemixer that downmixes stereo audio to mono.AudioResampler that downsamples from a higher sample rate to a lower sample rate.DefaultVideoStrategy.Builder with an ExactResizer
using given dimensions.Resizer that returns the exact dimensions that were passed to the constructor.Size that knows about which dimension is width
and which is height.DataSource backed by a file descriptor.DataSource backed by a file absolute path.DefaultVideoStrategy that uses 360x480 (3:4),
ensured to work for 3:4 videos as explained by
https://developer.android.com/guide/topics/media/media-formatsDefaultVideoStrategy that uses 720x1280.DefaultVideoStrategy.Builder with a FractionResizer
using given downscale fraction.Resizer that reduces the input size by the given fraction.AudioStretcher meant to be used when output size is bigger than the input.Transcoder.transcode(TranscoderOptions), which means it can be
passed to TranscoderListener.onTranscodeFailed(Throwable).Resizer that applies a chain of multiple resizers.AudioRemixer that does nothing.AudioResampler that does nothing, meant to be used when sample
rates are identical.AudioStretcher that copies input into output.Resizer that returns the input size unchanged.TrackStrategy that asks the encoder to keep this track as is.TrackStrategy that removes this track from output.DefaultVideoStrategy
to compute the output size.DataSource.getTrackFormat(TrackType),
to select the given track.AudioResampler to change the sample rate of audio
frames when sample rate conversion is needed.AudioStretcher to perform stretching of audio samples
as a consequence of speed and time interpolator changes.TranscoderListener callbacks.TranscoderOptions.Builder.setTimeInterpolator(TimeInterpolator)
and passing a SpeedTimeInterpolator.TimeInterpolator to change the frames timestamps - either video or
audio or both - before they are written into the output file.TrackTranscoders when they have an output format.TimeInterpolator that modifies the playback speed by the given
float factor.Buffer.remaining() value of both.TranscoderListener.onTranscodeCompleted(int):
transcoding was not executed because it was considered
not necessary by the Validator.TranscoderListener.onTranscodeCompleted(int).Transcoder.DataSource that trims the inner source at both ends.AudioRemixer that upmixes mono audio to stereo.AudioResampler that upsamples from a lower sample rate to a higher sample rate.DataSource backed by an Uri, possibly
a content:// uri.TrackStrategy have
provided the output format.Validator that always writes to target file, no matter the track status,
presence of tracks and so on.TrackTranscoders to write data into this sink.Validator that gives priority to the video track.