@UnstableApi
class ExportResult


Information about the result of an export.

Summary

Nested types

A builder for ExportResult instances.

An input entirely or partially processed.

Constants

const Int

The output file doesn't contain this track type.

const Int

The track was transcoded.

const Int

The track was transmuxed.

const Int

The track was both transcoded and transmuxed.

const Int

Trim optimization was requested, but it would not improve performance because of key frame placement.

const Int

The requested optimization would not improve performance for a reason other than the ones specified above, so it was abandoned.

const Int

Trim optimization was requested, but it would not improve performance because another transformation that requires transcoding was also requested.

const Int

The optimization failed because mp4 metadata extraction failed (possibly because the file wasn't an mp4 file).

const Int

The optimization failed because the format between the two parts of the media to be put together did not match.

const Int

No optimizations were applied since none were requested.

const Int

The optimization was successfully applied.

Public properties

Int

Returns the ConversionProcess taken to create the audio track in the output file.

String?

The name of the audio encoder used, or null if none were used.

String?

The output audio mime type, or null if unset or unknown.

Int

The average bitrate of the audio track data, or RATE_UNSET_INT if unset or unknown.

Int

The average bitrate of the video track data, or RATE_UNSET_INT if unset or unknown.

Int

The channel count of the audio, or LENGTH_UNSET if unset or unknown.

ColorInfo?

The ColorInfo of the video, or null if unset or unknown.

Long

The duration of the file in milliseconds, or TIME_UNSET if unset or unknown.

ExportException?

The ExportException that caused the export to fail, or null if the export was a success.

Long

The size of the file in bytes, or LENGTH_UNSET if unset or unknown.

Int

The height of the video, or LENGTH_UNSET if unset or unknown.

Int

The result of any requested optimizations.

Int

The sample rate of the audio, or RATE_UNSET_INT if unset or unknown.

Int

Returns the ConversionProcess taken to create the video track in the output file.

String?

The name of the video encoder used, or null if none were used.

Int

The number of video frames.

String?

The output video mime type, or null if unset or unknown.

Int

The width of the video, or LENGTH_UNSET if unset or unknown.

Constants

CONVERSION_PROCESS_NA

const val CONVERSION_PROCESS_NA = 0: Int

The output file doesn't contain this track type.

CONVERSION_PROCESS_TRANSCODED

const val CONVERSION_PROCESS_TRANSCODED = 1: Int

The track was transcoded.

CONVERSION_PROCESS_TRANSMUXED

const val CONVERSION_PROCESS_TRANSMUXED = 2: Int

The track was transmuxed.

CONVERSION_PROCESS_TRANSMUXED_AND_TRANSCODED

const val CONVERSION_PROCESS_TRANSMUXED_AND_TRANSCODED = 3: Int

The track was both transcoded and transmuxed.

OPTIMIZATION_ABANDONED_KEYFRAME_PLACEMENT_OPTIMAL_FOR_TRIM

const val OPTIMIZATION_ABANDONED_KEYFRAME_PLACEMENT_OPTIMAL_FOR_TRIM = 2: Int

Trim optimization was requested, but it would not improve performance because of key frame placement. The optimization was abandoned and normal export proceeded.

The trim optimization does not improve performance when the requested startPositionUs is at a key frame, or when there are no key frames between the requested startPositionUs and endPositionUs

OPTIMIZATION_ABANDONED_OTHER

const val OPTIMIZATION_ABANDONED_OTHER = 4: Int

The requested optimization would not improve performance for a reason other than the ones specified above, so it was abandoned. Normal export proceeded.

OPTIMIZATION_ABANDONED_TRIM_AND_TRANSCODING_TRANSFORMATION_REQUESTED

const val OPTIMIZATION_ABANDONED_TRIM_AND_TRANSCODING_TRANSFORMATION_REQUESTED = 3: Int

Trim optimization was requested, but it would not improve performance because another transformation that requires transcoding was also requested. The optimization was abandoned and normal export proceeded.

OPTIMIZATION_FAILED_EXTRACTION_FAILED

const val OPTIMIZATION_FAILED_EXTRACTION_FAILED = 5: Int

The optimization failed because mp4 metadata extraction failed (possibly because the file wasn't an mp4 file). Normal export proceeded.

OPTIMIZATION_FAILED_FORMAT_MISMATCH

const val OPTIMIZATION_FAILED_FORMAT_MISMATCH = 6: Int

The optimization failed because the format between the two parts of the media to be put together did not match. Normal export proceeded.

OPTIMIZATION_NONE

const val OPTIMIZATION_NONE = 0: Int

No optimizations were applied since none were requested.

OPTIMIZATION_SUCCEEDED

const val OPTIMIZATION_SUCCEEDED = 1: Int

The optimization was successfully applied.

Public functions

buildUpon

fun buildUpon(): ExportResult.Builder!

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

audioConversionProcess

val audioConversionProcessInt

Returns the ConversionProcess taken to create the audio track in the output file.

audioEncoderName

val audioEncoderNameString?

The name of the audio encoder used, or null if none were used.

audioMimeType

val audioMimeTypeString?

The output audio mime type, or null if unset or unknown.

averageAudioBitrate

val averageAudioBitrateInt

The average bitrate of the audio track data, or RATE_UNSET_INT if unset or unknown.

averageVideoBitrate

val averageVideoBitrateInt

The average bitrate of the video track data, or RATE_UNSET_INT if unset or unknown.

channelCount

val channelCountInt

The channel count of the audio, or LENGTH_UNSET if unset or unknown.

colorInfo

val colorInfoColorInfo?

The ColorInfo of the video, or null if unset or unknown.

durationMs

val durationMsLong

The duration of the file in milliseconds, or TIME_UNSET if unset or unknown.

exportException

val exportExceptionExportException?

The ExportException that caused the export to fail, or null if the export was a success.

fileSizeBytes

val fileSizeBytesLong

The size of the file in bytes, or LENGTH_UNSET if unset or unknown.

height

val heightInt

The height of the video, or LENGTH_UNSET if unset or unknown.

optimizationResult

val optimizationResultInt

The result of any requested optimizations.

sampleRate

val sampleRateInt

The sample rate of the audio, or RATE_UNSET_INT if unset or unknown.

videoConversionProcess

val videoConversionProcessInt

Returns the ConversionProcess taken to create the video track in the output file.

videoEncoderName

val videoEncoderNameString?

The name of the video encoder used, or null if none were used.

videoFrameCount

val videoFrameCountInt

The number of video frames.

videoMimeType

val videoMimeTypeString?

The output video mime type, or null if unset or unknown.

width

val widthInt

The width of the video, or LENGTH_UNSET if unset or unknown.