Package org.mp4parser.muxer
Interface Track
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
CencEncryptedTrack
- All Known Implementing Classes:
AACTrackImpl,AbstractH26XTrack,AbstractTrack,AC3TrackImpl,Amf0Track,AppendTrack,Avc1ToAvc3TrackImpl,CencDecryptingTrackImpl,CencEncryptingTrackImpl,CencMp4TrackImplImpl,ChangeTimeScaleTrack,ClippedTrack,DivideTimeScaleTrack,DTSTrackImpl,EC3TrackImpl,H263TrackImpl,H264TrackImpl,H265TrackImpl,MP3TrackImpl,Mp4TrackImpl,MultiplyTimeScaleTrack,OneJpegPerIframe,PiffMp4TrackImpl,ReplaceSampleTrack,SilenceTrackImpl,TextTrackImpl,TtmlTrackImpl,WebVttTrack,WrappingTrack
public interface Track extends Closeable
Represents a Track. A track is a timed sequence of related samples.
NOTE: For media data, a track corresponds to a sequence of images or sampled audio; for hint tracks, a track corresponds to a streaming channel.
-
-
Method Summary
Modifier and Type Method Description List<CompositionTimeToSample.Entry>getCompositionTimeEntries()longgetDuration()The duration of the track in track timescale.List<Edit>getEdits()StringgetHandler()StringgetName()A name for identification purposes.List<SampleDependencyTypeBox.Entry>getSampleDependencies()long[]getSampleDurations()Each samples is covers a small time span in a video.List<SampleEntry>getSampleEntries()Map<GroupEntry,long[]>getSampleGroups()List<Sample>getSamples()The list of all samples.SubSampleInformationBoxgetSubsampleInformationBox()long[]getSyncSamples()TrackMetaDatagetTrackMetaData()
-
-
-
Method Detail
-
getSampleEntries
List<SampleEntry> getSampleEntries()
-
getSampleDurations
long[] getSampleDurations()
Each samples is covers a small time span in a video. This method returns the duration for each sample in track timescale. The array must contain exactly as many samples asgetSamples()contains.- Returns:
- an array of ticks
-
getDuration
long getDuration()
The duration of the track in track timescale. It's the sum of all samples' duration and does NOT include any edits.- Returns:
- the track's duration
-
getCompositionTimeEntries
List<CompositionTimeToSample.Entry> getCompositionTimeEntries()
-
getSyncSamples
long[] getSyncSamples()
-
getSampleDependencies
List<SampleDependencyTypeBox.Entry> getSampleDependencies()
-
getTrackMetaData
TrackMetaData getTrackMetaData()
-
getHandler
String getHandler()
-
getSubsampleInformationBox
SubSampleInformationBox getSubsampleInformationBox()
-
getName
String getName()
A name for identification purposes. Might return the underlying filename or network address or any other identifier. For informational/debug only. This is no metadata!- Returns:
- the track's name
-
getSampleGroups
Map<GroupEntry,long[]> getSampleGroups()
-
-