public class DefaultMp4Builder extends Object implements Mp4Builder
Constructor and Description |
---|
DefaultMp4Builder() |
Modifier and Type | Method and Description |
---|---|
Container |
build(Movie movie)
Builds the actual IsoFile from the Movie.
|
protected void |
createCencBoxes(CencEncryptedTrack track,
SampleTableBox stbl,
int[] chunkSizes) |
protected void |
createCtts(Track track,
SampleTableBox stbl) |
protected Box |
createEdts(Track track,
Movie movie) |
protected FileTypeBox |
createFileTypeBox(Movie movie) |
protected MovieBox |
createMovieBox(Movie movie,
Map<Track,int[]> chunks) |
protected void |
createSdtp(Track track,
SampleTableBox stbl) |
protected Box |
createStbl(Track track,
Movie movie,
Map<Track,int[]> chunks) |
protected void |
createStco(Track track,
Movie movie,
Map<Track,int[]> chunks,
SampleTableBox stbl) |
protected void |
createStsc(Track track,
Map<Track,int[]> chunks,
SampleTableBox stbl) |
protected void |
createStsd(Track track,
SampleTableBox stbl) |
protected void |
createStss(Track track,
SampleTableBox stbl) |
protected void |
createStsz(Track track,
SampleTableBox stbl) |
protected void |
createStts(Track track,
SampleTableBox stbl) |
protected void |
createSubs(Track track,
SampleTableBox stbl) |
protected TrackBox |
createTrackBox(Track track,
Movie movie,
Map<Track,int[]> chunks) |
protected Box |
createUdta(Movie movie)
Override to create a user data box that may contain metadata.
|
static long |
gcd(long a,
long b) |
long |
getTimescale(Movie movie) |
protected List<Sample> |
putSamples(Track track,
List<Sample> samples) |
void |
setIntersectionFinder(FragmentIntersectionFinder intersectionFinder) |
public static long gcd(long a, long b)
public void setIntersectionFinder(FragmentIntersectionFinder intersectionFinder)
public Container build(Movie movie)
build
in interface Mp4Builder
movie
- data sourceprotected FileTypeBox createFileTypeBox(Movie movie)
protected Box createUdta(Movie movie)
movie
- source movienull
if none providedprotected void createSubs(Track track, SampleTableBox stbl)
protected void createCencBoxes(CencEncryptedTrack track, SampleTableBox stbl, int[] chunkSizes)
protected void createStsd(Track track, SampleTableBox stbl)
protected void createStco(Track track, Movie movie, Map<Track,int[]> chunks, SampleTableBox stbl)
protected void createStsz(Track track, SampleTableBox stbl)
protected void createStsc(Track track, Map<Track,int[]> chunks, SampleTableBox stbl)
protected void createSdtp(Track track, SampleTableBox stbl)
protected void createStss(Track track, SampleTableBox stbl)
protected void createCtts(Track track, SampleTableBox stbl)
protected void createStts(Track track, SampleTableBox stbl)
public long getTimescale(Movie movie)
Copyright © 2014. All rights reserved.