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 |
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() |
protected SampleEntry |
getCurrentSampleEntry() |
String |
getHandler() |
static H264NalUnitHeader |
getNalUnitHeader(ByteBuffer nal) |
List<SampleEntry> |
getSampleEntries() |
List<Sample> |
getSamples()
The list of all samples.
|
static void |
main(String[] args) |
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
IOExceptionprotected SampleEntry getCurrentSampleEntry()
getCurrentSampleEntry in class AbstractH26XTrackpublic static void main(String[] args) throws IOException
IOExceptionpublic static H264NalUnitHeader getNalUnitHeader(ByteBuffer nal)
public List<SampleEntry> getSampleEntries()
public String getHandler()
public List<Sample> getSamples()
Trackpublic void calcCtts()
Copyright © 2019. All rights reserved.