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 StringOUTPUT_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 BlobHolderbuildResult(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 StringgetTmpDirectoryPrefix()Returns the temporary directory prefix to use for this converter.protected abstract StringgetVideoExtension()Returns the video extension, always prefixed by '.'.protected abstract StringgetVideoMimeType()Returns 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, 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: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
protected BlobHolder buildResult(List<String> cmdOutput, CmdParameters cmdParameters)
Description copied from class:CommandLineBasedConverterBuilds result from commandLine output buffer.- Specified by:
buildResultin 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.
-
-