[FFmpeg-user] AMF hardware acceleration duplicating frames at 60 fps

Felipe pi pe pipernene at gmail.com
Sun Mar 24 02:34:07 EET 2019


I'm trying to record my screen with gdigrab at 60 fps and save it to an mp4 file. This works flawlessly at 30 fps, but once I up it to 60 fps it starts to duplicate almost all frames and results in what I estimate is a ~10 fps video file. This is my command line: ffmpeg -f gdigrab -framerate 60 -i desktop -c:v h264_amf -y out.mp4

And this is the output after recording for a bit:
ffmpeg version N-93388-g6cfa173303 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20190212
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.103 / 58. 47.103
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
[gdigrab @ 000001f85b1e93c0] Capturing whole desktop as 1366x768x32 at (0,0)
[gdigrab @ 000001f85b1e93c0] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, gdigrab, from 'desktop':
  Duration: N/A, start: 1552938438.353976, bitrate: 2014274 kb/s
    Stream #0:0: Video: bmp, bgra, 1366x768, 2014274 kb/s, 60 fps, 1000k tbr, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (bmp (native) -> h264 (h264_amf))
Press [q] to stop, [?] for help
Output #0, mp4, to 'asd.mp4':
  Metadata:
    encoder         : Lavf58.26.101
    Stream #0:0: Video: h264 (h264_amf) (avc1 / 0x31637661), yuv420p, 1366x768, q=-1--1, 2000 kb/s, 60 fps, 15360 tbn, 60 tbc
    Metadata:
      encoder         : Lavc58.47.103 h264_amf
More than 1000 frames duplicated    8960kB time=00:00:19.11 bitrate=3839.6kbits/s dup=971 drop=0 speed=   1x
frame= 2418 fps= 60 q=-0.0 Lsize=   19590kB time=00:00:40.28 bitrate=3983.9kbits/s dup=2063 drop=0 speed=0.998x
video:19580kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.054036%

I'm using a 2400G with its integrated Vega 11 GPU on Windows 10



More information about the ffmpeg-user mailing list