Best way to stream audio and video from an Android phone to a RTMP server
<p>I'm looking for the best way to stream video and audio from an Android phone to a server using RTMP. I've spent some time on this problem and this far I've been able to stream video only using FFMPEG. There are many ways to build the lib for Android and I guess that with some more work I should be able to stream Audio too. </p>

<p>The thing is that I need to encode the video in h264 and the audio in AAC, and it would be very easy to do it using Android's <a href="http://developer.android.com/reference/android/media/MediaRecorder.html" rel="nofollow">MediaRecorder</a>. So I started looking for a RTMP library for Android and found this <a href="http://code.google.com/p/android-rtmp-client/" rel="nofollow">Red5 port</a> that seems to be working pretty well. Using it I can stream a video file stored on the phone very easily, and the audio is working too.</p>

<p>So my question is the following: Is there a way to connect Android's MediaRecorder output to the RTMP library? I guess the way would be to 'fake' a file in setOutputFile(), and then to send the data to the RTMP encoding methods, but I can't figure a way to do it. </p>

<p>Any clue is welcome, really. Thanks in advance. </p>
