intel / libyami

Yet Another Media Infrastructure. it is core part of media codec with hardware acceleration, it is yummy to your video experience on Linux like platform.
Apache License 2.0
146 stars 106 forks source link

Fix low latency #849

Closed xuguangxin closed 6 years ago

xuguangxin commented 6 years ago

two things done to fix low latency mode.

  1. output output-able frame immediately when we add a frame to dpb. Do not check "current poc - previous poc == 1", this will introduce problem for poc "0, 2, 4, 6, 8"
  2. add a flag VIDEO_DECODE_BUFFER_FLAG_FRAME_END to tell decoder to stop search next frame, so the decoder can decode current frame ASAP this fixes https://github.com/intel/libyami/issues/844 and https://github.com/intel/libyami/issues/847
jsorg71 commented 6 years ago

It looks like h265 will have this feature too. Is that correct?

xuguangxin commented 6 years ago

@jsorg71 , h265 may not need this. Bitstream will carry latency indication. see checkLatency . h264 does not have this, it only checks dpb fullness. This is why we need a flag for h264.

uartie commented 6 years ago

status?

xuguangxin commented 6 years ago

Hi @uartie , sorry for late.