public class FFmpegFrameGrabber extends FrameGrabber
FrameGrabber.Array, FrameGrabber.Exception, FrameGrabber.ImageMode, FrameGrabber.PropertyEditoraspectRatio, audioBitrate, audioChannels, audioCodec, audioMetadata, audioOptions, audioStream, bpp, deinterlace, format, frameNumber, frameRate, gamma, imageHeight, imageMode, imageWidth, list, metadata, numBuffers, options, pixelFormat, sampleFormat, sampleRate, SENSOR_PATTERN_BGGR, SENSOR_PATTERN_GBRG, SENSOR_PATTERN_GRBG, SENSOR_PATTERN_RGGB, sensorPattern, timeout, timestamp, triggerMode, videoBitrate, videoCodec, videoMetadata, videoOptions, videoStream| Constructor and Description |
|---|
FFmpegFrameGrabber(File file) |
FFmpegFrameGrabber(String filename) |
create, create, create, create, createArray, delayedGrab, flush, get, getAudioOption, getAudioStream, getBitsPerPixel, getDefault, getDelayedFrame, getDelayedTime, getFrameNumber, getImageMode, getNumBuffers, getOption, getSensorPattern, getTimeout, getTimestamp, getVideoOption, getVideoStream, grabFrame, init, isDeinterlace, isTriggerMode, restart, setAspectRatio, setAudioBitrate, setAudioChannels, setAudioCodec, setAudioMetadata, setAudioOption, setAudioStream, setBitsPerPixel, setDeinterlace, setFormat, setFrameRate, setGamma, setImageHeight, setImageMode, setImageWidth, setMetadata, setNumBuffers, setOption, setPixelFormat, setSampleFormat, setSampleRate, setSensorPattern, setTimeout, setTriggerMode, setVideoBitrate, setVideoCodec, setVideoMetadata, setVideoOption, setVideoStreampublic FFmpegFrameGrabber(File file)
public FFmpegFrameGrabber(String filename)
public static String[] getDeviceDescriptions() throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static FFmpegFrameGrabber createDefault(File deviceFile) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static FFmpegFrameGrabber createDefault(String devicePath) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static FFmpegFrameGrabber createDefault(int deviceNumber) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static void tryLoad()
throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic void release()
throws FrameGrabber.Exception
release in class FrameGrabberFrameGrabber.Exceptionprotected void finalize()
throws Throwable
public double getGamma()
getGamma in class FrameGrabberpublic String getFormat()
getFormat in class FrameGrabberpublic int getImageWidth()
getImageWidth in class FrameGrabberpublic int getImageHeight()
getImageHeight in class FrameGrabberpublic int getAudioChannels()
getAudioChannels in class FrameGrabberpublic int getPixelFormat()
getPixelFormat in class FrameGrabberpublic int getVideoCodec()
getVideoCodec in class FrameGrabberpublic int getVideoBitrate()
getVideoBitrate in class FrameGrabberpublic double getAspectRatio()
getAspectRatio in class FrameGrabberpublic double getFrameRate()
getFrameRate in class FrameGrabberpublic int getAudioCodec()
getAudioCodec in class FrameGrabberpublic int getAudioBitrate()
getAudioBitrate in class FrameGrabberpublic int getSampleFormat()
getSampleFormat in class FrameGrabberpublic int getSampleRate()
getSampleRate in class FrameGrabberpublic String getMetadata(String key)
getMetadata in class FrameGrabberpublic String getVideoMetadata(String key)
getVideoMetadata in class FrameGrabberpublic String getAudioMetadata(String key)
getAudioMetadata in class FrameGrabberpublic void setFrameNumber(int frameNumber)
throws FrameGrabber.Exception
setFrameNumber in class FrameGrabberFrameGrabber.Exceptionpublic void setTimestamp(long timestamp)
throws FrameGrabber.Exception
setTimestamp in class FrameGrabberFrameGrabber.Exceptionpublic int getLengthInFrames()
getLengthInFrames in class FrameGrabberpublic long getLengthInTime()
getLengthInTime in class FrameGrabberpublic avformat.AVFormatContext getFormatContext()
public void start()
throws FrameGrabber.Exception
start in class FrameGrabberFrameGrabber.Exceptionpublic void stop()
throws FrameGrabber.Exception
stop in class FrameGrabberFrameGrabber.Exceptionpublic void trigger()
throws FrameGrabber.Exception
trigger in class FrameGrabberFrameGrabber.Exceptionpublic Frame grab() throws FrameGrabber.Exception
FrameGrabber
grabber.grab() == grabber.grab()
Frame.clone() the
returned frame as the next call to grab will overwrite your existing image's memory.
grab in class FrameGrabberFrameGrabber.Exceptionpublic Frame grabImage() throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic Frame grabSamples() throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic Frame grabKeyFrame() throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic Frame grabFrame(boolean doAudio, boolean doVideo, boolean processImage, boolean keyFrames) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic avcodec.AVPacket grabPacket() throws FrameGrabber.Exception
FrameGrabber.ExceptionCopyright © 2016. All rights reserved.