public abstract class BaseVideoConversionConverter extends CommandLineBasedConverter
CommandLineBasedConverter.CmdReturn
Modifier and Type | Field and Description |
---|---|
protected static String |
OUTPUT_TMP_PATH |
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
protected static final String OUTPUT_TMP_PATH
public BaseVideoConversionConverter()
protected Map<String,Blob> getCmdBlobParameters(BlobHolder blobHolder, Map<String,Serializable> stringSerializableMap)
CommandLineBasedConverter
getCmdBlobParameters
in class CommandLineBasedConverter
protected Map<String,String> getCmdStringParameters(BlobHolder blobHolder, Map<String,Serializable> parameters)
CommandLineBasedConverter
getCmdStringParameters
in class CommandLineBasedConverter
protected BlobHolder buildResult(List<String> cmdOutput, CmdParameters cmdParameters)
CommandLineBasedConverter
buildResult
in class CommandLineBasedConverter
protected String unquoteValue(String value)
protected abstract String getVideoMimeType()
protected abstract String getVideoExtension()
protected abstract String getTmpDirectoryPrefix()
Copyright © 2018 Nuxeo. All rights reserved.