[FFmpeg-trac] #8865(avcodec:new): Lost frames when decode by mediacodec

FFmpeg trac at avcodec.org
Mon Nov 28 11:39:02 EET 2022


#8865: Lost frames when decode by mediacodec
-------------------------------------+-------------------------------------
             Reporter:  jiyang       |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  mediacodec   |               Blocked By:
  regression                         |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by quinkblack):

 I think it's the same bug fixed by this commit:


 {{{
 commit b1facd11a3cc00362949ea14d9eab30496cf0268

 Author: Zhao Zhili <zhilizhao at tencent.com>

 Date:   Wed Oct 19 10:38:41 2022 +0800



     avcodec/mediacodecdec: don't break out if both input and output port
 return try again



     At the beginning of decoding, if we feed mediacodec too fast, the

     input port will return try again. It takes some time for mediacodec

     to consume bitstream and output frame. So the output port also return

     try again. It possible that mediacodec_receive_frame doesn't consume

     any AVPacket and no AVFrame is output. Then both avcodec_send_packet()

     and avcodec_receive_frame() return EAGAIN, which shouldn't happen.



     This bug can be produced with decoding benchmark on Pixel 3.
 }}}


 Please test git master.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/8865#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list