[FFmpeg-trac] #9756(ffmpeg:new): gdigrab screen recording with h264_nvenc drops frames in the first second of recording

FFmpeg trac at avcodec.org
Sat Jun 11 21:50:13 EEST 2022


#9756: gdigrab screen recording with h264_nvenc drops frames in the first second
of recording
-------------------------------------+-------------------------------------
             Reporter:  Afx          |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  ffmpeg
              Version:  unspecified  |               Resolution:
             Keywords:  gdigrab      |               Blocked By:
  nvenc hwaccel cuda                 |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by Marton Balint):

 * priority:  important => normal

Comment:

 By default ffmpeg opreates in single threaded mode, therefore if cuda
 initialzation takes time it will probably block capturing frames.

 The workaround is most likely specifying e.g. ```-thread_queue_size 100```
 or similar.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9756#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list