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

FFmpeg trac at avcodec.org
Sat Dec 3 12:29:30 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 Benjamín de la Fuente Ranea):

 You are right, the issue is gone with that commit, now it works properly
 in the last version of master branch.
 Thanks

 Replying to [comment:9 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:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list