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 DemuxerTrackIOExceptionprotected org.jcodec.containers.mkv.demuxer.MKVDemuxer.MkvBlockData nextBlock()
throws IOException
IOExceptionpublic boolean gotoFrame(long i)
SeekableDemuxerTrackgotoFrame in interface SeekableDemuxerTracki - Frame number, zero based, to go to.public long getCurFrame()
SeekableDemuxerTrackgetCurFrame in interface SeekableDemuxerTrackpublic void seek(double second)
SeekableDemuxerTrackseek in interface SeekableDemuxerTracksecond - A second to seek to.public Packet getFrames(int count)
count - public DemuxerTrackMeta getMeta()
getMeta in interface DemuxerTrackpublic boolean gotoSyncFrame(long frame)
SeekableDemuxerTrackgotoSyncFrame in interface SeekableDemuxerTrackframe - Frame number, zero based, related to which a sync frame will
be selected.Copyright © 2019. All rights reserved.