title: Video Streaming from Android device camera
body: <p>I am trying to build an application on Android that streams a video from device camera to a streaming server. </p>
  
  <p>I have looked at different posts and solutions and here is my current state, with the help of (I used Sipdroid, jboss-netty, and analyzing packets on wireshark) </p>
  
  <ol>
  <li>I built the RTSP Stack and I successfully connect to the server<br>
  2.I am able theoretically able to create an rtp packet and sent it to
  the server</li>
  </ol>
  
  <p>My problem is in capturing the frame and sending the data in the RTP packet. 
  I have 2 directions:</p>
  
  <p>1- Use the camera and AuidoRecorder to capture the raw media data and send it using rtp, the problem is should this data be encoded according to the .sdp file description in the ANNOUNCE of the RTSP ??? as I understand the data from the camera and mic will be raw data that is not encoded 
  Anorther thing is how can I formulate this raw data in the RTP packet properly. </p>
  
  <p>2- The Media recorder already encodes the data and I am able to set the encoding as defined in the .sdp file .. I tried to find a way to read from the output file but this would require me to transform the .mp4 file data to stream data which seems like a complicated task. </p>
  
  <p>My question is am I over complicating things is it enough to send the raw data of video and audio in RTP packets and the streaming server would handle the rest ???? 
  Please I would appreciate any help and guidance in that matter.. </p>
  
  <p>Thanks</p>