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
FieldsFields inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
CMD_NAME_PARAMETER, initParameters, TMP_PATH_PARAMETER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BlobHolderbuildResult(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 StringReturns the temporary directory prefix to use for this converter.protected abstract StringReturns the video extension, always prefixed by '.'.protected abstract StringReturns the video mime type to use for this converter.protected StringunquoteValue(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:CommandLineBasedConverterExtracts BlobParameters.- Specified by:
getCmdBlobParametersin classCommandLineBasedConverter
-
getCmdStringParameters
protected Map<String,String> getCmdStringParameters(BlobHolder blobHolder, Map<String, Serializable> parameters) Description copied from class:CommandLineBasedConverterExtracts String parameters.- Specified by:
getCmdStringParametersin classCommandLineBasedConverter
-
buildResult
Description copied from class:CommandLineBasedConverterBuilds result from commandLine output buffer.- Specified by:
buildResultin 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.
-