public abstract class AbstractMP4MuxerTrack extends Object implements MuxerTrack
Modifier and Type | Field and Description |
---|---|
protected int |
_timescale |
protected long |
chunkDuration |
protected int |
chunkNo |
protected List<ByteBuffer> |
curChunk |
protected List<Edit> |
edits |
protected boolean |
finished |
protected static int |
NO_TIMESCALE_SET |
protected SeekableByteChannel |
out |
protected List<SampleEntry> |
sampleEntries |
protected List<SampleToChunkBox.SampleToChunkEntry> |
samplesInChunks |
protected int |
samplesInLastChunk |
protected Rational |
tgtChunkDuration |
protected Unit |
tgtChunkDurationUnit |
protected int |
trackId |
protected MP4TrackType |
type |
Constructor and Description |
---|
AbstractMP4MuxerTrack(int trackId,
MP4TrackType type) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDref(NodeBox minf) |
AbstractMP4MuxerTrack |
addSampleEntry(SampleEntry se) |
protected abstract Box |
finish(MovieHeaderBox mvhd) |
Size |
getDisplayDimensions() |
List<SampleEntry> |
getEntries() |
protected int |
getTimescale() |
int |
getTrackId() |
abstract long |
getTrackTotalDuration() |
MP4TrackType |
getType() |
boolean |
isAudio() |
boolean |
isTimecode() |
boolean |
isVideo() |
protected void |
mediaHeader(MediaInfoBox minf,
MP4TrackType type) |
protected void |
putEdits(TrakBox trak) |
protected void |
putName(TrakBox trak) |
void |
setEdits(List<Edit> edits) |
void |
setName(String name) |
void |
setTgtChunkDuration(Rational duration,
Unit unit) |
void |
tapt(TrakBox trak) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFrame
protected static final int NO_TIMESCALE_SET
protected int trackId
protected MP4TrackType type
protected int _timescale
protected Rational tgtChunkDuration
protected Unit tgtChunkDurationUnit
protected long chunkDuration
protected List<ByteBuffer> curChunk
protected List<SampleToChunkBox.SampleToChunkEntry> samplesInChunks
protected int samplesInLastChunk
protected int chunkNo
protected boolean finished
protected List<SampleEntry> sampleEntries
protected SeekableByteChannel out
public AbstractMP4MuxerTrack(int trackId, MP4TrackType type)
public abstract long getTrackTotalDuration()
protected abstract Box finish(MovieHeaderBox mvhd) throws IOException
IOException
public boolean isVideo()
public boolean isTimecode()
public boolean isAudio()
public MP4TrackType getType()
public int getTrackId()
public Size getDisplayDimensions()
public void tapt(TrakBox trak)
public AbstractMP4MuxerTrack addSampleEntry(SampleEntry se)
public List<SampleEntry> getEntries()
protected void putEdits(TrakBox trak)
public void setName(String name)
protected void putName(TrakBox trak)
protected void mediaHeader(MediaInfoBox minf, MP4TrackType type)
protected void addDref(NodeBox minf)
protected int getTimescale()
Copyright © 2019. All rights reserved.