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, audioInputs, filters, frameRate, imageHeight, imageWidth, pixelFormat, sampleFormat, sampleRate, 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, getAudioInputs, getFilters, getVideoInputs, restart, setAspectRatio, setAudioChannels, setAudioInputs, setFilters, setFrameRate, setImageHeight, setImageWidth, setPixelFormat, setSampleFormat, setSampleRate, setVideoInputs
public 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.Exception
public void release() throws FFmpegFrameFilter.Exception
release
in class FrameFilter
FFmpegFrameFilter.Exception
public void releaseUnsafe() throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exception
protected void finalize() throws Throwable
public int getImageWidth()
getImageWidth
in class FrameFilter
public int getImageHeight()
getImageHeight
in class FrameFilter
public int getPixelFormat()
getPixelFormat
in class FrameFilter
public double getFrameRate()
getFrameRate
in class FrameFilter
public double getAspectRatio()
getAspectRatio
in class FrameFilter
public int getAudioChannels()
getAudioChannels
in class FrameFilter
public int getSampleFormat()
getSampleFormat
in class FrameFilter
public int getSampleRate()
getSampleRate
in class FrameFilter
public void start() throws FFmpegFrameFilter.Exception
start
in class FrameFilter
FFmpegFrameFilter.Exception
public void startUnsafe() throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exception
public void stop() throws FFmpegFrameFilter.Exception
stop
in class FrameFilter
FFmpegFrameFilter.Exception
public void push(Frame frame) throws FFmpegFrameFilter.Exception
push
in class FrameFilter
FFmpegFrameFilter.Exception
public void push(Frame frame, int pixelFormat) throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exception
public void push(int n, Frame frame) throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exception
public void push(int n, Frame frame, int pixelFormat) throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exception
public void pushImage(int n, int width, int height, int depth, int channels, int stride, int pixelFormat, Buffer... image) throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exception
public void pushSamples(int n, int audioChannels, int sampleRate, int sampleFormat, Buffer... samples) throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exception
public Frame pull() throws FFmpegFrameFilter.Exception
pull
in class FrameFilter
FFmpegFrameFilter.Exception
public Frame pullImage() throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exception
public Frame pullSamples() throws FFmpegFrameFilter.Exception
FFmpegFrameFilter.Exception
Copyright © 2024. All rights reserved.