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, setVideoSideData
public 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.Exception
public static FFmpegFrameRecorder createDefault(String f, int w, int h) throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exception
public static void tryLoad() throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exception
public void release() throws FFmpegFrameRecorder.Exception
release
in class FrameRecorder
FFmpegFrameRecorder.Exception
public void releaseUnsafe() throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exception
protected void finalize() throws Throwable
public boolean isCloseOutputStream()
public void setCloseOutputStream(boolean closeOutputStream)
public void setDisplayRotation(double angle)
public int getFrameNumber()
getFrameNumber
in class FrameRecorder
public void setFrameNumber(int frameNumber)
setFrameNumber
in class FrameRecorder
public long getTimestamp()
getTimestamp
in class FrameRecorder
public void setTimestamp(long timestamp)
setTimestamp
in class FrameRecorder
public void start(AVFormatContext inputFormatContext) throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exception
public void start() throws FFmpegFrameRecorder.Exception
start
in class FrameRecorder
FFmpegFrameRecorder.Exception
public void startUnsafe() throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exception
public void flush() throws FFmpegFrameRecorder.Exception
flush
in class FrameRecorder
FFmpegFrameRecorder.Exception
public void stop() throws FFmpegFrameRecorder.Exception
stop
in class FrameRecorder
FFmpegFrameRecorder.Exception
public void record(Frame frame) throws FFmpegFrameRecorder.Exception
record
in class FrameRecorder
FFmpegFrameRecorder.Exception
public void record(Frame frame, int pixelFormat) throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exception
public boolean recordImage(int width, int height, int depth, int channels, int stride, int pixelFormat, Buffer... image) throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exception
public boolean recordSamples(Buffer... samples) throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exception
public boolean recordSamples(int sampleRate, int audioChannels, Buffer... samples) throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exception
public boolean recordPacket(AVPacket pkt) throws FFmpegFrameRecorder.Exception
FFmpegFrameRecorder.Exception
Copyright © 2024. All rights reserved.