public class FlatPackageWriterImpl extends Object implements PackageWriter
Constructor and Description |
---|
FlatPackageWriterImpl(int minFragmentDuration)
Creates a factory for a smooth streaming package.
|
Modifier and Type | Method and Description |
---|---|
Movie |
correctTimescale(Movie movie)
Returns a new
Movie in that all tracks have the timescale 10000000. |
void |
setDebugOutput(boolean debugOutput) |
void |
setIntersectionFinder(FragmentIntersectionFinder intersectionFinder) |
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 . |
public FlatPackageWriterImpl(int minFragmentDuration)
public void setIntersectionFinder(FragmentIntersectionFinder intersectionFinder)
public void setOutputDirectory(File outputDirectory)
public void setDebugOutput(boolean debugOutput)
public void setIsmvBuilder(FragmentedMp4Builder ismvBuilder)
public void setManifestWriter(ManifestWriter manifestWriter)
public void write(Movie source) throws IOException
qualities
flattened into the
outputDirectory
.write
in interface PackageWriter
source
- the source movie with all qualitiesIOException
- in case file I/O failspublic Movie correctTimescale(Movie movie)
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.movie
- original movieCopyright © 2014. All rights reserved.