ffmpeg 使用最少的 CPU 使用率或硬件加速录制

ffmpeg 使用最少的 CPU 使用率或硬件加速录制

如何使用 ffmpeg 以最少的 CPU 使用率录制高清视频或使用集成英特尔 GPU 的硬件加速?

目前我的 CPU 使用率至少为 20%(使用 -preset 更快),我希望以最多 10% 的 CPU 使用率进行录制(60 fps 和 hd)。这是我的配置:

gpu:HD Graphics 630 proc:64 位处理器:4 × Intel® Core™ i5-7500T CPU @ 2.70GHz

我已经尝试硬件加速:

ffmpeg -f x11grab -i :0 -c:v h264_vaapi output.mp4

只有我有这个错误

    Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0

我想要一个答案来告诉我:一种以最低 10% 的 CPU 使用率运行 ffmpeg 的方法,或者帮助我运行硬件加速(请不要告诉我使用 obs,我需要 ffmpeg 来编写项目)。

相关内容