title: How to make RTSP server stream / send H264 format using Java
body: <p>I am currently trying to make an <code>RTSP server</code> which streams <code>H264</code> formatted videos using <code>Java</code>.</p>
  
  <p>My <code>RTSP client</code> will be a computer monitor which is connected to server via ethernet cable. I have been told that the monitor is able to show incoming <code>H264</code> formatted videos. I do not have the monitor yet.</p>
  
  <p>Even though I don't have the monitor yet, I wanted to see something working. I managed this by using a <code>vlc media player</code> instance as server and another <code>vlc media player</code> instance as client following <a href="https://www.youtube.com/watch?v=VsahDWNByVQ" rel="nofollow">this tutorial</a>. Now I must implement a <code>RTSP server</code> which can stream <code>H264</code> formats. I could not find any information about how to do this using Java. Does <code>VLC media player</code> have <code>Java API</code> for this, or is there any source which can walk me through how to achieve this with <code>Java</code>?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Edit: <a href="https://github.com/caprica/vlcj" rel="nofollow">Here</a> I found a good starting point, if I can manage I'll put solution as source.</p>