public static class MKVDemuxer.MkvTrack extends Object implements SeekableDemuxerTrack
Modifier and Type | Field and Description |
---|---|
int |
trackNo |
Constructor and Description |
---|
MkvTrack(int trackNo,
MKVDemuxer demuxer) |
Modifier and Type | Method and Description |
---|---|
long |
getCurFrame()
Gets an index of the frame that the next call to 'nextFrame' will return,
zero based.
|
Packet |
getFrames(int count)
Get multiple frames
|
DemuxerTrackMeta |
getMeta() |
boolean |
gotoFrame(long i)
Goes to exactly frameNo.
|
boolean |
gotoSyncFrame(long frame)
Goes to a a frame that's a sync frame (key frame) and is prior or at
frame frameNo.
|
protected org.jcodec.containers.mkv.demuxer.MKVDemuxer.MkvBlockData |
nextBlock() |
Packet |
nextFrame() |
void |
seek(double second)
Seeks this container to the second provided so that the next call to
nextFrame will return a frame at that second.
|
public MkvTrack(int trackNo, MKVDemuxer demuxer)
public Packet nextFrame() throws IOException
nextFrame
in interface DemuxerTrack
IOException
protected org.jcodec.containers.mkv.demuxer.MKVDemuxer.MkvBlockData nextBlock() throws IOException
IOException
public boolean gotoFrame(long i)
SeekableDemuxerTrack
gotoFrame
in interface SeekableDemuxerTrack
i
- Frame number, zero based, to go to.public long getCurFrame()
SeekableDemuxerTrack
getCurFrame
in interface SeekableDemuxerTrack
public void seek(double second)
SeekableDemuxerTrack
seek
in interface SeekableDemuxerTrack
second
- A second to seek to.public Packet getFrames(int count)
count
- public DemuxerTrackMeta getMeta()
getMeta
in interface DemuxerTrack
public boolean gotoSyncFrame(long frame)
SeekableDemuxerTrack
gotoSyncFrame
in interface SeekableDemuxerTrack
frame
- Frame number, zero based, related to which a sync frame will
be selected.Copyright © 2019. All rights reserved.