The decoder then outputs many frames in a row, every second or so. The workaround consists in using presentation timestamps set by MediaCodec to ensure frames are rendered with proper timings. This problem produces as a combination of decoder device and remote encoder: it is probably linked to how the H264 sequence is constructed.