Class VideoTool

java.lang.Object
org.nuxeo.ecm.platform.video.tools.VideoTool
Direct Known Subclasses:
VideoClosedCaptionsExtractor, VideoConcat, VideoSlicer, VideoWatermarker

public abstract class VideoTool extends Object
Common interface to setup the video tools.
Since:
8.4
  • Field Details

  • Constructor Details

    • VideoTool

      public VideoTool(String name, String commandLineName)
  • Method Details

    • getName

      public String getName()
    • getCommandLineName

      public String getCommandLineName()
    • setupParameters

      public Map<String,String> setupParameters(BlobHolder input, Map<String,Object> parameters)
    • cleanupInputs

      public void cleanupInputs(Map<String,String> parameters)
      Removes any temporary input files that were used for command execution.
    • buildResult

      public BlobHolder buildResult(String mimeType, Map<String,String> parameters)
      Returns a BlobHolder containing the result of the command.
      Parameters:
      mimeType - the MIME type
      parameters - the parameters
      Returns:
      the blob holder
    • getTemporaryBlob

      public static Blob getTemporaryBlob(String path, String mimeType)
      Gets a temporary blob for the given temporary path.

      The temporary blob is backed by a temporary file in a new location. The old file is removed.

      Parameters:
      path - the path to a temporary file
      mimeType - the blob MIME type
      Returns:
      a temporary Blob