title: Convert video Input Stream to RTMP
body: <p>I want to stream video recording from my android phone to network media server.</p>
  
  <p>The first problem is that when setting <code>MediaRecorder</code> output to socket, the stream is missing some <code>mdat</code> size headers. This can be fixed by preprocessing that stream locally and adding missing data to stream in order to produce valid output stream.</p>
  
  <p>The question is how to proceed from there. </p>
  
  <p>How can I go about output that stream as an RTMP stream?</p>