title: convert media files
body: <p>How can I convert a media file from mp4 (aac and libx264) to mp4 (mp3 and h264) using libavcodec? Can anyone explain what steps I have to do?
  As I know, I must decode and then encode audio and video stream to target codec. But how can I save these stream into a mp4 file?</p>