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:
MP4Converter
,OggConverter
,VideoConversionConverter
,WebMConverter
public abstract class BaseVideoConversionConverter extends CommandLineBasedConverter
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 Modifier and Type Field Description protected static String
OUTPUT_TMP_PATH
-
Fields inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
CMD_NAME_PARAMETER, initParameters, TMP_PATH_PARAMETER
-
-
Constructor Summary
Constructors Constructor Description BaseVideoConversionConverter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected BlobHolder
buildResult(List<String> cmdOutput, CmdParameters cmdParameters)
Builds result from commandLine output buffer.protected Map<String,Blob>
getCmdBlobParameters(BlobHolder blobHolder, Map<String,Serializable> stringSerializableMap)
Extracts BlobParameters.protected Map<String,String>
getCmdStringParameters(BlobHolder blobHolder, Map<String,Serializable> parameters)
Extracts String parameters.protected abstract String
getTmpDirectoryPrefix()
Returns the temporary directory prefix to use for this converter.protected abstract String
getVideoExtension()
Returns the video extension, always prefixed by '.'.protected abstract String
getVideoMimeType()
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, getCommandLineService, getCommandName, getTmpDirectory, init, isConverterAvailable
-
-
-
-
Field Detail
-
OUTPUT_TMP_PATH
protected static final String OUTPUT_TMP_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
protected BlobHolder buildResult(List<String> cmdOutput, CmdParameters cmdParameters)
Description copied from class:CommandLineBasedConverter
Builds result from commandLine output buffer.- Specified by:
buildResult
in classCommandLineBasedConverter
-
getVideoMimeType
protected abstract String getVideoMimeType()
Returns the video mime type to use for this converter.
-
getVideoExtension
protected abstract String getVideoExtension()
Returns the video extension, always prefixed by '.'.
-
getTmpDirectoryPrefix
protected abstract String getTmpDirectoryPrefix()
Returns the temporary directory prefix to use for this converter.
-
-