de.humatic.dsj.sink
Class DumpSink

java.lang.Object
  extended by de.humatic.dsj.sink.Sink
      extended by de.humatic.dsj.sink.DumpSink

public class DumpSink
extends Sink

DumpSink is a special form of FileSink, used to isolate raw elementary streams from media files. It can either dump a stream in its originally encoded format, in uncompressed form or may recompress to a different format.


Field Summary
static int DUMP_ORIGINAL
           
 
Fields inherited from class de.humatic.dsj.sink.Sink
connected, CONTROLABLE, DISPLAY_LOCAL, DS_NETWORK, DUAL_OUTPUT, DUMP, FILE, FORCE_PREVIEW_BRANCH, LOCAL, majorType, NO_CONTROLS, NO_TRANSCODE, PLAY_OUT, PREVIEW, SHOW_DIALOGS, SHOW_DLG_SAVE, subType, WM_NETWORK
 
Constructor Summary
DumpSink(java.lang.String outputPath, int mediaMajorType)
          Creates a DumpSink for writing raw video or audio elementary streams to the specified output location.
 
Method Summary
 void setAudioEncoder(DSFilterInfo encoderInfo)
          Sets audio recompression if you did not set up the sink for dumping the orignal stream.
 void setDumpMode(int mode)
          DumpSink by default hooks into a filtergraph behind decoder filters, if you are interested in the original stream call setDumpMode(DumpSink.DUMP_ORIGINAL) before connecting.
 void setVideoEncoder(DSFilterInfo encoderInfo)
          Sets video recompression if you did not set up the sink for dumping the orignal stream.
 
Methods inherited from class de.humatic.dsj.sink.Sink
getAudioEncoderInfo, getFlags, getMultiplexerInfo, getOutputPath, getVideoEncoderInfo, getWriterInfo, setFlags, setMultiplexer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DUMP_ORIGINAL

public static int DUMP_ORIGINAL
Constructor Detail

DumpSink

public DumpSink(java.lang.String outputPath,
                int mediaMajorType)
         throws DSJException
Creates a DumpSink for writing raw video or audio elementary streams to the specified output location. Only the first stream of the given mediatype will be dumped. Note that the data output of this sink, apart from pure data processing tasks, may not be of much use without special tools (you may not be able to play the resulting files back with standard players depending on the dump point and encoding).

Throws:
DSJException
Method Detail

setDumpMode

public void setDumpMode(int mode)
DumpSink by default hooks into a filtergraph behind decoder filters, if you are interested in the original stream call setDumpMode(DumpSink.DUMP_ORIGINAL) before connecting.


setVideoEncoder

public void setVideoEncoder(DSFilterInfo encoderInfo)
Sets video recompression if you did not set up the sink for dumping the orignal stream. Leaving the encoder unspecified and not calling setDumpMode(DumpSink.DUMP_ORIGINAL) will result in uncompressed data to be written out.

Overrides:
setVideoEncoder in class Sink

setAudioEncoder

public void setAudioEncoder(DSFilterInfo encoderInfo)
Sets audio recompression if you did not set up the sink for dumping the orignal stream. Leaving the encoder unspecified and not calling setDumpMode(DumpSink.DUMP_ORIGINAL) will result in uncompressed data to be written out.

Overrides:
setAudioEncoder in class Sink