com.googlecode.mp4parser.authoring.builder
Class DefaultMp4Builder
java.lang.Object
com.googlecode.mp4parser.authoring.builder.DefaultMp4Builder
- All Implemented Interfaces:
- Mp4Builder
public class DefaultMp4Builder
- extends Object
- implements Mp4Builder
Creates a plain MP4 file from a video. Plain as plain can be.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMp4Builder
public DefaultMp4Builder()
setAllowedHandlers
public void setAllowedHandlers(List<String> hdlrs)
setIntersectionFinder
public void setIntersectionFinder(FragmentIntersectionFinder intersectionFinder)
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
getDuration
protected static long getDuration(Track track)
getTimescale
public long getTimescale(Movie movie)
gcd
public static long gcd(long a,
long b)
unifyAdjacentBuffers
public List<ByteBuffer> unifyAdjacentBuffers(List<ByteBuffer> samples)
Copyright © 2012. All Rights Reserved.