mediamuxer
Encoding and muxing video using MediaCodec and MediaMuxer
The pixelation is most likely due to wrong frame timestamps, so make sure your frames’ timestamps increase monotonically and are the same when you pass them to MediaCodec and MediaMuxer. In this specific case, you only need to replace the data for the frame you’re going to replace, leaving its timestamp as it was in … Read more