title: MPEG-TS, Android and FFMPEG
body: <p>I am receiving the MPEG-TS (MPEG transport stream) packets with the multiplexed H.264 video and AAC audio streams. I need to be able to show the audio and video on the Android phone. My assumption is that I need:</p>
  
  <ul>
  <li>MPEG-TS de-multiplexer </li>
  <li>AAC decoder </li>
  <li>H.264 decoder </li>
  <li>Synchronize the audio and video playback</li>
  </ul>
  
  <p>Assuming that I am right then (in Android 2.x) MPEG-TS de-multiplexer is not part of the OS and must be ported, both AAC and H.264 decoder are part of the Android OS, but I am not sure if they have interface, which allows passing the data in buffers and if they allow mutual timing synchronization. In the worst case those components must be ported here as well.</p>
  
  <p>Can you give me some advices where to start? I was thinking about the FFMPEG porting. Are there any other ways?</p>
  
  <p>Regards,
  STeN</p>