com.googlecode.mp4parser.authoring.adaptivestreaming
Class FlatPackageWriterImpl
java.lang.Object
com.googlecode.mp4parser.authoring.adaptivestreaming.FlatPackageWriterImpl
- All Implemented Interfaces:
- PackageWriter
public class FlatPackageWriterImpl
- extends Object
- implements PackageWriter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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).
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.