Opened 2 years ago

Closed 22 months ago

#9756 closed defect (wontfix)

gdigrab screen recording with h264_nvenc drops frames in the first second of recording

Reported by: Afx Owned by:
Priority: normal Component: ffmpeg
Version: unspecified Keywords: gdigrab nvenc hwaccel cuda
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

Repro rate: 100% (on all machines that I tested)

OS:
  Windows 10
ffmpeg build:
  ffmpeg-n5.0-latest-win64-lgpl-5.0 from https://github.com/BtbN/FFmpeg-Builds/releases with Latest Auto-Build (2022-04-29 12:31)
HW specs:
  Intel Core i9-10900X 3.70GHz
  64 GB RAM
  NVidia Quadro P620
Nvidia driver version:
  496.13
Other machines tested on are even higher specs

Running ffmpeg screen recording (gdigrab Desktop) with h264_nvenc (-hwacc cuda and -hwaccel_output_format cuda) will always drop a few frames in the first 1-2 seconds of recording, on any machine (that I tested). Even restricting the recorded area to 640x480 pixels and the framerate to 15fps, the result is the same. The dropped frames differ with each execution, and seem to be related to loading of NVidia hwacc libraries (as the dropped frames are missing right in this interval - this is an educated guess, not a fact).
I added embedded timestamp for each frame, and it is clearly visible that frames are missing, and it is not the screen that freezes during recording. After this, the screen is recorded smoothly, without problems.

How to reproduce:

ffmpeg-n5.0-latest-win64-lgpl-5.0\bin> .\ffmpeg.exe -loglevel debug -y -hwaccel cuda -hwaccel_output_format cuda -f gdigrab -framerate 15 -video_size 640x480 -i desktop -c:v h264_nvenc -preset fast -vcodec h264_nvenc -pix_fmt yuv420p -tune hq -vf "drawtext=fontfile=/path/to/Arial.ttf:fontsize=45:fontcolor=yellow:box=1:boxcolor=black:x=(W-tw)/2:y=H-th-10:text='Time\: %{pts\:hms}'" "output.avi"

Here is the verbose log of a repro:

PS D:\ffmpeg\ffmpeg-n5.0-latest-win64-lgpl-5.0\bin> .\ffmpeg.exe -loglevel debug -y -hwaccel cuda -hwaccel_output_format cuda -f gdigrab -framerate 15 -video_size 640x480 -i desktop -c:v h264_nvenc -preset fast -vcodec h264_nvenc -pix_fmt yuv420p -tune hq -vf "drawtext=fontfile=/path/to/Arial.ttf:fontsize=45:fontcolor=yellow:box=1:boxcolor=black:x=(W-tw)/2:y=H-th-10:text='Time\: %{pts\:hms}'" "output.avi"
ffmpeg version n5.0.1-4-ga5ebb3d25e-20220428 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (crosstool-NG 1.24.0.533_681aaef)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --disable-avisynth --enable-libdav1d --disable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --disable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --disable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --disable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --disable-libx264 --disable-libx265 --disable-libxavs2 --disable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20220428
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW accelerated decoding) with argument 'cuda'.
Reading option '-hwaccel_output_format' ... matched as option 'hwaccel_output_format' (select output format used with HW accelerated decoding) with argument 'cuda'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'gdigrab'.
Reading option '-framerate' ... matched as AVOption 'framerate' with argument '15'.
Reading option '-video_size' ... matched as AVOption 'video_size' with argument '640x480'.
Reading option '-i' ... matched as input url with argument 'desktop'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'h264_nvenc'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'fast'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'h264_nvenc'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-tune' ... matched as AVOption 'tune' with argument 'hq'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'drawtext=fontfile=/path/to/Arial.ttf:fontsize=45:fontcolor=yellow:box=1:boxcolor=black:x=(W-tw)/2:y=H-th-10:text='Time\: %{pts\:hms}''.
Reading option 'output.avi' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url desktop.
Applying option hwaccel (use HW accelerated decoding) with argument cuda.
Applying option hwaccel_output_format (select output format used with HW accelerated decoding) with argument cuda.
Applying option f (force format) with argument gdigrab.
Successfully parsed a group of options.
Opening an input file: desktop.
[gdigrab @ 000002841a213800] Capturing whole desktop as 640x480x32 at (0,0)
[gdigrab @ 000002841a213800] Cursor pos (570,19) -> (570,19)
    Last message repeated 4 times
[gdigrab @ 000002841a213800] Probe buffer size limit of 5000000 bytes reached
[gdigrab @ 000002841a213800] rfps: 13.166667 0.018673
[gdigrab @ 000002841a213800] rfps: 13.250000 0.017014
[gdigrab @ 000002841a213800] rfps: 13.333333 0.015432
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 13.416667 0.013928
[gdigrab @ 000002841a213800] rfps: 13.500000 0.012500
[gdigrab @ 000002841a213800] rfps: 13.583333 0.011150
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 13.666667 0.009876
[gdigrab @ 000002841a213800] rfps: 13.750000 0.008681
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 13.833333 0.007562
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 13.916667 0.006520
[gdigrab @ 000002841a213800] rfps: 14.000000 0.005556
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 14.083333 0.004668
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 14.166667 0.003858
[gdigrab @ 000002841a213800] rfps: 14.250000 0.003125
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 14.333333 0.002469
[gdigrab @ 000002841a213800] rfps: 14.416667 0.001890
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 14.500000 0.001389
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 14.583333 0.000964
[gdigrab @ 000002841a213800] rfps: 14.666667 0.000617
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 14.750000 0.000347
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 14.833333 0.000154
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 14.916667 0.000039
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 15.000000 0.000000
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 15.083333 0.000039
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 15.166667 0.000154
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 15.250000 0.000347
[gdigrab @ 000002841a213800] rfps: 15.333333 0.000617
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 15.416667 0.000965
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 15.500000 0.001389
[gdigrab @ 000002841a213800] rfps: 15.583333 0.001890
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 15.666667 0.002469
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 15.750000 0.003125
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 15.833333 0.003858
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 15.916667 0.004668
[gdigrab @ 000002841a213800] rfps: 16.000000 0.005556
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 16.083333 0.006520
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 16.166667 0.007562
[gdigrab @ 000002841a213800] rfps: 16.250000 0.008681
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 16.333333 0.009877
[gdigrab @ 000002841a213800] rfps: 16.416667 0.011150
[gdigrab @ 000002841a213800] rfps: 16.500000 0.012500
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 16.583333 0.013928
[gdigrab @ 000002841a213800] rfps: 16.666667 0.015433
[gdigrab @ 000002841a213800] rfps: 16.750000 0.017014
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 16.833333 0.018672
[gdigrab @ 000002841a213800] rfps: 28.166667 0.018672
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 28.250000 0.017014
[gdigrab @ 000002841a213800] rfps: 28.333333 0.015432
[gdigrab @ 000002841a213800] rfps: 28.416667 0.013928
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 28.500000 0.012499
[gdigrab @ 000002841a213800] rfps: 28.583333 0.011149
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 28.666667 0.009876
[gdigrab @ 000002841a213800] rfps: 28.750000 0.008680
[gdigrab @ 000002841a213800] rfps: 28.833333 0.007562
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 28.916667 0.006520
[gdigrab @ 000002841a213800] rfps: 29.000000 0.005556
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 29.083333 0.004668
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 29.166667 0.003858
[gdigrab @ 000002841a213800] rfps: 29.250000 0.003125
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 29.333333 0.002469
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 29.416667 0.001890
[gdigrab @ 000002841a213800] rfps: 29.500000 0.001389
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 29.583333 0.000965
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 29.666667 0.000617
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 29.750000 0.000347
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 29.833333 0.000154
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 29.916667 0.000039
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 30.000000 0.000000
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 31.000000 0.005556
[gdigrab @ 000002841a213800] rfps: 44.000000 0.005555
[gdigrab @ 000002841a213800] rfps: 45.000000 0.000000
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 46.000000 0.005556
[gdigrab @ 000002841a213800] rfps: 59.000000 0.005555
[gdigrab @ 000002841a213800] rfps: 60.000000 0.000000
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 120.000000 0.000000
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 240.000000 0.000000
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 29.970030 0.000005
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 59.940060 0.000020
    Last message repeated 1 times
[gdigrab @ 000002841a213800] rfps: 14.985015 0.000001
    Last message repeated 1 times
Input #0, gdigrab, from 'desktop':
  Duration: N/A, start: 1651234197.605037, bitrate: 147462 kb/s
  Stream #0:0, 5, 1/1000000: Video: bmp, 1 reference frame, bgra, 640x480, 0/1, 147462 kb/s, 15 fps, 15 tbr, 1000k tbn
Successfully opened the file.
Parsing a group of options: output url output.avi.
Applying option c:v (codec name) with argument h264_nvenc.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument h264_nvenc.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Applying option vf (set video filters) with argument drawtext=fontfile=/path/to/Arial.ttf:fontsize=45:fontcolor=yellow:box=1:boxcolor=black:x=(W-tw)/2:y=H-th-10:text='Time\: %{pts\:hms}'.
Successfully parsed a group of options.
Opening an output file: output.avi.
Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified for stream 0, only the last option '-c:v h264_nvenc' will be used.
[file @ 000002841864cd00] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
[AVHWDeviceContext @ 000002841a212fc0] Loaded lib: nvcuda.dll
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuInit
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuDeviceGetCount
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuDeviceGet
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuDeviceGetAttribute
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuDeviceGetName
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuDeviceComputeCapability
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuCtxCreate_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuCtxSetLimit
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuCtxPushCurrent_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuCtxPopCurrent_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuCtxDestroy_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemAlloc_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemAllocPitch_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemAllocManaged
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemsetD8Async
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemFree_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemcpy
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemcpyAsync
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemcpy2D_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemcpy2DAsync_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemcpyHtoD_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemcpyHtoDAsync_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemcpyDtoH_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemcpyDtoHAsync_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemcpyDtoD_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMemcpyDtoDAsync_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuGetErrorName
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuGetErrorString
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuCtxGetDevice
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuDevicePrimaryCtxRetain
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuDevicePrimaryCtxRelease
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuDevicePrimaryCtxSetFlags
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuDevicePrimaryCtxGetState
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuDevicePrimaryCtxReset
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuStreamCreate
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuStreamQuery
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuStreamSynchronize
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuStreamDestroy_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuStreamAddCallback
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuEventCreate
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuEventDestroy_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuEventSynchronize
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuEventQuery
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuEventRecord
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuLaunchKernel
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuLinkCreate
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuLinkAddData
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuLinkComplete
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuLinkDestroy
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuModuleLoadData
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuModuleUnload
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuModuleGetFunction
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuModuleGetGlobal
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuTexObjectCreate
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuTexObjectDestroy
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuGLGetDevices_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuGraphicsGLRegisterImage
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuGraphicsUnregisterResource
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuGraphicsMapResources
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuGraphicsUnmapResources
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuGraphicsSubResourceGetMappedArray
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuDeviceGetUuid
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuImportExternalMemory
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuDestroyExternalMemory
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuExternalMemoryGetMappedBuffer
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuExternalMemoryGetMappedMipmappedArray
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMipmappedArrayGetLevel
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuMipmappedArrayDestroy
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuImportExternalSemaphore
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuDestroyExternalSemaphore
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuSignalExternalSemaphoresAsync
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuWaitExternalSemaphoresAsync
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuArray3DCreate_v2
[AVHWDeviceContext @ 000002841a212fc0] Loaded sym: cuArrayDestroy
[AVHWDeviceContext @ 000002841a212fc0] Cannot load optional cuEGLStreamProducerConnect
[AVHWDeviceContext @ 000002841a212fc0] Cannot load optional cuEGLStreamProducerDisconnect
[AVHWDeviceContext @ 000002841a212fc0] Cannot load optional cuEGLStreamConsumerDisconnect
[AVHWDeviceContext @ 000002841a212fc0] Cannot load optional cuEGLStreamProducerPresentFrame
[AVHWDeviceContext @ 000002841a212fc0] Cannot load optional cuEGLStreamProducerReturnFrame
Stream mapping:
  Stream #0:0 -> #0:0 (bmp (native) -> h264 (h264_nvenc))
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
detected 20 logical cores
[Parsed_drawtext_0 @ 0000028418648380] Setting 'fontfile' to value '/path/to/Arial.ttf'
[Parsed_drawtext_0 @ 0000028418648380] Setting 'fontsize' to value '45'
[Parsed_drawtext_0 @ 0000028418648380] Setting 'fontcolor' to value 'yellow'
[Parsed_drawtext_0 @ 0000028418648380] Setting 'box' to value '1'
[Parsed_drawtext_0 @ 0000028418648380] Setting 'boxcolor' to value 'black'
[Parsed_drawtext_0 @ 0000028418648380] Setting 'x' to value '(W-tw)/2'
[Parsed_drawtext_0 @ 0000028418648380] Setting 'y' to value 'H-th-10'
[Parsed_drawtext_0 @ 0000028418648380] Setting 'text' to value 'Time: %{pts:hms}'
Fontconfig error: Cannot load default config file: No such file: (null)
[Parsed_drawtext_0 @ 0000028418648380] Using "C:/Windows/fonts\mingliub.ttc"
[graph 0 input from stream 0:0 @ 000002841a281880] Setting 'video_size' to value '640x480'
[graph 0 input from stream 0:0 @ 000002841a281880] Setting 'pix_fmt' to value '28'
[graph 0 input from stream 0:0 @ 000002841a281880] Setting 'time_base' to value '1/1000000'
[graph 0 input from stream 0:0 @ 000002841a281880] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:0 @ 000002841a281880] Setting 'frame_rate' to value '15/1'
[graph 0 input from stream 0:0 @ 000002841a281880] w:640 h:480 pixfmt:bgra tb:1/1000000 fr:15/1 sar:0/1
[format @ 000002841a2830c0] Setting 'pix_fmts' to value 'yuv420p'
[auto_scale_0 @ 000002841a282500] w:iw h:ih flags:'' interl:0
[format @ 000002841a2830c0] auto-inserting filter 'auto_scale_0' between the filter 'Parsed_drawtext_0' and the filter 'format'
[AVFilterGraph @ 000002841a26ffc0] query_formats: 4 queried, 3 merged, 1 already done, 0 delayed
[auto_scale_0 @ 000002841a282500] w:640 h:480 fmt:bgra sar:0/1 -> w:640 h:480 fmt:yuv420p sar:0/1 flags:0x0
[Parsed_drawtext_0 @ 0000028418648380] n:0 t:0.000000 text_w:437 text_h:35 x:101 y:435
[h264_nvenc @ 000002841864b1c0] Using device cuda0 (type cuda) with h264_nvenc encoder.
[h264_nvenc @ 000002841864b1c0] Loaded lib: nvcuda.dll
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuInit
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuDeviceGetCount
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuDeviceGet
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuDeviceGetAttribute
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuDeviceGetName
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuDeviceComputeCapability
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuCtxCreate_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuCtxSetLimit
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuCtxPushCurrent_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuCtxPopCurrent_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuCtxDestroy_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemAlloc_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemAllocPitch_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemAllocManaged
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemsetD8Async
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemFree_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemcpy
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemcpyAsync
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemcpy2D_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemcpy2DAsync_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemcpyHtoD_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemcpyHtoDAsync_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemcpyDtoH_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemcpyDtoHAsync_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemcpyDtoD_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMemcpyDtoDAsync_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuGetErrorName
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuGetErrorString
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuCtxGetDevice
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuDevicePrimaryCtxRetain
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuDevicePrimaryCtxRelease
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuDevicePrimaryCtxSetFlags
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuDevicePrimaryCtxGetState
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuDevicePrimaryCtxReset
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuStreamCreate
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuStreamQuery
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuStreamSynchronize
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuStreamDestroy_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuStreamAddCallback
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuEventCreate
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuEventDestroy_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuEventSynchronize
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuEventQuery
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuEventRecord
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuLaunchKernel
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuLinkCreate
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuLinkAddData
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuLinkComplete
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuLinkDestroy
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuModuleLoadData
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuModuleUnload
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuModuleGetFunction
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuModuleGetGlobal
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuTexObjectCreate
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuTexObjectDestroy
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuGLGetDevices_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuGraphicsGLRegisterImage
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuGraphicsUnregisterResource
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuGraphicsMapResources
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuGraphicsUnmapResources
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuGraphicsSubResourceGetMappedArray
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuDeviceGetUuid
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuImportExternalMemory
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuDestroyExternalMemory
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuExternalMemoryGetMappedBuffer
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuExternalMemoryGetMappedMipmappedArray
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMipmappedArrayGetLevel
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuMipmappedArrayDestroy
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuImportExternalSemaphore
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuDestroyExternalSemaphore
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuSignalExternalSemaphoresAsync
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuWaitExternalSemaphoresAsync
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuArray3DCreate_v2
[h264_nvenc @ 000002841864b1c0] Loaded sym: cuArrayDestroy
[h264_nvenc @ 000002841864b1c0] Cannot load optional cuEGLStreamProducerConnect
[h264_nvenc @ 000002841864b1c0] Cannot load optional cuEGLStreamProducerDisconnect
[h264_nvenc @ 000002841864b1c0] Cannot load optional cuEGLStreamConsumerDisconnect
[h264_nvenc @ 000002841864b1c0] Cannot load optional cuEGLStreamProducerPresentFrame
[h264_nvenc @ 000002841864b1c0] Cannot load optional cuEGLStreamProducerReturnFrame
[h264_nvenc @ 000002841864b1c0] Loaded lib: nvEncodeAPI64.dll
[h264_nvenc @ 000002841864b1c0] Loaded sym: NvEncodeAPICreateInstance
[h264_nvenc @ 000002841864b1c0] Loaded sym: NvEncodeAPIGetMaxSupportedVersion
[h264_nvenc @ 000002841864b1c0] Loaded Nvenc version 11.1
[h264_nvenc @ 000002841864b1c0] Nvenc initialized successfully
[avi @ 000002841864a440] reserve_index_space:0 master_index_max_size:256
[avi @ 000002841864a440] duration_est:36000.000, filesize_est:9.2GiB, master_index_max_size:256
Output #0, avi, to 'output.avi':
  Metadata:
    ISFT            : Lavf59.16.100
  Stream #0:0, 0, 1/15: Video: h264 (Main), 1 reference frame (H264 / 0x34363248), yuv420p(tv, progressive), 640x480 (0x0), 0/1, q=2-31, 2000 kb/s, 15 fps, 15 tbn
    Metadata:
      encoder         : Lavc59.18.100 h264_nvenc
    Side data:
      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: N/A
Clipping frame in rate conversion by 0.000008
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[Parsed_drawtext_0 @ 0000028418648380] n:1 t:0.066645 text_w:437 text_h:35 x:101 y:435
Clipping frame in rate conversion by 0.000313
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[Parsed_drawtext_0 @ 0000028418648380] n:2 t:0.133311 text_w:437 text_h:35 x:101 y:435
Clipping frame in rate conversion by 0.000328
[Parsed_drawtext_0 @ 0000028418648380] n:3 t:0.199978 text_w:437 text_h:35 x:101 y:435
Clipping frame in rate conversion by 0.000328
[Parsed_drawtext_0 @ 0000028418648380] n:4 t:0.266645 text_w:437 text_h:35 x:101 y:435
Clipping frame in rate conversion by 0.000313
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:5 t:1.069905 text_w:437 text_h:35 x:101 y:435
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:6 t:1.089485 text_w:437 text_h:35 x:101 y:435
Past duration 0.657722 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:7 t:1.110465 text_w:437 text_h:35 x:101 y:435
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:8 t:1.129744 text_w:437 text_h:35 x:101 y:435
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:9 t:1.150351 text_w:437 text_h:35 x:101 y:435
*** dropping frame 8 from stream 0 at ts 17
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:10 t:1.171888 text_w:437 text_h:35 x:101 y:435
*** dropping frame 8 from stream 0 at ts 17
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:11 t:1.194847 text_w:437 text_h:35 x:101 y:435
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:12 t:1.214154 text_w:437 text_h:35 x:101 y:435
*** dropping frame 9 from stream 0 at ts 18
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)trate=1691.0kbits/s dup=0 drop=3 speed=2.33x
[Parsed_drawtext_0 @ 0000028418648380] n:13 t:1.274181 text_w:437 text_h:35 x:101 y:435
Past duration 0.887276 too large
*** dropping frame 9 from stream 0 at ts 18
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:14 t:1.336330 text_w:437 text_h:35 x:101 y:435
Past duration 0.955040 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:15 t:1.415467 text_w:437 text_h:35 x:101 y:435
Past duration 0.767982 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:16 t:1.477474 text_w:437 text_h:35 x:101 y:435
Past duration 0.837883 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:17 t:1.541485 text_w:437 text_h:35 x:101 y:435
Past duration 0.877724 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:18 t:1.620175 text_w:437 text_h:35 x:101 y:435
Past duration 0.697365 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:19 t:1.666711 text_w:437 text_h:35 x:101 y:435
Past duration 0.999321 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:20 t:1.745775 text_w:437 text_h:35 x:101 y:435
Past duration 0.813362 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)trate=1209.9kbits/s dup=0 drop=4 speed= 1.7x
[Parsed_drawtext_0 @ 0000028418648380] n:21 t:1.809506 text_w:437 text_h:35 x:101 y:435
Past duration 0.857399 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:22 t:1.872207 text_w:437 text_h:35 x:101 y:435
Past duration 0.916893 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:23 t:1.934717 text_w:437 text_h:35 x:101 y:435
Past duration 0.979240 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:24 t:2.012419 text_w:437 text_h:35 x:101 y:435
Past duration 0.813713 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:25 t:2.074817 text_w:437 text_h:35 x:101 y:435
Past duration 0.877739 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:26 t:2.137384 text_w:437 text_h:35 x:101 y:435
Past duration 0.939232 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:27 t:2.201512 text_w:437 text_h:35 x:101 y:435
Past duration 0.977318 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)trate= 953.3kbits/s dup=0 drop=4 speed=1.45x
[Parsed_drawtext_0 @ 0000028418648380] n:28 t:2.281237 text_w:437 text_h:35 x:101 y:435
Past duration 0.781441 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:29 t:2.344283 text_w:437 text_h:35 x:101 y:435
Past duration 0.835747 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:30 t:2.407006 text_w:437 text_h:35 x:101 y:435
Past duration 0.894905 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:31 t:2.469195 text_w:437 text_h:35 x:101 y:435
Past duration 0.962074 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:32 t:2.548874 text_w:437 text_h:35 x:101 y:435
Past duration 0.766884 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:33 t:2.613179 text_w:437 text_h:35 x:101 y:435
Past duration 0.802315 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:34 t:2.675309 text_w:437 text_h:35 x:101 y:435
Past duration 0.870354 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:35 t:2.738419 text_w:437 text_h:35 x:101 y:435
Past duration 0.923714 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)trate=1534.5kbits/s dup=0 drop=4 speed=1.35x
[Parsed_drawtext_0 @ 0000028418648380] n:36 t:2.801307 text_w:437 text_h:35 x:101 y:435
Past duration 0.980385 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:37 t:2.879768 text_w:437 text_h:35 x:101 y:435
Past duration 0.803474 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:38 t:2.941733 text_w:437 text_h:35 x:101 y:435
Past duration 0.874001 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:39 t:3.004136 text_w:437 text_h:35 x:101 y:435
Past duration 0.937950 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:40 t:3.067217 text_w:437 text_h:35 x:101 y:435
Past duration 0.991737 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:41 t:3.145538 text_w:437 text_h:35 x:101 y:435
Past duration 0.816917 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:42 t:3.208544 text_w:437 text_h:35 x:101 y:435
Past duration 0.871834 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:43 t:3.271879 text_w:437 text_h:35 x:101 y:435
Past duration 0.921806 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)trate=1284.0kbits/s dup=0 drop=4 speed=1.29x
[Parsed_drawtext_0 @ 0000028418648380] n:44 t:3.336002 text_w:437 text_h:35 x:101 y:435
Past duration 0.959969 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:45 t:3.413966 text_w:437 text_h:35 x:101 y:435
Past duration 0.790504 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:46 t:3.475901 text_w:437 text_h:35 x:101 y:435
Past duration 0.861473 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:47 t:3.539417 text_w:437 text_h:35 x:101 y:435
Past duration 0.908745 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:48 t:3.601759 text_w:437 text_h:35 x:101 y:435
Past duration 0.973610 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:49 t:3.680202 text_w:437 text_h:35 x:101 y:435
Past duration 0.796959 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:50 t:3.741462 text_w:437 text_h:35 x:101 y:435
Past duration 0.878059 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)trate=1123.5kbits/s dup=0 drop=4 speed=1.23x
[Parsed_drawtext_0 @ 0000028418648380] n:51 t:3.804130 text_w:437 text_h:35 x:101 y:435
Past duration 0.938042 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:52 t:3.880606 text_w:437 text_h:35 x:101 y:435
Past duration 0.790901 too large
[gdigrab @ 000002841a213800] Cursor pos (628,197) -> (628,197)
[Parsed_drawtext_0 @ 0000028418648380] n:53 t:3.942686 text_w:437 text_h:35 x:101 y:435
Past duration 0.859703 too large

The recording show frames with following timestamps (ss.mmm):

00.000
00.067
00.133
00.200
00.267
01.070
... a break of almost 1 second ... all frames are identical here, and display the timestamp 01.070
01.089
01.110
01.172
01.274
01.336
01.415
... smooth run from here on

Notice the missing frames between 00.267 and 01.070.

Is there any workaround for this issue? Can the NVidia HW acc dlls be loaded before screen recording starts? Is there some buffer that can be increased to keep those dropped frames in a queue? I tried with bufsize 100MB and rtbufsize 100MB but no success.

Change History (2)

comment:1 by Marton Balint, 23 months ago

Priority: importantnormal

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.

comment:2 by Marton Balint, 22 months ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.