public class SegmenterTranscoder extends CommandTranscoder
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| Modifier and Type | Field and Description |
|---|---|
(package private) int |
duration |
(package private) String |
httpPrefix |
| Constructor and Description |
|---|
SegmenterTranscoder() |
| Modifier and Type | Method and Description |
|---|---|
SegmenterTranscoder |
clone() |
protected String[] |
getArguments() |
protected String |
getCommand() |
protected LoggerWriter |
getErrorWriter(Logger log) |
protected LoggerWriter |
getOutputWriter(Logger log) |
void |
init(Node dest)
Saves mimetype (application/x-mpegurl) in destination node when not set, deletes former
segments when re-transcoding and removes punctuation, whitespace etc from filename.
|
void |
setDuration(int d) |
void |
setHttpPrefix(String h) |
getEnvironment, getKey, setMethod, setPath, setProperty, transcodegetCodec, getFormat, getIn, getInstance, getMimeType, getOut, setCodec, setFormat, setMimeType, toString, transcodeint duration
String httpPrefix
protected LoggerWriter getErrorWriter(Logger log)
getErrorWriter in class CommandTranscoderpublic void setDuration(int d)
public void setHttpPrefix(String h)
protected String getCommand()
getCommand in class CommandTranscoderpublic void init(Node dest)
init in interface Transcoderinit in class AbstractTranscoderdest - destination node (streamsourcescaches)protected String[] getArguments()
getArguments in class CommandTranscoderprotected LoggerWriter getOutputWriter(Logger log)
getOutputWriter in class CommandTranscoderpublic SegmenterTranscoder clone()
clone in interface PublicCloneable<Transcoder>clone in class CommandTranscoderMMBase 1.9-SNAPSHOT - ${javadoctimestamp}