icontainer.open(Inputstream,null) verry slow

29 views
Skip to first unread message

Terminatorder1

unread,
Apr 23, 2016, 12:52:33 PM4/23/16
to xuggler-users
Hello Guys,

The Command icontainer.open(Inputstream,null) waste so mutch time, why ?
Is there a Solution to get it faster ?


Here is my code 
 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);

Reply all
Reply to author
Forward
0 new messages