Package org.mp4parser.muxer.builder
Class DefaultFragmenterImpl
- java.lang.Object
-
- org.mp4parser.muxer.builder.DefaultFragmenterImpl
-
- All Implemented Interfaces:
Fragmenter
public class DefaultFragmenterImpl extends Object implements Fragmenter
ThisFragmentIntersectionFinder
cuts the input movie in 2 second snippets.
-
-
Constructor Summary
Constructors Constructor Description DefaultFragmenterImpl(double fragmentLength)
-
Method Summary
Modifier and Type Method Description static void
main(String[] args)
long[]
sampleNumbers(Track track)
Gets the ordinal number of the samples which will be the first sample in each fragment (First sample == 1).
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
sampleNumbers
public long[] sampleNumbers(Track track)
Gets the ordinal number of the samples which will be the first sample in each fragment (First sample == 1).- Specified by:
sampleNumbers
in interfaceFragmenter
- Parameters:
track
- concerned track- Returns:
- an array containing the ordinal of each fragment's first sample
-
-