#10608: AV1 decoder gets "Static surface pool size exceeded" issue with 
"-hwaccel
d3d11va"
-------------------------------------+-------------------------------------
             Reporter:  Evgeny       |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  av1 d3d11va  |               Blocked By:
  av1_amf                            |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by SuRGeoNix):

 It seems that the initial_pool_size of the hardware frames must be + 1 (or
 even more? in my case -nvidia ffmpeg v7.1- works) for AV1. Probably
 related code
 https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/dxva2.c#L623

 /* 1 base work surface */
 num_surfaces = 1;

 {{{#!c
 /* add surfaces based on number of possible refs */
 if (avctx->codec_id == AV_CODEC_ID_H264 || avctx->codec_id ==
 AV_CODEC_ID_HEVC)
         num_surfaces += 16;
 else if (avctx->codec_id == AV_CODEC_ID_VP9 || avctx->codec_id ==
 AV_CODEC_ID_AV1)
         num_surfaces += 8;
 else
         num_surfaces += 2;
 }}}

 Maybe it just requires more margin (eg +12 surfaces for safety?)
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10608#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to