org.mmbase.streams.transcoders
Interface Transcoder

All Superinterfaces:
Cloneable, PublicCloneable<Transcoder>, Serializable
All Known Implementing Classes:
AbstractTranscoder, CommandTranscoder, FFMpeg2TheoraTranscoder, FFMpegTranscoder, InfiniteTranscoder, MockTranscoder, RecognizerTranscoder, SegmenterTranscoder

public interface Transcoder
extends PublicCloneable<Transcoder>, Serializable

Representation of one transcoding action. Instances should cloned before usage, so the transcoder needs not be stateless.

Version:
$Id: Transcoder.java 42277 2010-05-26 14:03:33Z andre $
Author:
Michiel Meeuwissen

Method Summary
 Codec getCodec()
           
 Format getFormat()
           
 URI getIn()
           
 String getKey()
           
 URI getOut()
           
 void init(Node destination)
          Init the transcoder and destination node with appropiate values.
 void transcode(URI in, URI out, Logger logger)
          Transcode a file to another, follow the process with a logger.
 
Methods inherited from interface org.mmbase.util.PublicCloneable
clone
 

Method Detail

getKey

String getKey()

getFormat

Format getFormat()

getCodec

Codec getCodec()

init

void init(Node destination)
Init the transcoder and destination node with appropiate values.

Parameters:
destination - stream destination Node

transcode

void transcode(URI in,
               URI out,
               Logger logger)
               throws Exception
Transcode a file to another, follow the process with a logger.

Parameters:
in -
out -
logger -
Throws:
If - transcoding was unsucessfull, an Error may be thrown.
Exception

getIn

URI getIn()

getOut

URI getOut()


MMBase 2.0-SNAPSHOT - null