Class FFbase

All Implemented Interfaces:
InputSourceProviderTraits, InternalParametersSupplier, SimpleSourceTraits, ExecutableTool
Direct Known Subclasses:
FFmpeg, FFprobe

public class FFbase extends ConversionTool implements SimpleSourceTraits
  • Constructor Details

  • Method Details

    • beforeRun

      public void beforeRun(ProcesslauncherBuilder processBuilder)
      Specified by:
      beforeRun in interface ExecutableTool
      Overrides:
      beforeRun in class ConversionTool
    • getStdErrPrintStreamToDisplayLinesEvents

      protected PrintStream getStdErrPrintStreamToDisplayLinesEvents()
      Overrides:
      getStdErrPrintStreamToDisplayLinesEvents in class ConversionTool
    • setLogLevel

      public FFbase setLogLevel(FFLogLevel level, boolean repeat, boolean display_level)
      Add like -loglevel repeat+level+verbose
    • isLogLevelSet

      public boolean isLogLevelSet()
    • setHidebanner

      public FFbase setHidebanner()
    • isHidebanner

      public boolean isHidebanner()
    • setOverwriteOutputFiles

      public FFbase setOverwriteOutputFiles()
    • isOverwriteOutputFiles

      public boolean isOverwriteOutputFiles()
    • setNeverOverwriteOutputFiles

      public FFbase setNeverOverwriteOutputFiles()
    • isNeverOverwriteOutputFiles

      public boolean isNeverOverwriteOutputFiles()
    • addSimpleInputSource

      public void addSimpleInputSource(String sourceName, List<String> sourceOptions)
      Define cmd var name like <%IN_AUTOMATIC_n%> with "n" the # of setted sources. Add -i parameter Add now in current Parameters the new add var only if not exists (you should call fixIOParametredVars, if you have add manually vars in Parametres)
      Specified by:
      addSimpleInputSource in interface SimpleSourceTraits
    • addSimpleInputSource

      public void addSimpleInputSource(File file, List<String> sourceOptions)
      Define cmd var name like <%IN_AUTOMATIC_n%> with "n" the # of setted sources. Add -i parameter Add now in current Parameters the new add var only if not exists (you should call fixIOParametredVars, if you have add manually vars in Parametres)
      Specified by:
      addSimpleInputSource in interface SimpleSourceTraits
    • addSimpleOutputDestination

      public ConversionTool addSimpleOutputDestination(String destinationName)
      Define cmd var name like <%OUT_AUTOMATIC_n%> with "n" the # of setted destination. Add now in current Parameters the new add var only if not exists (you should call fixIOParametredVars, if you have add manually vars in Parametres)
      Overrides:
      addSimpleOutputDestination in class ConversionTool
    • addSimpleOutputDestination

      public ConversionTool addSimpleOutputDestination(File destinationFile)
      Define cmd var name like <%OUT_AUTOMATIC_n%> with "n" the # of setted destination. Add now in current Parameters the new add var only if not exists (you should call fixIOParametredVars, if you have add manually vars in Parametres)
      Overrides:
      addSimpleOutputDestination in class ConversionTool
    • getAbout

      public FFAbout getAbout(ExecutableFinder executableFinder)
    • checkFiltersAvailability

      public List<Filter> checkFiltersAvailability(ExecutableFinder executableFinder)
    • filterOutErrorLines

      public Predicate<String> filterOutErrorLines()
      Specified by:
      filterOutErrorLines in interface ExecutableTool