Class QuickTimeMultiplexer
java.lang.Object
org.monte.media.quicktime.QuickTimeMultiplexer
- All Implemented Interfaces:
Closeable,AutoCloseable,Multiplexer
QuickTimeMultiplexer.- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintAdds a track.voidclose()Closes the Multiplexer.voidsetMovieTimeScale(long timeScale) Sets the time scale for this movie, that is, the number of time units that pass per second in its time coordinate system.voidWrites a sample.
-
Constructor Details
-
QuickTimeMultiplexer
- Throws:
IOException
-
QuickTimeMultiplexer
Creates a new QuickTime writer.- Parameters:
out- the underlying output stream.- Throws:
IOException
-
-
Method Details
-
addTrack
Adds a track.- Specified by:
addTrackin interfaceMultiplexer- Parameters:
fmt- The format of the track.- Returns:
- The track number.
- Throws:
IOException
-
write
Description copied from interface:MultiplexerWrites a sample. Does nothing if the discard-flag or the prefetch-flag in the buffer is set to true.- Specified by:
writein interfaceMultiplexer- Parameters:
track- The track number.buf- The buffer containing the sample data.- Throws:
IOException- if the write fails
-
close
Description copied from interface:MultiplexerCloses the Multiplexer.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceMultiplexer- Throws:
IOException- if close fails
-
setMovieTimeScale
public void setMovieTimeScale(long timeScale) Sets the time scale for this movie, that is, the number of time units that pass per second in its time coordinate system.The default value is 600.
- Parameters:
timeScale-
-