Package adams.flow.sink.ffmpeg
Class AbstractFFmpegPluginWithOptions
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.sink.ffmpeg.AbstractFFmpegPlugin
-
- adams.flow.sink.ffmpeg.AbstractFFmpegPluginWithOptions
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.QuickInfoSupporter
,adams.core.SizeOfHandler
,Serializable
- Direct Known Subclasses:
ConvertAudio
,MovieFromImages
public abstract class AbstractFFmpegPluginWithOptions extends AbstractFFmpegPlugin
Ancestor forFFmpeg
plugins that offers the user to specify additional input/output options.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_AdditionalInputOptions
additional input options to use for ffmpeg.protected String
m_AdditionalOutputOptions
additional output options to use for ffmpeg.-
Fields inherited from class adams.flow.sink.ffmpeg.AbstractFFmpegPlugin
m_Input, m_Owner
-
-
Constructor Summary
Constructors Constructor Description AbstractFFmpegPluginWithOptions()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
additionalInputOptionsTipText()
Returns the tip text for this property.String
additionalOutputOptionsTipText()
Returns the tip text for this property.protected abstract String
assembleActualInputOptions()
Assembles the actual input command-line options, not including the additional options or the input file.protected abstract String
assembleActualOutputOptions()
Assembles the actual output command-line options, not including the additional options.protected String
assembleInputOptions()
Assembles the input command-line options, actual and additional.protected String
assembleOutputOptions()
Assembles the ouput command-line options.void
defineOptions()
Adds options to the internal list of options.String
getAdditionalInputOptions()
Returns the additional input options to use.String
getAdditionalOutputOptions()
Returns the additional output options to use.protected String
getDefaultAdditionalInputOptions()
Returns the default value for the additional input options.protected String
getDefaultAdditionalOutputOptions()
Returns the default value for the additional output options.String
getQuickInfo()
Returns a quick info about the plugin, which will be displayed in the GUI.void
setAdditionalInputOptions(String value)
Sets the additional input options to use.void
setAdditionalOutputOptions(String value)
Sets the additional output options to use.-
Methods inherited from class adams.flow.sink.ffmpeg.AbstractFFmpegPlugin
execute, getExecutable, getInput, getOwner, handleException, initialize, reset, setInput, setOwner, setUp
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classadams.core.option.AbstractOptionHandler
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the plugin, which will be displayed in the GUI.- Specified by:
getQuickInfo
in interfaceadams.core.QuickInfoSupporter
- Overrides:
getQuickInfo
in classAbstractFFmpegPlugin
- Returns:
- null if no info available, otherwise short string
-
getDefaultAdditionalInputOptions
protected String getDefaultAdditionalInputOptions()
Returns the default value for the additional input options.- Returns:
- the default
-
setAdditionalInputOptions
public void setAdditionalInputOptions(String value)
Sets the additional input options to use.- Parameters:
value
- the options
-
getAdditionalInputOptions
public String getAdditionalInputOptions()
Returns the additional input options to use.- Returns:
- the options
-
additionalInputOptionsTipText
public String additionalInputOptionsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultAdditionalOutputOptions
protected String getDefaultAdditionalOutputOptions()
Returns the default value for the additional output options.- Returns:
- the default
-
setAdditionalOutputOptions
public void setAdditionalOutputOptions(String value)
Sets the additional output options to use.- Parameters:
value
- the options
-
getAdditionalOutputOptions
public String getAdditionalOutputOptions()
Returns the additional output options to use.- Returns:
- the options
-
additionalOutputOptionsTipText
public String additionalOutputOptionsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
assembleActualInputOptions
protected abstract String assembleActualInputOptions()
Assembles the actual input command-line options, not including the additional options or the input file.- Returns:
- the command-line
-
assembleInputOptions
protected String assembleInputOptions()
Assembles the input command-line options, actual and additional.- Specified by:
assembleInputOptions
in classAbstractFFmpegPlugin
- Returns:
- the command-line
-
assembleActualOutputOptions
protected abstract String assembleActualOutputOptions()
Assembles the actual output command-line options, not including the additional options.- Returns:
- the command-line
-
assembleOutputOptions
protected String assembleOutputOptions()
Assembles the ouput command-line options.- Specified by:
assembleOutputOptions
in classAbstractFFmpegPlugin
- Returns:
- the command-line
-
-