Class 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 for FFmpeg 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 Detail

      • m_AdditionalInputOptions

        protected String m_AdditionalInputOptions
        additional input options to use for ffmpeg.
      • m_AdditionalOutputOptions

        protected String m_AdditionalOutputOptions
        additional output options to use for ffmpeg.
    • Constructor Detail

      • AbstractFFmpegPluginWithOptions

        public AbstractFFmpegPluginWithOptions()
    • Method Detail

      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class adams.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 interface adams.core.QuickInfoSupporter
        Overrides:
        getQuickInfo in class AbstractFFmpegPlugin
        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
      • assembleActualOutputOptions

        protected abstract String assembleActualOutputOptions()
        Assembles the actual output command-line options, not including the additional options.
        Returns:
        the command-line