Class BaseVideoConversionConverter
java.lang.Object
org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
org.nuxeo.ecm.platform.video.convert.BaseVideoConversionConverter
- All Implemented Interfaces:
Converter
,ExternalConverter
- Direct Known Subclasses:
VideoConversionConverter
Base class for converters doing video conversions.
- Since:
- 5.5
- Author:
- Thomas Roger
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
CommandLineBasedConverter.CmdReturn
-
Field Summary
Fields inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
CMD_NAME_PARAMETER, initParameters, TMP_PATH_PARAMETER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BlobHolder
buildResult
(List<String> cmdOutput, CmdParameters cmdParameters) Builds result from commandLine output buffer.getCmdBlobParameters
(BlobHolder blobHolder, Map<String, Serializable> stringSerializableMap) Extracts BlobParameters.getCmdStringParameters
(BlobHolder blobHolder, Map<String, Serializable> parameters) Extracts String parameters.protected abstract String
Returns the temporary directory prefix to use for this converter.protected abstract String
Returns the video extension, always prefixed by '.'.protected abstract String
Returns the video mime type to use for this converter.protected String
unquoteValue
(String value) Methods inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
convert, execOnBlob, getCommandName, getTmpDirectory, init, isConverterAvailable
-
Field Details
-
OUTPUT_TMP_PATH
- See Also:
-
-
Constructor Details
-
BaseVideoConversionConverter
public BaseVideoConversionConverter()
-
-
Method Details
-
getCmdBlobParameters
protected Map<String,Blob> getCmdBlobParameters(BlobHolder blobHolder, Map<String, Serializable> stringSerializableMap) Description copied from class:CommandLineBasedConverter
Extracts BlobParameters.- Specified by:
getCmdBlobParameters
in classCommandLineBasedConverter
-
getCmdStringParameters
protected Map<String,String> getCmdStringParameters(BlobHolder blobHolder, Map<String, Serializable> parameters) Description copied from class:CommandLineBasedConverter
Extracts String parameters.- Specified by:
getCmdStringParameters
in classCommandLineBasedConverter
-
buildResult
Description copied from class:CommandLineBasedConverter
Builds result from commandLine output buffer.- Specified by:
buildResult
in classCommandLineBasedConverter
-
unquoteValue
- Since:
- 5.6
-
getVideoMimeType
Returns the video mime type to use for this converter. -
getVideoExtension
Returns the video extension, always prefixed by '.'. -
getTmpDirectoryPrefix
Returns the temporary directory prefix to use for this converter.
-