title: Get frames or video from java multicast ( VCL streaming sender)
body: <p>I am doing a VCL streaming and I need to get the frames or the video from a java multicast. </p>
  
  <p>I join the multicast group and I receive these datagram packets, but I do not know how to handle them.</p>
  
  <p>Any code advices? Or any library to convert these packets into frames in kind of real time?</p>
  
  <pre><code>public static void main(String[] args) throws UnknownHostException {
  
              InetAddress address = InetAddress.getByName(INET_ADDR);
              byte[] buffer = new byte[256];
  
              try (MulticastSocket clientSocket = new MulticastSocket(PORT)){
  
                  clientSocket.joinGroup(address);
  
                  while (true) {
  
                      DatagramPacket msgPacket = new DatagramPacket(buffer, buffer.length);
                      clientSocket.receive(msgPacket);
  
  
                  }
              } catch (IOException exception) {
                  exception.printStackTrace();
              }                System.out.println(i);
  
          }
  </code></pre>
  
  <p>p.s I can not modify the way of sending the streaming packets</p>
  
  <p>Thanks</p>