com.googlecode.mp4parser.authoring.builder
Class FragmentedMp4Builder
java.lang.Object
com.googlecode.mp4parser.authoring.builder.FragmentedMp4Builder
- All Implemented Interfaces:
- Mp4Builder
- Direct Known Subclasses:
- IsmvBuilder
public class FragmentedMp4Builder
- extends Object
- implements Mp4Builder
Creates a fragmented MP4 file.
Method Summary |
IsoFile |
build(Movie movie)
Builds the actual IsoFile from the Movie. |
protected DataInformationBox |
createDinf(Movie movie,
Track track)
|
Box |
createFtyp(Movie movie)
|
protected Box |
createMdat(int startSample,
int endSample,
Track track,
int i)
|
protected Box |
createMdhd(Movie movie,
Track track)
|
protected Box |
createMdia(Track track,
Movie movie)
|
protected Box |
createMdiaHdlr(Track track,
Movie movie)
|
protected Box |
createMfhd(int startSample,
int endSample,
Track track,
int sequenceNumber)
|
protected Box |
createMfra(Movie movie,
IsoFile isoFile)
|
protected Box |
createMinf(Track track,
Movie movie)
|
protected Box |
createMoof(int startSample,
int endSample,
Track track,
int sequenceNumber)
|
protected List<Box> |
createMoofMdat(Movie movie)
|
protected Box |
createMoov(Movie movie)
|
protected Box |
createMvex(Movie movie)
|
protected Box |
createMvhd(Movie movie)
|
protected Box |
createStbl(Movie movie,
Track track)
|
protected Box |
createTfhd(int startSample,
int endSample,
Track track,
int sequenceNumber)
|
protected Box |
createTfra(Track track,
IsoFile isoFile)
|
protected Box |
createTkhd(Movie movie,
Track track)
|
protected Box |
createTraf(int startSample,
int endSample,
Track track,
int sequenceNumber)
|
protected Box |
createTrak(Track track,
Movie movie)
|
protected Box |
createTrex(Movie movie,
Track track)
|
protected List<? extends Box> |
createTruns(int startSample,
int endSample,
Track track,
int sequenceNumber)
|
static void |
dumpHex(ByteBuffer bb)
|
List<String> |
getAllowedHandlers()
|
protected long |
getDuration(Track track)
|
protected List<ByteBuffer> |
getSamples(int startSample,
int endSample,
Track track,
int sequenceNumber)
|
void |
setIntersectionFinder(FragmentIntersectionFinder intersectionFinder)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FragmentedMp4Builder
public FragmentedMp4Builder()
getAllowedHandlers
public List<String> getAllowedHandlers()
createFtyp
public Box createFtyp(Movie movie)
createMoofMdat
protected List<Box> createMoofMdat(Movie movie)
build
public IsoFile build(Movie movie)
throws IOException
- Description copied from interface:
Mp4Builder
- Builds the actual IsoFile from the Movie.
- Specified by:
build
in interface Mp4Builder
- Parameters:
movie
- data source
- Returns:
- the freshly built IsoFile
- Throws:
IOException
createMdat
protected Box createMdat(int startSample,
int endSample,
Track track,
int i)
dumpHex
public static void dumpHex(ByteBuffer bb)
createTfhd
protected Box createTfhd(int startSample,
int endSample,
Track track,
int sequenceNumber)
createMfhd
protected Box createMfhd(int startSample,
int endSample,
Track track,
int sequenceNumber)
createTraf
protected Box createTraf(int startSample,
int endSample,
Track track,
int sequenceNumber)
getSamples
protected List<ByteBuffer> getSamples(int startSample,
int endSample,
Track track,
int sequenceNumber)
createTruns
protected List<? extends Box> createTruns(int startSample,
int endSample,
Track track,
int sequenceNumber)
createMoof
protected Box createMoof(int startSample,
int endSample,
Track track,
int sequenceNumber)
createMvhd
protected Box createMvhd(Movie movie)
createMoov
protected Box createMoov(Movie movie)
createTfra
protected Box createTfra(Track track,
IsoFile isoFile)
createMfra
protected Box createMfra(Movie movie,
IsoFile isoFile)
createTrex
protected Box createTrex(Movie movie,
Track track)
createMvex
protected Box createMvex(Movie movie)
createTkhd
protected Box createTkhd(Movie movie,
Track track)
createMdhd
protected Box createMdhd(Movie movie,
Track track)
createStbl
protected Box createStbl(Movie movie,
Track track)
createMinf
protected Box createMinf(Track track,
Movie movie)
createMdiaHdlr
protected Box createMdiaHdlr(Track track,
Movie movie)
createMdia
protected Box createMdia(Track track,
Movie movie)
createTrak
protected Box createTrak(Track track,
Movie movie)
createDinf
protected DataInformationBox createDinf(Movie movie,
Track track)
setIntersectionFinder
public void setIntersectionFinder(FragmentIntersectionFinder intersectionFinder)
getDuration
protected long getDuration(Track track)
Copyright © 2012. All Rights Reserved.