Socket s = null;
ServerSocket server = null;
try {
server = new ServerSocket(5000);
s = server.accept();
} catch (IOException e1) {
e1.printStackTrace();
}
while (!isInterrupted()) {
try {
in = s.getInputStream();
} catch (IOException e1) {
e1.printStackTrace();
}
container = IContainer.make();
IContainerFormat inputFormat = IContainerFormat.make();
inputFormat.setInputFormat("h.264");
//container.setFormat(inputFormat);
try {
} catch (SocketException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
container.open(in, inputFormat);