org.mmbase.streams.transcoders
Class FFMpeg2TheoraTranscoder

java.lang.Object
  extended by org.mmbase.streams.transcoders.AbstractTranscoder
      extended by org.mmbase.streams.transcoders.CommandTranscoder
          extended by org.mmbase.streams.transcoders.FFMpeg2TheoraTranscoder
All Implemented Interfaces:
Serializable, Cloneable, Transcoder, PublicCloneable<Transcoder>

public class FFMpeg2TheoraTranscoder
extends CommandTranscoder

This transcoder uses the command ffmpeg2theora. Possible parameters to be set in 'createcaches.xml' are: videoQuality (--videoquality), keyInt (--keyint), height (-y) and width (-x). Others can be added but will be at the end of the commands parameters.

Version:
$Id: FFMpeg2TheoraTranscoder.java 42453 2010-06-08 11:18:36Z andre $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
(package private)  long count
           
(package private)  Integer height
           
(package private)  int keyInt
           
(package private)  int videoQuality
           
(package private)  Integer width
           
 
Fields inherited from class org.mmbase.streams.transcoders.AbstractTranscoder
clone, codec, format, in, mimeType, out, PACKAGE
 
Constructor Summary
FFMpeg2TheoraTranscoder()
           
 
Method Summary
protected  String[] getArguments()
           
protected  String getCommand()
           
protected  LoggerWriter getOutputWriter(Logger l)
           
 void init(Node dest)
          Saves values video codec in codec (Theora)) and audio codec in acodec (Vorbis) in destination node.
 void setHeight(int y)
           
 void setKeyInt(int ki)
           
 void setVideoQuality(int vq)
           
 void setWidth(int x)
           
 
Methods inherited from class org.mmbase.streams.transcoders.CommandTranscoder
clone, getEnvironment, getErrorWriter, getKey, setMethod, setPath, setProperty, transcode
 
Methods inherited from class org.mmbase.streams.transcoders.AbstractTranscoder
getCodec, getFormat, getIn, getInstance, getMimeType, getOut, setCodec, setFormat, setMimeType, toString, transcode
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

videoQuality

int videoQuality

keyInt

int keyInt

height

Integer height

width

Integer width

count

long count
Constructor Detail

FFMpeg2TheoraTranscoder

public FFMpeg2TheoraTranscoder()
Method Detail

setVideoQuality

public void setVideoQuality(int vq)

setKeyInt

public void setKeyInt(int ki)

setHeight

public void setHeight(int y)

setWidth

public void setWidth(int x)

init

public void init(Node dest)
Saves values video codec in codec (Theora)) and audio codec in acodec (Vorbis) in destination node.

Specified by:
init in interface Transcoder
Overrides:
init in class AbstractTranscoder
Parameters:
dest - destination node (streamsourcescaches)

getCommand

protected String getCommand()
Specified by:
getCommand in class CommandTranscoder

getArguments

protected String[] getArguments()
Specified by:
getArguments in class CommandTranscoder

getOutputWriter

protected LoggerWriter getOutputWriter(Logger l)
Overrides:
getOutputWriter in class CommandTranscoder


MMBase 2.0-SNAPSHOT - null