org.jcodec.containers.mp4.muxer
Class AbstractMP4MuxerTrack
java.lang.Object
org.jcodec.containers.mp4.muxer.AbstractMP4MuxerTrack
- Direct Known Subclasses:
- FramesMP4MuxerTrack, PCMMP4MuxerTrack
public abstract class AbstractMP4MuxerTrack
- extends Object
This class is part of JCodec ( www.jcodec.org ) This software is distributed
under FreeBSD License
- Author:
- The JCodec project
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
trackId
protected int trackId
type
protected TrackType type
timescale
protected int timescale
tgtChunkDuration
protected Rational tgtChunkDuration
tgtChunkDurationUnit
protected Unit tgtChunkDurationUnit
chunkDuration
protected long chunkDuration
curChunk
protected List<ByteBuffer> curChunk
samplesInChunks
protected List<SampleToChunkBox.SampleToChunkEntry> samplesInChunks
samplesInLastChunk
protected int samplesInLastChunk
chunkNo
protected int chunkNo
finished
protected boolean finished
sampleEntries
protected List<SampleEntry> sampleEntries
edits
protected List<Edit> edits
AbstractMP4MuxerTrack
public AbstractMP4MuxerTrack(int trackId,
TrackType type,
int timescale)
setTgtChunkDuration
public void setTgtChunkDuration(Rational duration,
Unit unit)
getTrackTotalDuration
public abstract long getTrackTotalDuration()
getTimescale
public int getTimescale()
finish
protected abstract Box finish(MovieHeaderBox mvhd)
throws IOException
- Throws:
IOException
isVideo
public boolean isVideo()
isTimecode
public boolean isTimecode()
isAudio
public boolean isAudio()
getDisplayDimensions
public Size getDisplayDimensions()
tapt
public void tapt(TrakBox trak)
addSampleEntry
public void addSampleEntry(SampleEntry se)
getEntries
public List<SampleEntry> getEntries()
setEdits
public void setEdits(List<Edit> edits)
putEdits
protected void putEdits(TrakBox trak)
setName
public void setName(String name)
putName
protected void putName(TrakBox trak)
mediaHeader
protected void mediaHeader(MediaInfoBox minf,
TrackType type)
addDref
protected void addDref(NodeBox minf)
Copyright © 2013. All Rights Reserved.