public abstract class CommandTranscoder extends AbstractTranscoder
ffmpeg or ffmpeg2theora. To call the
external command, CommandExecutor is used. This means that the command can run on the local machine, but also
on a remote machine. This is indicated by setMethod(org.mmbase.util.externalprocess.CommandExecutor.Method), which is called for CommandExecutors when necessary by
Job (and is based on settings in createcaches.xml).
The command should be returns by getCommand(). The path of this command can be indicated by an appliction
context setting 'path' in the namespace named after the class or a super class.| Constructor and Description |
|---|
CommandTranscoder() |
| Modifier and Type | Method and Description |
|---|---|
CommandTranscoder |
clone() |
protected abstract String[] |
getArguments() |
protected abstract String |
getCommand() |
protected String[] |
getEnvironment() |
protected LoggerWriter |
getErrorWriter(Logger log) |
String |
getKey()
Overrides the generation of a key in
AbstractTranscoder to add extra transcoding
parameters that were not set by Settings annotations on the transcoders. |
protected LoggerWriter |
getOutputWriter(Logger log) |
void |
setMethod(CommandExecutor.Method m)
Indicates how and 'where' the command must run.
|
void |
setPath(String p) |
void |
setProperty(String key,
String value) |
protected void |
transcode(Logger log) |
getCodec, getFormat, getIn, getInstance, getMimeType, getOut, init, setCodec, setFormat, setMimeType, toString, transcodepublic void setMethod(CommandExecutor.Method m)
public void setPath(String p)
protected abstract String getCommand()
protected String[] getEnvironment()
protected abstract String[] getArguments()
protected LoggerWriter getOutputWriter(Logger log)
protected LoggerWriter getErrorWriter(Logger log)
public final String getKey()
AbstractTranscoder to add extra transcoding
parameters that were not set by Settings annotations on the transcoders.getKey in interface TranscodergetKey in class AbstractTranscoderprotected void transcode(Logger log) throws Exception
transcode in class AbstractTranscoderExceptionpublic CommandTranscoder clone()
clone in interface PublicCloneable<Transcoder>clone in class AbstractTranscoderMMBase 1.9-SNAPSHOT - ${javadoctimestamp}