public class SyncSampleIntersectFinderImpl extends Object implements Fragmenter
FragmentIntersectionFinder cuts the input movie video tracks in
fragments of the same length exactly before the sync samples. Audio tracks are cut
into pieces of similar length.| Constructor and Description |
|---|
SyncSampleIntersectFinderImpl(Movie movie,
Track referenceTrack,
int minFragmentDurationSeconds)
Creates a
SyncSampleIntersectFinderImpl that will not create any fragment
smaller than the given minFragmentDurationSeconds |
| Modifier and Type | Method and Description |
|---|---|
long[] |
getCommonIndices(long[] syncSamples,
long[] syncSampleTimes,
long timeScale,
long[]... otherTracksTimes) |
static List<long[]> |
getSyncSamplesTimestamps(Movie movie,
Track track)
Calculates the timestamp of all tracks' sync samples.
|
long[] |
sampleNumbers(Track track)
Gets an array of sample numbers that are meant to be the first sample of each
chunk or fragment.
|
public SyncSampleIntersectFinderImpl(Movie movie, Track referenceTrack, int minFragmentDurationSeconds)
SyncSampleIntersectFinderImpl that will not create any fragment
smaller than the given minFragmentDurationSecondsmovie - this movie is the referencereferenceTrack - used for audio tracks to find similar boundaries of segments.minFragmentDurationSeconds - the smallest allowable duration of a fragment.public long[] sampleNumbers(Track track)
sampleNumbers in interface Fragmentertrack - concerned trackpublic static List<long[]> getSyncSamplesTimestamps(Movie movie, Track track)
movie - track is located in this movietrack - get this track's samples timestampspublic long[] getCommonIndices(long[] syncSamples,
long[] syncSampleTimes,
long timeScale,
long[]... otherTracksTimes)
Copyright © 2016. All rights reserved.