com.googlecode.mp4parser.authoring.builder
Class DefaultMp4Builder

java.lang.Object
  extended by 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.


Constructor Summary
DefaultMp4Builder()
           
 
Method Summary
 IsoFile build(Movie movie)
          Builds the actual IsoFile from the Movie.
static long gcd(long a, long b)
           
protected static long getDuration(Track track)
           
 long getTimescale(Movie movie)
           
 void setAllowedHandlers(List<String> hdlrs)
           
 void setIntersectionFinder(FragmentIntersectionFinder intersectionFinder)
           
 List<ByteBuffer> unifyAdjacentBuffers(List<ByteBuffer> samples)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMp4Builder

public DefaultMp4Builder()
Method Detail

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.