Class Mp4Muxer.Builder
- java.lang.Object
-
- com.google.android.exoplayer2.muxer.Mp4Muxer.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder(FileOutputStream fileOutputStream)
Creates aMp4Muxer.Builder
instance with default values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mp4Muxer
build()
Builds anMp4Muxer
instance.Mp4Muxer.Builder
setAnnexBToAvccConverter(AnnexBToAvccConverter annexBToAvccConverter)
Sets theAnnexBToAvccConverter
to 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.Builder
setLastFrameDurationBehavior(@com.google.android.exoplayer2.muxer.Mp4Muxer.LastFrameDurationBehavior int lastFrameDurationBehavior)
Sets theMp4Muxer.LastFrameDurationBehavior
for the video track.
-
-
-
Constructor Detail
-
Builder
public Builder(FileOutputStream fileOutputStream)
Creates aMp4Muxer.Builder
instance with default values.- Parameters:
fileOutputStream
- TheFileOutputStream
to write the media data to.
-
-
Method Detail
-
setLastFrameDurationBehavior
@CanIgnoreReturnValue public Mp4Muxer.Builder setLastFrameDurationBehavior(@com.google.android.exoplayer2.muxer.Mp4Muxer.LastFrameDurationBehavior int lastFrameDurationBehavior)
Sets theMp4Muxer.LastFrameDurationBehavior
for the video track.The default value is
Mp4Muxer.LAST_FRAME_DURATION_BEHAVIOR_INSERT_SHORT_FRAME
.
-
setAnnexBToAvccConverter
@CanIgnoreReturnValue public Mp4Muxer.Builder setAnnexBToAvccConverter(AnnexBToAvccConverter annexBToAvccConverter)
Sets theAnnexBToAvccConverter
to 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
.
-
-