public abstract class FrameRecorder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FrameRecorder.Exception |
| Modifier and Type | Field and Description |
|---|---|
protected double |
aspectRatio |
protected int |
audioBitrate |
protected int |
audioChannels |
protected int |
audioCodec |
protected String |
audioCodecName |
protected HashMap<String,String> |
audioMetadata |
protected HashMap<String,String> |
audioOptions |
protected double |
audioQuality |
protected String |
format |
protected int |
frameNumber |
protected double |
frameRate |
protected int |
gopSize |
protected int |
imageHeight |
protected int |
imageWidth |
protected boolean |
interleaved |
static List<String> |
list |
protected HashMap<String,String> |
metadata |
protected HashMap<String,String> |
options |
protected int |
pixelFormat |
protected int |
sampleFormat |
protected int |
sampleRate |
protected long |
timestamp |
protected int |
videoBitrate |
protected int |
videoCodec |
protected String |
videoCodecName |
protected HashMap<String,String> |
videoMetadata |
protected HashMap<String,String> |
videoOptions |
protected double |
videoQuality |
| Constructor and Description |
|---|
FrameRecorder() |
| Modifier and Type | Method and Description |
|---|---|
static FrameRecorder |
create(Class<? extends FrameRecorder> c,
Class p,
Object o,
int w,
int h) |
static FrameRecorder |
create(String className,
File file,
int width,
int height) |
static FrameRecorder |
create(String className,
String filename,
int width,
int height) |
static FrameRecorder |
createDefault(File file,
int width,
int height) |
static FrameRecorder |
createDefault(String filename,
int width,
int height) |
static Class<? extends FrameRecorder> |
get(String className) |
double |
getAspectRatio() |
int |
getAudioBitrate() |
int |
getAudioChannels() |
int |
getAudioCodec() |
String |
getAudioCodecName() |
String |
getAudioMetadata(String key) |
String |
getAudioOption(String key) |
double |
getAudioQuality() |
static Class<? extends FrameRecorder> |
getDefault() |
String |
getFormat() |
int |
getFrameNumber() |
double |
getFrameRate() |
int |
getGopSize() |
int |
getImageHeight() |
int |
getImageWidth() |
String |
getMetadata(String key) |
String |
getOption(String key) |
int |
getPixelFormat() |
int |
getSampleFormat() |
int |
getSampleRate() |
long |
getTimestamp() |
int |
getVideoBitrate() |
int |
getVideoCodec() |
String |
getVideoCodecName() |
String |
getVideoMetadata(String key) |
String |
getVideoOption(String key) |
double |
getVideoQuality() |
static void |
init() |
boolean |
isInterleaved() |
abstract void |
record(Frame frame) |
abstract void |
release() |
void |
setAspectRatio(double aspectRatio) |
void |
setAudioBitrate(int audioBitrate) |
void |
setAudioChannels(int audioChannels) |
void |
setAudioCodec(int audioCodec) |
void |
setAudioCodecName(String audioCodecName) |
void |
setAudioMetadata(String key,
String value) |
void |
setAudioOption(String key,
String value) |
void |
setAudioQuality(double audioQuality) |
void |
setFormat(String format) |
void |
setFrameNumber(int frameNumber) |
void |
setFrameRate(double frameRate) |
void |
setGopSize(int gopSize) |
void |
setImageHeight(int imageHeight) |
void |
setImageWidth(int imageWidth) |
void |
setInterleaved(boolean interleaved) |
void |
setMetadata(String key,
String value) |
void |
setOption(String key,
String value) |
void |
setPixelFormat(int pixelFormat) |
void |
setSampleFormat(int sampleFormat) |
void |
setSampleRate(int sampleRate) |
void |
setTimestamp(long timestamp) |
void |
setVideoBitrate(int videoBitrate) |
void |
setVideoCodec(int videoCodec) |
void |
setVideoCodecName(String videoCodecName) |
void |
setVideoMetadata(String key,
String value) |
void |
setVideoOption(String key,
String value) |
void |
setVideoQuality(double videoQuality) |
abstract void |
start() |
abstract void |
stop() |
protected String format
protected String videoCodecName
protected String audioCodecName
protected int imageWidth
protected int imageHeight
protected int audioChannels
protected int pixelFormat
protected int videoCodec
protected int videoBitrate
protected int gopSize
protected double aspectRatio
protected double frameRate
protected double videoQuality
protected int sampleFormat
protected int audioCodec
protected int audioBitrate
protected int sampleRate
protected double audioQuality
protected boolean interleaved
protected int frameNumber
protected long timestamp
public static void init()
public static Class<? extends FrameRecorder> getDefault()
public static Class<? extends FrameRecorder> get(String className) throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic static FrameRecorder create(Class<? extends FrameRecorder> c, Class p, Object o, int w, int h) throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic static FrameRecorder createDefault(File file, int width, int height) throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic static FrameRecorder createDefault(String filename, int width, int height) throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic static FrameRecorder create(String className, File file, int width, int height) throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic static FrameRecorder create(String className, String filename, int width, int height) throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic String getFormat()
public void setFormat(String format)
public String getVideoCodecName()
public void setVideoCodecName(String videoCodecName)
public String getAudioCodecName()
public void setAudioCodecName(String audioCodecName)
public int getImageWidth()
public void setImageWidth(int imageWidth)
public int getImageHeight()
public void setImageHeight(int imageHeight)
public int getAudioChannels()
public void setAudioChannels(int audioChannels)
public int getPixelFormat()
public void setPixelFormat(int pixelFormat)
public int getVideoCodec()
public void setVideoCodec(int videoCodec)
public int getVideoBitrate()
public void setVideoBitrate(int videoBitrate)
public int getGopSize()
public void setGopSize(int gopSize)
public double getAspectRatio()
public void setAspectRatio(double aspectRatio)
public double getFrameRate()
public void setFrameRate(double frameRate)
public double getVideoQuality()
public void setVideoQuality(double videoQuality)
public int getSampleFormat()
public void setSampleFormat(int sampleFormat)
public int getAudioCodec()
public void setAudioCodec(int audioCodec)
public int getAudioBitrate()
public void setAudioBitrate(int audioBitrate)
public int getSampleRate()
public void setSampleRate(int sampleRate)
public double getAudioQuality()
public void setAudioQuality(double audioQuality)
public boolean isInterleaved()
public void setInterleaved(boolean interleaved)
public int getFrameNumber()
public void setFrameNumber(int frameNumber)
public long getTimestamp()
public void setTimestamp(long timestamp)
public abstract void start()
throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic abstract void stop()
throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic abstract void record(Frame frame) throws FrameRecorder.Exception
FrameRecorder.Exceptionpublic abstract void release()
throws FrameRecorder.Exception
FrameRecorder.ExceptionCopyright © 2016. All rights reserved.