org.mmbase.streams.transcoders
Class SegmenterTranscoder

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

public class SegmenterTranscoder
extends CommandTranscoder

The transcoder that uses segmenter to create segments of a stream including their m3u8 index file to be distributed over a cellular network. The source of the segmenter can be found: http://svn.assembla.com/svn/legend/segmenter/ It accepts the following arguments: segmenter sample_low.ts 10 sample_low sample_low.m3u8 http://www.openimages.eu/ The input file, output prefix and index prefix arguments are automatically filled, specify segment duration (default 10 sec.) and httpPrefix (hostname) in 'createcaches.xml'. TODO: replace "/" with File.separator

Version:
$Id: SegmenterTranscoder.java 41564 2010-03-22 19:42:15Z andre $
Author:
André van Toly
See Also:
Serialized Form

Field Summary
(package private)  int duration
           
(package private)  String httpPrefix
           
 
Fields inherited from class org.mmbase.streams.transcoders.AbstractTranscoder
clone, codec, format, in, mimeType, out, PACKAGE
 
Constructor Summary
SegmenterTranscoder()
           
 
Method Summary
 SegmenterTranscoder clone()
           
protected  String[] getArguments()
           
protected  String getCommand()
           
protected  LoggerWriter getErrorWriter(Logger log)
           
protected  LoggerWriter getOutputWriter(Logger log)
           
 void init(Node dest)
          Saves mimetype (video/*) in destination node when not set and deletes former segments when re-transcoding.
 void setDuration(int d)
           
 void setHttpPrefix(String h)
           
 
Methods inherited from class org.mmbase.streams.transcoders.CommandTranscoder
getEnvironment, 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

duration

int duration

httpPrefix

String httpPrefix
Constructor Detail

SegmenterTranscoder

public SegmenterTranscoder()
Method Detail

getErrorWriter

protected LoggerWriter getErrorWriter(Logger log)
Overrides:
getErrorWriter in class CommandTranscoder

setDuration

public void setDuration(int d)

setHttpPrefix

public void setHttpPrefix(String h)

getCommand

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

init

public void init(Node dest)
Saves mimetype (video/*) in destination node when not set and deletes former segments when re-transcoding.

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

getArguments

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

getOutputWriter

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

clone

public SegmenterTranscoder clone()
Specified by:
clone in interface PublicCloneable<Transcoder>
Overrides:
clone in class CommandTranscoder


MMBase 2.0-SNAPSHOT - null