public class FFmpegFrameRecorder extends FrameRecorder
| Modifier and Type | Class and Description |
|---|---|
static class |
FFmpegFrameRecorder.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 |
|---|
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) |
FFmpegFrameRecorder(URL url,
int audioChannels) |
FFmpegFrameRecorder(URL url,
int imageWidth,
int imageHeight) |
FFmpegFrameRecorder(URL url,
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() |
void |
flush() |
int |
getFrameNumber() |
long |
getTimestamp()
Returns best guess for timestamp in microseconds...
|
boolean |
isCloseOutputStream() |
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(AVPacket pkt) |
boolean |
recordSamples(Buffer... samples) |
boolean |
recordSamples(int sampleRate,
int audioChannels,
Buffer... samples) |
void |
release() |
void |
releaseUnsafe() |
void |
setCloseOutputStream(boolean closeOutputStream) |
void |
setDisplayRotation(double angle)
Sets the rotation in degrees to the side data of the video stream.
|
void |
setFrameNumber(int frameNumber) |
void |
setTimestamp(long timestamp) |
void |
start() |
void |
start(AVFormatContext inputFormatContext) |
void |
startUnsafe() |
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, getFrameRate, getGopSize, getImageHeight, getImageScalingFlags, getImageWidth, getMaxBFrames, getMaxDelay, getMetadata, getMetadata, getOption, getOptions, getPixelFormat, getSampleFormat, getSampleRate, 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, setFrameRate, setGopSize, setImageHeight, setImageScalingFlags, setImageWidth, setInterleaved, setMaxBFrames, setMaxDelay, setMetadata, setMetadata, setOption, setOptions, setPixelFormat, setSampleFormat, setSampleRate, setTrellis, setVideoBitrate, setVideoCodec, setVideoCodecName, setVideoMetadata, setVideoMetadata, setVideoOption, setVideoOptions, setVideoQuality, setVideoSideData, setVideoSideDatapublic FFmpegFrameRecorder(URL url, int audioChannels)
public FFmpegFrameRecorder(File file, int audioChannels)
public FFmpegFrameRecorder(String filename, int audioChannels)
public FFmpegFrameRecorder(URL url, int imageWidth, int imageHeight)
public FFmpegFrameRecorder(File file, int imageWidth, int imageHeight)
public FFmpegFrameRecorder(String filename, int imageWidth, int imageHeight)
public FFmpegFrameRecorder(URL url, int imageWidth, int imageHeight, int audioChannels)
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 FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exceptionpublic static FFmpegFrameRecorder createDefault(String f, int w, int h) throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exceptionpublic static void tryLoad()
throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exceptionpublic void release()
throws FFmpegFrameRecorder.Exception
release in class FrameRecorderFFmpegFrameRecorder.Exceptionpublic void releaseUnsafe()
throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exceptionprotected void finalize()
throws Throwable
public boolean isCloseOutputStream()
public void setCloseOutputStream(boolean closeOutputStream)
public void setDisplayRotation(double angle)
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(AVFormatContext inputFormatContext) throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exceptionpublic void start()
throws FFmpegFrameRecorder.Exception
start in class FrameRecorderFFmpegFrameRecorder.Exceptionpublic void startUnsafe()
throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exceptionpublic void flush()
throws FFmpegFrameRecorder.Exception
flush in class FrameRecorderFFmpegFrameRecorder.Exceptionpublic void stop()
throws FFmpegFrameRecorder.Exception
stop in class FrameRecorderFFmpegFrameRecorder.Exceptionpublic void record(Frame frame) throws FFmpegFrameRecorder.Exception
record in class FrameRecorderFFmpegFrameRecorder.Exceptionpublic void record(Frame frame, int pixelFormat) throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exceptionpublic boolean recordImage(int width,
int height,
int depth,
int channels,
int stride,
int pixelFormat,
Buffer... image)
throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exceptionpublic boolean recordSamples(Buffer... samples) throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exceptionpublic boolean recordSamples(int sampleRate,
int audioChannels,
Buffer... samples)
throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exceptionpublic boolean recordPacket(AVPacket pkt) throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.ExceptionCopyright © 2025. All rights reserved.