public class MP4Muxer extends Object implements Muxer
| Modifier and Type | Field and Description |
|---|---|
protected long |
mdatOffset |
protected SeekableByteChannel |
out |
| Constructor and Description |
|---|
MP4Muxer(SeekableByteChannel output,
FileTypeBox ftyp) |
protected long mdatOffset
protected SeekableByteChannel out
public MP4Muxer(SeekableByteChannel output, FileTypeBox ftyp) throws IOException
IOExceptionpublic static MP4Muxer createMP4MuxerToChannel(SeekableByteChannel output) throws IOException
IOExceptionpublic static MP4Muxer createMP4Muxer(SeekableByteChannel output, Brand brand) throws IOException
IOExceptionpublic TimecodeMP4MuxerTrack addTimecodeTrack()
public CodecMP4MuxerTrack addTrackWithId(MP4TrackType type, Codec codec, int trackId)
public int getNextTrackId()
public <T extends AbstractMP4MuxerTrack> T addTrack(T track)
public boolean hasTrackId(int trackId)
public List<AbstractMP4MuxerTrack> getTracks()
public void finish()
throws IOException
Muxerfinish in interface MuxerIOExceptionpublic void storeHeader(MovieBox movie) throws IOException
IOExceptionpublic MovieBox finalizeHeader() throws IOException
IOExceptionpublic AbstractMP4MuxerTrack getVideoTrack()
public AbstractMP4MuxerTrack getTimecodeTrack()
public List<AbstractMP4MuxerTrack> getAudioTracks()
public PCMMP4MuxerTrack addPCMAudioTrack(AudioFormat format)
public CodecMP4MuxerTrack addCompressedAudioTrack(Codec codec, AudioFormat format)
public MuxerTrack addVideoTrack(Codec codec, VideoCodecMeta meta)
MuxeraddVideoTrack in interface Muxercodec - Codec type stored in this track.meta - Video metadata including the codec type.public MuxerTrack addAudioTrack(Codec codec, AudioCodecMeta meta)
MuxeraddAudioTrack in interface Muxercodec - Codec type stored in this track.meta - Audio metadata including the codec type.Copyright © 2019. All rights reserved.