public class FileSink extends Sink
Modifier and Type | Field and Description |
---|---|
static int |
MKV
FileSink types used in the forType(...) method.
|
static int |
MP4
FileSink types used in the forType(...) method.
|
static int |
OGG
FileSink types used in the forType(...) method.
|
static int |
WAV
FileSink types used in the forType(...) method.
|
static int |
WEBM
FileSink types used in the forType(...) method.
|
connected, CONTROLABLE, DISPLAY_LOCAL, DS_NETWORK, DUAL_OUTPUT, DUMP, FILE, flags, FORCE_PREVIEW_BRANCH, LOCAL, majorType, NO_CONTROLS, NO_TRANSCODE, PLAY_OUT, PREVIEW, SHOW_DIALOGS, SHOW_DLG_SAVE, subType, WM_NETWORK
Constructor and Description |
---|
FileSink(java.lang.String outputPath)
The basic constructor creates an "empty" filesink object.
|
Modifier and Type | Method and Description |
---|---|
static FileSink |
forType(int fileType,
java.lang.String outputPath)
Creates a predefined FileSink for the given type.
You will only get a valid object returned if the native DirectShow filters needed to write the various filetypes are installed on the runtime system. |
static FileSink |
fromXML(java.lang.String name,
java.lang.String outputPath)
Creates a FileSink from a filterchain description layed out in the xml setup file, allowing to easily extend functionality.
You will only get a valid object returned if the native DirectShow filters listed in the xml are installed on the runtime system. |
void |
setFileWriter(DSFilterInfo writerInfo) |
void |
setTargetFile(java.lang.String newOutputPath) |
java.lang.String |
toString() |
getAudioEncoderInfo, getFlags, getMultiplexerInfo, getOutputPath, getVideoEncoderInfo, getWriterInfo, setAudioEncoder, setFlags, setMultiplexer, setVideoEncoder
public static final int MP4
public static final int OGG
public static final int MKV
public static final int WEBM
public static final int WAV
public FileSink(java.lang.String outputPath)
public static FileSink fromXML(java.lang.String name, java.lang.String outputPath)
public static FileSink forType(int fileType, java.lang.String outputPath) throws DSJException
DSJException
public void setFileWriter(DSFilterInfo writerInfo)
public void setTargetFile(java.lang.String newOutputPath)
public java.lang.String toString()
toString
in class java.lang.Object