public class OpenCVFrameRecorder extends FrameRecorder
FrameRecorder.Exception
aspectRatio, audioBitrate, audioChannels, audioCodec, audioCodecName, audioMetadata, audioOptions, audioQuality, audioSideData, charset, format, frameNumber, frameRate, gopSize, imageHeight, imageScalingFlags, imageWidth, interleaved, list, maxBFrames, maxDelay, metadata, options, pixelFormat, sampleFormat, sampleRate, timestamp, trellis, videoBitrate, videoCodec, videoCodecName, videoMetadata, videoOptions, videoQuality, videoSideData
Constructor and Description |
---|
OpenCVFrameRecorder(File file,
int imageWidth,
int imageHeight) |
OpenCVFrameRecorder(String filename,
int imageWidth,
int imageHeight) |
Modifier and Type | Method and Description |
---|---|
static OpenCVFrameRecorder |
createDefault(File f,
int w,
int h) |
static OpenCVFrameRecorder |
createDefault(String f,
int w,
int h) |
protected void |
finalize() |
void |
flush() |
double |
getOption(int propId) |
void |
record(Frame frame) |
void |
release() |
void |
setOption(int propId,
double value) |
void |
start() |
void |
stop() |
static void |
tryLoad() |
close, create, create, create, get, getAspectRatio, getAudioBitrate, getAudioChannels, getAudioCodec, getAudioCodecName, getAudioMetadata, getAudioMetadata, getAudioOption, getAudioOptions, getAudioQuality, getAudioSideData, getAudioSideData, getCharset, getDefault, getFormat, getFrameNumber, getFrameRate, getGopSize, getImageHeight, getImageScalingFlags, getImageWidth, getMaxBFrames, getMaxDelay, getMetadata, getMetadata, getOption, getOptions, getPixelFormat, getSampleFormat, getSampleRate, getTimestamp, getTrellis, getVideoBitrate, getVideoCodec, getVideoCodecName, getVideoMetadata, getVideoMetadata, getVideoOption, getVideoOptions, getVideoQuality, getVideoSideData, getVideoSideData, init, isInterleaved, setAspectRatio, setAudioBitrate, setAudioChannels, setAudioCodec, setAudioCodecName, setAudioMetadata, setAudioMetadata, setAudioOption, setAudioOptions, setAudioQuality, setAudioSideData, setAudioSideData, setCharset, setFormat, setFrameNumber, setFrameRate, setGopSize, setImageHeight, setImageScalingFlags, setImageWidth, setInterleaved, setMaxBFrames, setMaxDelay, setMetadata, setMetadata, setOption, setOptions, setPixelFormat, setSampleFormat, setSampleRate, setTimestamp, setTrellis, setVideoBitrate, setVideoCodec, setVideoCodecName, setVideoMetadata, setVideoMetadata, setVideoOption, setVideoOptions, setVideoQuality, setVideoSideData, setVideoSideData
public OpenCVFrameRecorder(File file, int imageWidth, int imageHeight)
public OpenCVFrameRecorder(String filename, int imageWidth, int imageHeight)
public static OpenCVFrameRecorder createDefault(File f, int w, int h) throws FrameRecorder.Exception
FrameRecorder.Exception
public static OpenCVFrameRecorder createDefault(String f, int w, int h) throws FrameRecorder.Exception
FrameRecorder.Exception
public static void tryLoad() throws FrameRecorder.Exception
FrameRecorder.Exception
public void release() throws FrameRecorder.Exception
release
in class FrameRecorder
FrameRecorder.Exception
protected void finalize() throws Throwable
public double getOption(int propId)
public void setOption(int propId, double value)
propId
- Property ID, look at opencv_videoio for possible valuesvalue
- public void start() throws FrameRecorder.Exception
start
in class FrameRecorder
FrameRecorder.Exception
public void flush() throws FrameRecorder.Exception
flush
in class FrameRecorder
FrameRecorder.Exception
public void stop() throws FrameRecorder.Exception
stop
in class FrameRecorder
FrameRecorder.Exception
public void record(Frame frame) throws FrameRecorder.Exception
record
in class FrameRecorder
FrameRecorder.Exception
Copyright © 2024. All rights reserved.