title: Capturing stream
body: <p>I am using Java and need to save audio/video stream to a local file.</p>
  
  <p>So far I managed to send RTSP commands and get the stream saved.</p>
  
  <p>However, each RTP pack (DynamicRTP-Type-96) does hold a header and a payload. The payload is holding a NAL header and the actual NAL.</p>
  
  <p>What should be actually saved to the resulting video file from this inbound stream ?</p>
  
  <p>Are you aware of Java libs which can each packet parsing ?</p>