Class Mp4Muxer.Builder
- java.lang.Object
-
- com.google.android.exoplayer2.muxer.Mp4Muxer.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder(FileOutputStream fileOutputStream)Creates aMp4Muxer.Builderinstance with default values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mp4Muxerbuild()Builds anMp4Muxerinstance.Mp4Muxer.BuildersetAnnexBToAvccConverter(AnnexBToAvccConverter annexBToAvccConverter)Sets theAnnexBToAvccConverterto be used by the muxer to convert H.264 and H.265 NAL units from the Annex-B format (using start codes to delineate NAL units) to the AVCC format (which uses length prefixes).Mp4Muxer.BuildersetLastFrameDurationBehavior(@com.google.android.exoplayer2.muxer.Mp4Muxer.LastFrameDurationBehavior int lastFrameDurationBehavior)Sets theMp4Muxer.LastFrameDurationBehaviorfor the video track.
-
-
-
Constructor Detail
-
Builder
public Builder(FileOutputStream fileOutputStream)
Creates aMp4Muxer.Builderinstance with default values.- Parameters:
fileOutputStream- TheFileOutputStreamto write the media data to.
-
-
Method Detail
-
setLastFrameDurationBehavior
@CanIgnoreReturnValue public Mp4Muxer.Builder setLastFrameDurationBehavior(@com.google.android.exoplayer2.muxer.Mp4Muxer.LastFrameDurationBehavior int lastFrameDurationBehavior)
Sets theMp4Muxer.LastFrameDurationBehaviorfor the video track.The default value is
Mp4Muxer.LAST_FRAME_DURATION_BEHAVIOR_INSERT_SHORT_FRAME.
-
setAnnexBToAvccConverter
@CanIgnoreReturnValue public Mp4Muxer.Builder setAnnexBToAvccConverter(AnnexBToAvccConverter annexBToAvccConverter)
Sets theAnnexBToAvccConverterto be used by the muxer to convert H.264 and H.265 NAL units from the Annex-B format (using start codes to delineate NAL units) to the AVCC format (which uses length prefixes).The default value is
AnnexBToAvccConverter.DEFAULT.
-
-