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.FrameFilter.Exceptionafilters, 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 |
start() |
void |
stop() |
static void |
tryLoad() |
close, createDefault, flush, getAudioInputs, getFilters, getVideoInputs, restart, setAspectRatio, setAudioChannels, setAudioInputs, setFilters, setFrameRate, setImageHeight, setImageWidth, setPixelFormat, setSampleFormat, setSampleRate, 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 FrameFilter.Exception
FrameFilter.Exceptionpublic void release()
throws FrameFilter.Exception
release in class FrameFilterFrameFilter.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 FrameFilter.Exception
start in class FrameFilterFrameFilter.Exceptionpublic void stop()
throws FrameFilter.Exception
stop in class FrameFilterFrameFilter.Exceptionpublic void push(Frame frame) throws FrameFilter.Exception
push in class FrameFilterFrameFilter.Exceptionpublic void push(Frame frame, int pixelFormat) throws FrameFilter.Exception
FrameFilter.Exceptionpublic void push(int n,
Frame frame)
throws FrameFilter.Exception
FrameFilter.Exceptionpublic void push(int n,
Frame frame,
int pixelFormat)
throws FrameFilter.Exception
FrameFilter.Exceptionpublic void pushImage(int n,
int width,
int height,
int depth,
int channels,
int stride,
int pixelFormat,
Buffer... image)
throws FrameFilter.Exception
FrameFilter.Exceptionpublic void pushSamples(int n,
int audioChannels,
int sampleRate,
int sampleFormat,
Buffer... samples)
throws FrameFilter.Exception
FrameFilter.Exceptionpublic Frame pull() throws FrameFilter.Exception
pull in class FrameFilterFrameFilter.Exceptionpublic Frame pullImage() throws FrameFilter.Exception
FrameFilter.Exceptionpublic Frame pullSamples() throws FrameFilter.Exception
FrameFilter.ExceptionCopyright © 2019. All rights reserved.