|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.sink.ffmpeg.AbstractFFmpegPlugin
public abstract class AbstractFFmpegPlugin
Ancestor for FFmpeg plugins.
| Field Summary | |
|---|---|
protected String |
m_AdditionalInputOptions
additional input options to use for ffmpeg. |
protected String |
m_AdditionalOutputOptions
additional output options to use for ffmpeg. |
protected int |
m_BitRate
the bitrate in kbits to use. |
protected int |
m_FramesPerSecond
the frames per second to use. |
protected PlaceholderFile |
m_Input
the input file. |
protected FFmpeg |
m_Owner
the owning actor. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractFFmpegPlugin()
|
|
| Method Summary | |
|---|---|
protected abstract String |
assembleInputOptions()
Assembles the input command-line options. |
protected abstract String |
assembleOutputOptions()
Assembles the ouput command-line options. |
String |
bitRateTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
String |
execute()
Performs the ffmpeg execution. |
String |
framesPerSecondTipText()
Returns the tip text for this property. |
int |
getBitRate()
Returns the bit rate in kbits to use. |
protected PlaceholderFile |
getExecutable()
Returns the ffmpeg executable. |
int |
getFramesPerSecond()
Returns the frames per second to use. |
PlaceholderFile |
getInput()
Returns the input file. |
FFmpeg |
getOwner()
Sets the owner. |
String |
getQuickInfo()
Returns a quick info about the plugin, which will be displayed in the GUI. |
protected String |
handleException(String msg,
Throwable t)
Outputs the stacktrace along with the message on stderr and returns a combination of both of them as string. |
protected void |
initialize()
Initializes the members. |
protected void |
reset()
Resets the scheme. |
void |
setBitRate(int value)
Sets the bit rate in kbits to use. |
void |
setFramesPerSecond(int value)
Sets the frames per second to use. |
void |
setInput(PlaceholderFile value)
Sets the input file. |
void |
setOwner(FFmpeg owner)
Sets the owner. |
String |
setUp()
Checks the configuration. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected FFmpeg m_Owner
protected PlaceholderFile m_Input
protected int m_BitRate
protected int m_FramesPerSecond
protected String m_AdditionalInputOptions
protected String m_AdditionalOutputOptions
| Constructor Detail |
|---|
public AbstractFFmpegPlugin()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerprotected void initialize()
initialize in class AbstractOptionHandlerprotected void reset()
reset in class AbstractOptionHandlerpublic void setOwner(FFmpeg owner)
owner - the ownerpublic FFmpeg getOwner()
public String getQuickInfo()
public void setFramesPerSecond(int value)
value - the fpspublic int getFramesPerSecond()
public String framesPerSecondTipText()
public void setBitRate(int value)
value - the bit ratepublic int getBitRate()
public String bitRateTipText()
public void setInput(PlaceholderFile value)
value - the input filepublic PlaceholderFile getInput()
protected PlaceholderFile getExecutable()
public String setUp()
getOwner()
protected String handleException(String msg,
Throwable t)
msg - the message for the exceptiont - the exception
protected abstract String assembleInputOptions()
protected abstract String assembleOutputOptions()
public String execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||