yuka-friends / Windrecorder

Windrecorder is a memory search app by records everything on your screen in small size, to let you rewind what you have seen, query through OCR text or image description, and get activity statistics.
GNU General Public License v2.0
2.91k stars 126 forks source link

自动灵活截图下FFmpeg 占用大量CPU | FFmpeg consumes too much CPU in Automatic Flexible Screenshots mode #206

Open RTLiang opened 2 months ago

RTLiang commented 2 months ago

CPU为 AMD 5800H 使用自动截图模式时,ffmpeg 有时会占用大量CPU和内存导致电脑很卡,推测是因为将图片合并成视频时占用大量资源。希望能加一个开关限制ffmpeg使用核心数或者线程数(内存占用太多没问题CPU占用太多电脑太卡很难受😭) image CPU Model: AMD 5800H When using Automatic Flexible Screenshots mode, ffmpeg sometimes consume too much CPU and RAM, making my pc lag. I assume it is because ffmpeg needs huge amount of resources to convert screenshots to video. I hope there is a switch to limit CPU cores or thread ffmpeg use.(It's okay for me that ffmpeg uses too much RAM, but high usage of CPU make my computer lag is frustrating 😭)

Antonoko commented 2 months ago

好反馈!在自动截图模式下 ffmpeg 仅用来将 opencv 合成的大体积视频转码为小体积视频,没想到会这么占用资源😭(我想想有什么办法可以限制ffmpeg的占用……或者可以尝试将此处的压缩格式设置为264+使用显卡nvenc(nvidia)或amf(amd)进行压制(若有(或者勾选节能选项,让电脑仅在无人使用时将截图压制成视频

image