public abstract class BaseVideoConversionConverter extends CommandLineBasedConverter
CommandLineBasedConverter.CmdReturnCMD_NAME_PARAMETER, initParameters, TMP_PATH_PARAMETER| Constructor and Description |
|---|
BaseVideoConversionConverter() |
| Modifier and Type | Method and 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) |
convert, execOnBlob, getCommandLineService, getCommandName, getTmpDirectory, init, isConverterAvailablepublic BaseVideoConversionConverter()
protected Map<String,Blob> getCmdBlobParameters(BlobHolder blobHolder, Map<String,Serializable> stringSerializableMap) throws ConversionException
CommandLineBasedConvertergetCmdBlobParameters in class CommandLineBasedConverterConversionExceptionprotected Map<String,String> getCmdStringParameters(BlobHolder blobHolder, Map<String,Serializable> parameters) throws ConversionException
CommandLineBasedConvertergetCmdStringParameters in class CommandLineBasedConverterConversionExceptionprotected BlobHolder buildResult(List<String> cmdOutput, CmdParameters cmdParameters) throws ConversionException
CommandLineBasedConverterbuildResult in class CommandLineBasedConverterConversionExceptionprotected String unquoteValue(String value)
protected abstract String getVideoMimeType()
protected abstract String getVideoExtension()
protected abstract String getTmpDirectoryPrefix()
Copyright © 2015 Nuxeo SA. All rights reserved.