Class VideoTool
java.lang.Object
org.nuxeo.ecm.platform.video.tools.VideoTool
- Direct Known Subclasses:
VideoClosedCaptionsExtractor
,VideoConcat
,VideoSlicer
,VideoWatermarker
Common interface to setup the video tools.
- Since:
- 8.4
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildResult
(String mimeType, Map<String, String> parameters) Returns aBlobHolder
containing the result of the command.void
cleanupInputs
(Map<String, String> parameters) Removes any temporary input files that were used for command execution.getName()
static Blob
getTemporaryBlob
(String path, String mimeType) Gets a temporary blob for the given temporary path.setupParameters
(BlobHolder input, Map<String, Object> parameters)
-
Field Details
-
name
-
commandLineName
-
SOURCE_FILE_PATH_PARAM
- See Also:
-
OUTPUT_FILE_PATH_PARAM
- See Also:
-
OUTPUT_MIMETYPE_PARAM
- See Also:
-
VIDEO_TOOLS_DIRECTORY
- See Also:
-
-
Constructor Details
-
VideoTool
-
-
Method Details
-
getName
-
getCommandLineName
-
setupParameters
-
cleanupInputs
Removes any temporary input files that were used for command execution. -
buildResult
Returns aBlobHolder
containing the result of the command.- Parameters:
mimeType
- the MIME typeparameters
- the parameters- Returns:
- the blob holder
-
getTemporaryBlob
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 filemimeType
- the blob MIME type- Returns:
- a temporary
Blob
-