public abstract class BaseVideoConversionConverter extends CommandLineBasedConverter
CommandLineBasedConverter.CmdReturn
CMD_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, isConverterAvailable
public BaseVideoConversionConverter()
protected Map<String,Blob> getCmdBlobParameters(BlobHolder blobHolder, Map<String,Serializable> stringSerializableMap) throws ConversionException
CommandLineBasedConverter
getCmdBlobParameters
in class CommandLineBasedConverter
ConversionException
protected Map<String,String> getCmdStringParameters(BlobHolder blobHolder, Map<String,Serializable> parameters) throws ConversionException
CommandLineBasedConverter
getCmdStringParameters
in class CommandLineBasedConverter
ConversionException
protected BlobHolder buildResult(List<String> cmdOutput, CmdParameters cmdParameters) throws ConversionException
CommandLineBasedConverter
buildResult
in class CommandLineBasedConverter
ConversionException
protected String unquoteValue(String value)
protected abstract String getVideoMimeType()
protected abstract String getVideoExtension()
protected abstract String getTmpDirectoryPrefix()
Copyright © 2015 Nuxeo SA. All rights reserved.