title: How to make .avi, .mp4 file with jpeg frames?
body: <p>I'm working with IP camera, and I have got Jpeg frames and audio data (PCM) from camera.</p>
  
  <p>Now, I want to create video file (both audio and video) under .avi or .mp4 format from above data.</p>
  
  <p>I searched and I knew that ffmpeg library can do it. But I don't know how to using ffmpeg to do this.</p>
  
  <p>Can you suggest me some sample code or the function of ffmpeg to do it?</p>