我用FFMPEG
它来录制桌面,正常情况下工作正常,但一旦UAC POPUP
出现任何问题,它就会停止工作并退出并出现错误。 Failed to capture image (error 5)
有没有解决方案可以解决此错误或任何其他建议。这是我的 ffmpeg 字符串
ffmpeg -framerate 20 -f gdigrab -video_size 800x600 -i desktop -vcodec h264 -pix_fmt yuv420p -preset ultrafast -vsync vfr -b:v 1.5M -bufsize 2M -y d:\output.mp4
这是 UAC 弹出时的错误
[gdigrab @ 0104e720] Failed to capture image (error 5)
desktop: I/O error
frame= 249 fps= 20 q=-1.0 Lsize= 1334kB time=00:00:12.75 bitrate= 857.2kbits/s dup=0 drop=1 speed=1.01x
video:1332kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.153446%
[libx264 @ 0276f3a0] frame I:1 Avg QP:25.20 size: 72565
[libx264 @ 0276f3a0] frame P:248 Avg QP:10.15 size: 5205
[libx264 @ 0276f3a0] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0276f3a0] mb P I16..4: 2.1% 0.0% 0.0% P16..4: 9.8% 0.0% 0.0% 0.0% 0.0% skip:88.2%
[libx264 @ 0276f3a0] coded y,uvDC,uvAC intra: 38.2% 33.4% 32.2% inter: 4.2% 5.3% 4.7%
[libx264 @ 0276f3a0] i16 v,h,dc,p: 72% 26% 2% 1%
[libx264 @ 0276f3a0] i8c dc,h,v,p: 59% 20% 20% 1%
[libx264 @ 0276f3a0] kb/s:852.28
Windows 7 及以上所有版本(管理模式或简单模式相同)网络上和 cmd 中显示最新版本的 ffmpeg 3.4
ffmpeg version N-86755-g0780ad9 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.1.0 (GCC)
configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 67.100 / 55. 67.100
libavcodec 57.100.104 / 57.100.104
libavformat 57. 75.100 / 57. 75.100
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 95.100 / 6. 95.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
答案1
您可以在录制期间禁用 UAC。