public class QuickTimeWriter extends QuickTimeOutputStream implements MovieWriter
AbstractQuickTimeStream.Atom, AbstractQuickTimeStream.AudioTrack, AbstractQuickTimeStream.Chunk, AbstractQuickTimeStream.CompositeAtom, AbstractQuickTimeStream.DataAtom, AbstractQuickTimeStream.Edit, AbstractQuickTimeStream.Group, AbstractQuickTimeStream.Sample, AbstractQuickTimeStream.SampleSizeGroup, AbstractQuickTimeStream.States, AbstractQuickTimeStream.TimeToSampleGroup, AbstractQuickTimeStream.Track, AbstractQuickTimeStream.VideoTrack, AbstractQuickTimeStream.WideDataAtom| Modifier and Type | Field and Description |
|---|---|
static Format |
QUICKTIME |
static Format |
VIDEO_ANIMATION |
static Format |
VIDEO_JPEG |
static Format |
VIDEO_PNG |
static Format |
VIDEO_RAW |
creationTime, currentTime, mdatAtom, mdatOffset, modificationTime, moovAtom, movieMatrix, movieTimeScale, out, posterTime, preferredRate, preferredVolume, previewDuration, previewTime, selectionDuration, selectionTime, state, streamOffset, tracks| Constructor and Description |
|---|
QuickTimeWriter(java.io.File file) |
QuickTimeWriter(javax.imageio.stream.ImageOutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
int |
addAudioTrack(javax.sound.sampled.AudioFormat format)
Deprecated.
|
int |
addTrack(Format fmt) |
int |
addVideoTrack(Format format,
int width,
int height,
int depth,
int syncInterval)
Deprecated.
|
int |
addVideoTrack(Format format,
long timeScale,
int width,
int height)
Deprecated.
|
Codec |
getCodec(int track) |
Rational |
getDuration(int track) |
Format |
getFileFormat() |
Format |
getFormat(int track) |
int |
getTrackCount() |
boolean |
isDataLimitReached() |
boolean |
isEmpty(int track) |
boolean |
isVFRSupported() |
void |
setCodec(int track,
Codec codec) |
void |
write(int track,
Buffer buf) |
void |
write(int track,
java.awt.image.BufferedImage image,
long duration) |
void |
write(int track,
byte[] data,
int off,
int len,
long duration,
boolean isSync)
Deprecated.
|
void |
write(int track,
int sampleCount,
byte[] data,
int off,
int len,
long sampleDuration,
boolean isSync)
Deprecated.
|
addAudioTrack, addVideoTrack, close, ensureOpen, ensureStarted, finish, getCompressionQuality, getCreationTime, getCurrentTime, getMediaDuration, getMediaTimeScale, getModificationTime, getMovieDuration, getMovieTimeScale, getMovieTransformationMatrix, getPosterTime, getPreferredRate, getPreferredVolume, getPreviewDuration, getPreviewTime, getSelectionDuration, getSelectionTime, getSyncInterval, getTrackDuration, getTransformationMatrix, getUneditedTrackDuration, getVideoColorTable, setCompressionQuality, setCreationTime, setCurrentTime, setEditList, setModificationTime, setMovieTimeScale, setMovieTransformationMatrix, setPosterTime, setPreferredRate, setPreferredVolume, setPreviewDuration, setPreviewTime, setSelectionDuration, setSelectionTime, setSyncInterval, setTransformationMatrix, setVideoColorTable, toWebOptimizedMovie, writeSample, writeSample, writeSample, writeSample, writeSamples, writeSamples, writeSamplesgetRelativeStreamPosition, intToType, seekRelative, typeToIntclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic static final Format QUICKTIME
public static final Format VIDEO_RAW
public static final Format VIDEO_ANIMATION
public static final Format VIDEO_JPEG
public static final Format VIDEO_PNG
public QuickTimeWriter(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic QuickTimeWriter(javax.imageio.stream.ImageOutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic Format getFileFormat() throws java.io.IOException
getFileFormat in interface MovieWriterjava.io.IOExceptionpublic Format getFormat(int track)
getFormat in interface MovieWriterpublic int addTrack(Format fmt) throws java.io.IOException
addTrack in interface MovieWriterjava.io.IOException@Deprecated public int addVideoTrack(Format format, long timeScale, int width, int height) throws java.io.IOException
java.io.IOException@Deprecated public int addVideoTrack(Format format, int width, int height, int depth, int syncInterval) throws java.io.IOException
java.io.IOException@Deprecated
public int addAudioTrack(javax.sound.sampled.AudioFormat format)
throws java.io.IOException
java.io.IOExceptionpublic int getTrackCount()
getTrackCount in interface MovieWriterpublic Rational getDuration(int track)
getDuration in interface MovieWriterpublic Codec getCodec(int track)
public void setCodec(int track,
Codec codec)
public void write(int track,
Buffer buf)
throws java.io.IOException
write in interface MovieWriterwrite in interface Multiplexerjava.io.IOExceptionpublic void write(int track,
java.awt.image.BufferedImage image,
long duration)
throws java.io.IOException
java.io.IOException@Deprecated
public void write(int track,
byte[] data,
int off,
int len,
long duration,
boolean isSync)
throws java.io.IOException
java.io.IOException@Deprecated
public void write(int track,
int sampleCount,
byte[] data,
int off,
int len,
long sampleDuration,
boolean isSync)
throws java.io.IOException
java.io.IOExceptionpublic boolean isVFRSupported()
public boolean isDataLimitReached()
isDataLimitReached in interface MovieWriterisDataLimitReached in class QuickTimeOutputStreampublic boolean isEmpty(int track)
isEmpty in interface MovieWriterCopyright © 2022. All Rights Reserved.