public class H264TrackImpl extends AbstractH26XTrack
H264TrackImpl creates a Track from an H.264
Annex B file.| Modifier and Type | Class and Description |
|---|---|
class |
H264TrackImpl.ByteBufferBackedInputStream |
class |
H264TrackImpl.SEIMessage |
AbstractH26XTrack.LookAheadBUFFER, ctts, decodingTimes, sdtp, stss, trackMetaData| Constructor and Description |
|---|
H264TrackImpl(DataSource dataSource) |
H264TrackImpl(DataSource dataSource,
String lang) |
H264TrackImpl(DataSource dataSource,
String lang,
long timescale,
int frametick)
Creates a new
Track object from a raw H264 source (DataSource dataSource1). |
| Modifier and Type | Method and Description |
|---|---|
void |
calcCtts() |
String |
getHandler() |
static H264NalUnitHeader |
getNalUnitHeader(ByteBuffer nal) |
SampleDescriptionBox |
getSampleDescriptionBox() |
List<Sample> |
getSamples()
The list of all samples.
|
cleanBuffer, close, createSampleObject, findNextNal, getCompositionTimeEntries, getSampleDependencies, getSampleDurations, getSyncSamples, getTrackMetaData, toArraygetDuration, getEdits, getName, getSampleGroups, getSubsampleInformationBoxpublic H264TrackImpl(DataSource dataSource, String lang, long timescale, int frametick) throws IOException
Track object from a raw H264 source (DataSource dataSource1).
Whenever the timescale and frametick are set to negative value (e.g. -1) the H264TrackImpl
tries to detect the frame rate.
Typically values for timescale and frametick are:
dataSource - the source file of the H264 sampleslang - language of the movie (in doubt: use "eng")timescale - number of time units (ticks) in one secondframetick - number of time units (ticks) that pass while showing exactly one frameIOException - in case of problems whiel reading from the DataSourcepublic H264TrackImpl(DataSource dataSource, String lang) throws IOException
IOExceptionpublic H264TrackImpl(DataSource dataSource) throws IOException
IOExceptionpublic static H264NalUnitHeader getNalUnitHeader(ByteBuffer nal)
public SampleDescriptionBox getSampleDescriptionBox()
public String getHandler()
public List<Sample> getSamples()
Trackpublic void calcCtts()
Copyright © 2016. All rights reserved.