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
ThisFragmentIntersectionFindercuts the input movie in 2 second snippets.
-
-
Constructor Summary
Constructors Constructor Description DefaultFragmenterImpl(double fragmentLength)
-
Method Summary
Modifier and Type Method Description static voidmain(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:
sampleNumbersin interfaceFragmenter- Parameters:
track- concerned track- Returns:
- an array containing the ordinal of each fragment's first sample
-
-