title: Encode Android AudioRecord raw pcm data to other format using ffmpeg
body: <p>I am using AudioRecord class to read the data in bytes. Since the data received in the AudioRecord.read(byte[], int, int) is in raw form(too big), I want to encode it in some other compressed format like Vorbis(.ogg) using ffmpeg C Api. I have compiled the libffmpeg.so file which I will call through JNI. I want to know how this will be done. </p>
  
  <p>After successfully encoding I want to create a video with this same audio and a single image attached to it.</p>
  
  <p>Thanks.</p>