public class FFmpegFrameFilter extends FrameFilter
FrameFilter that uses FFmpeg to filter frames. We can refer to
FFmpeg Filters Documentation
to get a list of filters and the options we can use. The input image width and
height must be specified on the constructor, while other optional values may be
set via corresponding properties.| Modifier and Type | Class and Description |
|---|---|
static class |
FFmpegFrameFilter.Exception |
afilters, aspectRatio, audioChannels, audioFilterArgs, audioInputs, filters, frameRate, imageHeight, imageWidth, pixelFormat, sampleFormat, sampleRate, videoFilterArgs, videoInputs| Constructor and Description |
|---|
FFmpegFrameFilter(String afilters,
int audioChannels) |
FFmpegFrameFilter(String filters,
int imageWidth,
int imageHeight) |
FFmpegFrameFilter(String videoFilters,
String audioFilters,
int imageWidth,
int imageHeight,
int audioChannels) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
double |
getAspectRatio() |
int |
getAudioChannels() |
double |
getFrameRate() |
int |
getImageHeight() |
int |
getImageWidth() |
int |
getPixelFormat() |
int |
getSampleFormat() |
int |
getSampleRate() |
Frame |
pull() |
Frame |
pullImage() |
Frame |
pullSamples() |
void |
push(Frame frame) |
void |
push(Frame frame,
int pixelFormat) |
void |
push(int n,
Frame frame) |
void |
push(int n,
Frame frame,
int pixelFormat) |
void |
pushImage(int n,
int width,
int height,
int depth,
int channels,
int stride,
int pixelFormat,
Buffer... image) |
void |
pushSamples(int n,
int audioChannels,
int sampleRate,
int sampleFormat,
Buffer... samples) |
void |
release() |
void |
releaseUnsafe() |
void |
start() |
void |
startUnsafe() |
void |
stop() |
static void |
tryLoad() |
close, createDefault, flush, getAudioFilterArgs, getAudioInputs, getFilters, getVideoFilterArgs, getVideoInputs, restart, setAspectRatio, setAudioChannels, setAudioFilterArgs, setAudioInputs, setFilters, setFrameRate, setImageHeight, setImageWidth, setPixelFormat, setSampleFormat, setSampleRate, setVideoFilterArgs, setVideoInputspublic FFmpegFrameFilter(String videoFilters, String audioFilters, int imageWidth, int imageHeight, int audioChannels)
public FFmpegFrameFilter(String filters, int imageWidth, int imageHeight)
public FFmpegFrameFilter(String afilters, int audioChannels)
public static void tryLoad()
throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exceptionpublic void release()
throws FFmpegFrameFilter.Exception
release in class FrameFilterFFmpegFrameFilter.Exceptionpublic void releaseUnsafe()
throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exceptionprotected void finalize()
throws Throwable
public int getImageWidth()
getImageWidth in class FrameFilterpublic int getImageHeight()
getImageHeight in class FrameFilterpublic int getPixelFormat()
getPixelFormat in class FrameFilterpublic double getFrameRate()
getFrameRate in class FrameFilterpublic double getAspectRatio()
getAspectRatio in class FrameFilterpublic int getAudioChannels()
getAudioChannels in class FrameFilterpublic int getSampleFormat()
getSampleFormat in class FrameFilterpublic int getSampleRate()
getSampleRate in class FrameFilterpublic void start()
throws FFmpegFrameFilter.Exception
start in class FrameFilterFFmpegFrameFilter.Exceptionpublic void startUnsafe()
throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exceptionpublic void stop()
throws FFmpegFrameFilter.Exception
stop in class FrameFilterFFmpegFrameFilter.Exceptionpublic void push(Frame frame) throws FFmpegFrameFilter.Exception
push in class FrameFilterFFmpegFrameFilter.Exceptionpublic void push(Frame frame, int pixelFormat) throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exceptionpublic void push(int n,
Frame frame)
throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exceptionpublic void push(int n,
Frame frame,
int pixelFormat)
throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exceptionpublic void pushImage(int n,
int width,
int height,
int depth,
int channels,
int stride,
int pixelFormat,
Buffer... image)
throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exceptionpublic void pushSamples(int n,
int audioChannels,
int sampleRate,
int sampleFormat,
Buffer... samples)
throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exceptionpublic Frame pull() throws FFmpegFrameFilter.Exception
pull in class FrameFilterFFmpegFrameFilter.Exceptionpublic Frame pullImage() throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exceptionpublic Frame pullSamples() throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.ExceptionCopyright © 2025. All rights reserved.