[FFmpeg-trac] #8379(avfilter:new): problem with h264_qsv, lookahead and scale_qsv

FFmpeg trac at avcodec.org
Tue Feb 4 11:59:05 EET 2020


#8379: problem with h264_qsv, lookahead and scale_qsv
------------------------------------+------------------------------------
             Reporter:  phrancesco  |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avfilter
              Version:  git-master  |               Resolution:
             Keywords:  qsv         |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by fulinjie):

 Replying to [comment:8 phrancesco]:
 > Thanks,
 > I applied the patch and built a new rpm using git head.
 > The problem is still there, lookahead depth <= 26 is working,  lookahead
 depth > 26 doesn't work.
 > Same "Cannot allocate memory error."
 Hi phrancesco,

 Would you please help to try setting extra_hw_frames to scale_qsv:
 $ffmpeg ... scale_qsv=512:288:mode=2:extra_hw_frames=64 ...
 (Above cmdline didn't set extra_hw_frames for these scale filters
 actually)

 Actually, this works on my side with/without this patch,
 ff_filter_init_hw_frames() allocates enough memory/surface according to
 extra_hw_frames.

 The reason for difference between vpp_qsv and scale_qsv is the default
 initial_pool_size:
 vpp_qsv: 64
 scale_qsv: 32

 Maybe a patch here is necessary to keep an identical default behavior.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8379#comment:9>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list