org.jcodec.containers.mp4.demuxer
Class PCMMP4DemuxerTrack
java.lang.Object
org.jcodec.containers.mp4.demuxer.AbstractMP4DemuxerTrack
org.jcodec.containers.mp4.demuxer.PCMMP4DemuxerTrack
- All Implemented Interfaces:
- DemuxerTrack
public class PCMMP4DemuxerTrack
- extends AbstractMP4DemuxerTrack
This class is part of JCodec ( www.jcodec.org ) This software is distributed
under FreeBSD License
Specialized demuxer track for PCM audio samples
Always reads one chunk of frames at a time, except for after seek. After seek
the beginning of chunk before the seek point is not read effectivaly reading
PCM frame from exactly the frame seek was performed to.
Packet size depends on underlying container PCM chunk sizes.
- Author:
- The JCodec project
| Fields inherited from class org.jcodec.containers.mp4.demuxer.AbstractMP4DemuxerTrack |
box, chunkOffsets, curFrame, duration, pts, sampleEntries, sampleToChunks, stcoInd, stscInd, sttsInd, sttsSubInd, timescale, timeToSamples |
| Methods inherited from class org.jcodec.containers.mp4.demuxer.AbstractMP4DemuxerTrack |
canSeek, getBox, getCurFrame, getDuration, getEdits, getFourcc, getName, getNo, getSampleEntries, getTimescale, getType, gotoFrame, nextChunk, pts2Sample, readPacketData, seek, seek, shiftPts |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
totalFrames
protected int totalFrames
PCMMP4DemuxerTrack
public PCMMP4DemuxerTrack(MovieBox movie,
TrakBox trak,
SeekableByteChannel input)
nextFrame
public Packet nextFrame()
throws IOException
- Throws:
IOException
nextFrame
public MP4Packet nextFrame(ByteBuffer buffer)
throws IOException
- Specified by:
nextFrame in class AbstractMP4DemuxerTrack
- Throws:
IOException
getFrameSize
public int getFrameSize()
seekPointer
protected void seekPointer(long frameNo)
- Specified by:
seekPointer in class AbstractMP4DemuxerTrack
getFrameCount
public long getFrameCount()
- Specified by:
getFrameCount in class AbstractMP4DemuxerTrack
Copyright © 2013. All Rights Reserved.