public class PassThroughTrackTranscoder extends java.lang.Object implements TrackTranscoder
| Constructor and Description |
|---|
PassThroughTrackTranscoder(android.media.MediaExtractor extractor,
int trackIndex,
QueuedMuxer muxer,
QueuedMuxer.SampleType sampleType,
long maxVideoDuration) |
| Modifier and Type | Method and Description |
|---|---|
android.media.MediaFormat |
getDeterminedFormat()
Get actual MediaFormat which is used to write to muxer.
|
long |
getWrittenPresentationTimeUs()
Get presentation time of last sample written to muxer.
|
boolean |
isFinished() |
void |
release() |
void |
setup() |
boolean |
stepPipeline()
Step pipeline if output is available in any step of it.
|
public PassThroughTrackTranscoder(android.media.MediaExtractor extractor,
int trackIndex,
QueuedMuxer muxer,
QueuedMuxer.SampleType sampleType,
long maxVideoDuration)
public void setup()
setup in interface TrackTranscoderpublic android.media.MediaFormat getDeterminedFormat()
TrackTranscoderTrackTranscoder.stepPipeline() several times.getDeterminedFormat in interface TrackTranscodernull if not yet determined.public boolean stepPipeline()
TrackTranscoderstepPipeline in interface TrackTranscoderpublic long getWrittenPresentationTimeUs()
TrackTranscodergetWrittenPresentationTimeUs in interface TrackTranscoderpublic boolean isFinished()
isFinished in interface TrackTranscoderpublic void release()
release in interface TrackTranscoder