How to reduce latency in MediaCodec video/avc decoding

I think you’re seeing some effects unique to the first frame. I repeated your experiment, with the further addition of forcing doRender = false around line 244 to avoid the sleep calls used to manage the output frame rate. I see: 01-29 14:05:36.552 9115 9224 I Grafika : queueInputBuffer index/pts, 2,0 01-29 14:05:36.562 9115 9224 … Read more