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
IOException
public static MP4Muxer createMP4MuxerToChannel(SeekableByteChannel output) throws IOException
IOException
public static MP4Muxer createMP4Muxer(SeekableByteChannel output, Brand brand) throws IOException
IOException
public 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
Muxer
finish
in interface Muxer
IOException
public void storeHeader(MovieBox movie) throws IOException
IOException
public MovieBox finalizeHeader() throws IOException
IOException
public 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)
Muxer
addVideoTrack
in interface Muxer
codec
- Codec type stored in this track.meta
- Video metadata including the codec type.public MuxerTrack addAudioTrack(Codec codec, AudioCodecMeta meta)
Muxer
addAudioTrack
in interface Muxer
codec
- Codec type stored in this track.meta
- Audio metadata including the codec type.Copyright © 2019. All rights reserved.