public class FFMpegTranscoder extends CommandTranscoder
ffmpeg to transcode media. Possible parameters to be set in
'createcaches.xml' are: forceFormat (-f), acodec (-acodec), vcodec (-vcodec),
vpre (-vpre), aq (-aq), ab (-ab), bitrate or b (-b), async (-async), framesPerSecond or
r (-r), audioChannels or ac (-ac), width and height (combined to -s).
Others can be added as extra parameters but will be at the end of the commands parameters. See the
documentation for FFmpeg for more information.| Modifier and Type | Field and Description |
|---|---|
(package private) String |
ab |
(package private) String |
ac |
(package private) String |
acodec |
(package private) String |
aq |
(package private) String |
async |
(package private) String |
b |
(package private) String |
forceFormat |
(package private) Integer |
height |
(package private) String |
r |
(package private) String |
vcodec |
(package private) String |
vpre |
(package private) Integer |
width |
| Constructor and Description |
|---|
FFMpegTranscoder() |
| Modifier and Type | Method and Description |
|---|---|
FFMpegTranscoder |
clone() |
protected String[] |
getArguments() |
Codec |
getCodec()
The codec of the result.
|
protected String |
getCommand() |
protected LoggerWriter |
getErrorWriter(Logger log) |
protected LoggerWriter |
getOutputWriter(Logger log) |
void |
init(Node dest)
Saving values like width, height, normally when re-transcoding
|
void |
setAb(String a) |
void |
setAbitrate(String a) |
void |
setAc(String a) |
void |
setAcodec(String a) |
void |
setAq(String a) |
void |
setAsync(String a) |
void |
setAudioChannels(String a) |
void |
setB(String b) |
void |
setBitrate(String b) |
void |
setForceFormat(String f) |
void |
setFramesPerSecond(String r) |
void |
setHeight(int y) |
void |
setR(String r) |
void |
setVcodec(String v) |
void |
setVpre(String vp) |
void |
setWidth(int x) |
getEnvironment, getKey, setMethod, setPath, setProperty, transcodegetFormat, getIn, getInstance, getMimeType, getOut, setCodec, setFormat, setMimeType, toString, transcodeString forceFormat
String acodec
String vcodec
String vpre
String ab
String aq
String b
String async
String r
String ac
Integer width
Integer height
public void setForceFormat(String f)
public void setAcodec(String a)
public void setVcodec(String v)
public Codec getCodec()
TranscodergetCodec in interface TranscodergetCodec in class AbstractTranscoderpublic void setVpre(String vp)
public void setAb(String a)
public void setAbitrate(String a)
public void setAq(String a)
public void setB(String b)
public void setBitrate(String b)
public void setAsync(String a)
public void setR(String r)
public void setFramesPerSecond(String r)
public void setAc(String a)
public void setAudioChannels(String a)
public void setHeight(int y)
public void setWidth(int x)
protected LoggerWriter getErrorWriter(Logger log)
getErrorWriter in class CommandTranscoderpublic void init(Node dest)
init in interface Transcoderinit in class AbstractTranscoderdest - stream destination Nodeprotected String getCommand()
getCommand in class CommandTranscoderprotected String[] getArguments()
getArguments in class CommandTranscoderprotected LoggerWriter getOutputWriter(Logger log)
getOutputWriter in class CommandTranscoderpublic FFMpegTranscoder clone()
clone in interface PublicCloneable<Transcoder>clone in class CommandTranscoderMMBase 1.9-SNAPSHOT - ${javadoctimestamp}