public class MKVSink extends JSink
Modifier and Type | Field and Description |
---|---|
static int |
INVALID_VORBIS_SETUP |
static int |
MKV_SUBS |
AV_SYNC_IN, BUFFER_OVERFLOW, CLOSED, CONNECT, CONNECTED, CONNECTION_TIMEOUT, DISPLAY_LOCAL, DUMP, ERROR, HTTP_AUDIO, LOCAL, MAX_BT_DROP, MAX_BT_WARN, MAX_DURATION, MIN_BT, MJPG, MKV, NO_AUDIO, NO_VIDEO, OFFSET_TIME_IN, OFFSET_TIME_OUT, OPT_PKT_SIZE, PIPE_SIZE, pipeSize, PREVIEW, RTMP, RTP, SHOW_DLG_SAVE, SHOW_ENC_DLG, SOCKET_ERROR, SOCKET_SBS, socketSendBufferSize, STARVING, TSNET, UNCONNECTED
Constructor and Description |
---|
MKVSink(DSFiltergraph src,
int port,
DSFilterInfo videoEncoder,
DSFilterInfo audioEncoder,
int flags)
Creates a server socket on the given port and streams a filtergraph's media in WebM format.
|
MKVSink(DSFiltergraph src,
java.io.OutputStream out,
DSFilterInfo videoEncoder,
DSFilterInfo audioEncoder,
int flags) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down the sink and frees all resources it allocated.
|
void |
sampleReceived(SampleBuffer buffer)
Called from SampleAccessFilters used by this sink.
|
void |
setSinkOption(int option,
int value) |
create, getID, getOutputBufferSize, getOutputMediaType, propertyChange, setNetworkInterface, setSocketOption
public static final int INVALID_VORBIS_SETUP
public static final int MKV_SUBS
public MKVSink(DSFiltergraph src, int port, DSFilterInfo videoEncoder, DSFilterInfo audioEncoder, int flags) throws java.lang.Exception
java.lang.Exception
public MKVSink(DSFiltergraph src, java.io.OutputStream out, DSFilterInfo videoEncoder, DSFilterInfo audioEncoder, int flags) throws java.lang.Exception
java.lang.Exception
public void close()
JSink
public void sampleReceived(SampleBuffer buffer)
JSink
sampleReceived
in class JSink
public void setSinkOption(int option, int value)
setSinkOption
in class JSink