public class FFmpegFrameRecorder extends FrameRecorder
FrameRecorder.ExceptionaspectRatio, audioBitrate, audioChannels, audioCodec, audioCodecName, audioMetadata, audioOptions, audioQuality, format, frameNumber, frameRate, gopSize, imageHeight, imageWidth, interleaved, list, maxBFrames, maxDelay, metadata, options, pixelFormat, sampleFormat, sampleRate, timestamp, trellis, videoBitrate, videoCodec, videoCodecName, videoMetadata, videoOptions, videoQuality| Constructor and Description |
|---|
FFmpegFrameRecorder(File file,
int audioChannels) |
FFmpegFrameRecorder(File file,
int imageWidth,
int imageHeight) |
FFmpegFrameRecorder(File file,
int imageWidth,
int imageHeight,
int audioChannels) |
FFmpegFrameRecorder(OutputStream outputStream,
int audioChannels) |
FFmpegFrameRecorder(OutputStream outputStream,
int imageWidth,
int imageHeight) |
FFmpegFrameRecorder(OutputStream outputStream,
int imageWidth,
int imageHeight,
int audioChannels) |
FFmpegFrameRecorder(String filename,
int audioChannels) |
FFmpegFrameRecorder(String filename,
int imageWidth,
int imageHeight) |
FFmpegFrameRecorder(String filename,
int imageWidth,
int imageHeight,
int audioChannels) |
| Modifier and Type | Method and Description |
|---|---|
static FFmpegFrameRecorder |
createDefault(File f,
int w,
int h) |
static FFmpegFrameRecorder |
createDefault(String f,
int w,
int h) |
protected void |
finalize() |
int |
getFrameNumber() |
long |
getTimestamp() |
void |
record(Frame frame) |
void |
record(Frame frame,
int pixelFormat) |
boolean |
recordImage(int width,
int height,
int depth,
int channels,
int stride,
int pixelFormat,
Buffer... image) |
boolean |
recordPacket(avcodec.AVPacket pkt) |
boolean |
recordSamples(Buffer... samples) |
boolean |
recordSamples(int sampleRate,
int audioChannels,
Buffer... samples) |
void |
release() |
void |
setFrameNumber(int frameNumber) |
void |
setTimestamp(long timestamp) |
void |
start() |
void |
start(avformat.AVFormatContext ifmt_ctx) |
void |
stop() |
static void |
tryLoad() |
close, create, create, create, get, getAspectRatio, getAudioBitrate, getAudioChannels, getAudioCodec, getAudioCodecName, getAudioMetadata, getAudioMetadata, getAudioOption, getAudioOptions, getAudioQuality, getDefault, getFormat, getFrameRate, getGopSize, getImageHeight, getImageWidth, getMaxBFrames, getMaxDelay, getMetadata, getMetadata, getOption, getOptions, getPixelFormat, getSampleFormat, getSampleRate, getTrellis, getVideoBitrate, getVideoCodec, getVideoCodecName, getVideoMetadata, getVideoMetadata, getVideoOption, getVideoOptions, getVideoQuality, init, isInterleaved, setAspectRatio, setAudioBitrate, setAudioChannels, setAudioCodec, setAudioCodecName, setAudioMetadata, setAudioMetadata, setAudioOption, setAudioOptions, setAudioQuality, setFormat, setFrameRate, setGopSize, setImageHeight, setImageWidth, setInterleaved, setMaxBFrames, setMaxDelay, setMetadata, setMetadata, setOption, setOptions, setPixelFormat, setSampleFormat, setSampleRate, setTrellis, setVideoBitrate, setVideoCodec, setVideoCodecName, setVideoMetadata, setVideoMetadata, setVideoOption, setVideoOptions, setVideoQualitypublic FFmpegFrameRecorder(File file, int audioChannels)
public FFmpegFrameRecorder(String filename, int audioChannels)
public FFmpegFrameRecorder(File file, int imageWidth, int imageHeight)
public FFmpegFrameRecorder(String filename, int imageWidth, int imageHeight)
public FFmpegFrameRecorder(File file, int imageWidth, int imageHeight, int audioChannels)
public FFmpegFrameRecorder(String filename, int imageWidth, int imageHeight, int audioChannels)
public FFmpegFrameRecorder(OutputStream outputStream, int audioChannels)
public FFmpegFrameRecorder(OutputStream outputStream, int imageWidth, int imageHeight)
public FFmpegFrameRecorder(OutputStream outputStream, int imageWidth, int imageHeight, int audioChannels)
public static FFmpegFrameRecorder createDefault(File f, int w, int h) throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic static FFmpegFrameRecorder createDefault(String f, int w, int h) throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic static void tryLoad()
throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic void release()
throws FrameRecorder.Exception
release in class FrameRecorderFrameRecorder.Exceptionprotected void finalize()
throws Throwable
public int getFrameNumber()
getFrameNumber in class FrameRecorderpublic void setFrameNumber(int frameNumber)
setFrameNumber in class FrameRecorderpublic long getTimestamp()
getTimestamp in class FrameRecorderpublic void setTimestamp(long timestamp)
setTimestamp in class FrameRecorderpublic void start(avformat.AVFormatContext ifmt_ctx) throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic void start()
throws FrameRecorder.Exception
start in class FrameRecorderFrameRecorder.Exceptionpublic void stop()
throws FrameRecorder.Exception
stop in class FrameRecorderFrameRecorder.Exceptionpublic void record(Frame frame) throws FrameRecorder.Exception
record in class FrameRecorderFrameRecorder.Exceptionpublic void record(Frame frame, int pixelFormat) throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic boolean recordImage(int width,
int height,
int depth,
int channels,
int stride,
int pixelFormat,
Buffer... image)
throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic boolean recordSamples(Buffer... samples) throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic boolean recordSamples(int sampleRate,
int audioChannels,
Buffer... samples)
throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic boolean recordPacket(avcodec.AVPacket pkt) throws FrameRecorder.Exception
FrameRecorder.ExceptionCopyright © 2018. All rights reserved.