Android media codec config without surface window cause decoder more delay

63 Views Asked by At

When I use Android mediacodec to decode video, I found a strangeness issue. If I config the AMediaCodec_configure without surface window. The decoder delay is increase like 4ms more or less. I use the LiveVideo10ms opensource code for test. This app can show the decoder delay. If I set the AMediaCodec_configure surface window to nullptr, the delay will increase as the following image: decoder with image show: enter image description here decoder without image show: enter image description here

I have tried many devices and all device with the same result, without the surface window will cause more decoder delay.

0

There are 0 best solutions below