com.googlecode.mp4parser.authoring.adaptivestreaming
Class FlatPackageWriterImpl

java.lang.Object
  extended by com.googlecode.mp4parser.authoring.adaptivestreaming.FlatPackageWriterImpl
All Implemented Interfaces:
PackageWriter

public class FlatPackageWriterImpl
extends Object
implements PackageWriter


Constructor Summary
FlatPackageWriterImpl()
           
FlatPackageWriterImpl(int minFragmentDuration)
          Creates a factory for a smooth streaming package.
 
Method Summary
 Movie correctTimescale(Movie movie)
          Returns a new Movie in that all tracks have the timescale 10000000.
 void setDebugOutput(boolean debugOutput)
           
 void setIsmvBuilder(FragmentedMp4Builder ismvBuilder)
           
 void setManifestWriter(ManifestWriter manifestWriter)
           
 void setOutputDirectory(File outputDirectory)
           
 void write(Movie source)
          Writes the movie given as qualities flattened into the outputDirectory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatPackageWriterImpl

public FlatPackageWriterImpl()

FlatPackageWriterImpl

public FlatPackageWriterImpl(int minFragmentDuration)
Creates a factory for a smooth streaming package. A smooth streaming package is a collection of files that can be served by a webserver as a smooth streaming stream.

Parameters:
minFragmentDuration - the smallest allowable duration of a fragment (0 == no restriction).
Method Detail

setOutputDirectory

public void setOutputDirectory(File outputDirectory)

setDebugOutput

public void setDebugOutput(boolean debugOutput)

setIsmvBuilder

public void setIsmvBuilder(FragmentedMp4Builder ismvBuilder)

setManifestWriter

public void setManifestWriter(ManifestWriter manifestWriter)

write

public void write(Movie source)
           throws IOException
Writes the movie given as qualities flattened into the outputDirectory.

Specified by:
write in interface PackageWriter
Parameters:
source - the source movie with all qualities
Throws:
IOException

correctTimescale

public Movie correctTimescale(Movie movie)
Returns a new Movie in that all tracks have the timescale 10000000. CTS & DTS are modified in a way that even with more than one framerate the fragments exactly begin at the same time.

Parameters:
movie -
Returns:
a movie with timescales suitable for smooth streaming manifests


Copyright © 2012. All Rights Reserved.