title: MediaCodec audio/video muxing issues ond Android
body: <p>I am transcoding videos based on the example given by Google (<a href="https://android.googlesource.com/platform/cts/+/master/tests/tests/media/src/android/media/cts/ExtractDecodeEditEncodeMuxTest.java" rel="noreferrer">https://android.googlesource.com/platform/cts/+/master/tests/tests/media/src/android/media/cts/ExtractDecodeEditEncodeMuxTest.java</a>)</p>
  
  <p>Basically, transocding of MP4 files works, but on some phones I get some weird results. If for example I  transcode a video with audio on an HTC One, the code won't give any errors but the file cannot play afterward on the phone. If I have a 10 seconds video it jumps to almost the last second and you only here some crackling noise. If you play the video with VLC the audio track is completely muted.</p>
  
  <p>I did not alter the code in terms of encoding/decoding and the same code gives correct results on a Nexus 5 or MotoX for example.</p>
  
  <p>Anybody having an idea why it might fail on that specific device?</p>
  
  <p>Best regard and thank you,
  Florian</p>