Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RTLiang opened this issue Jul 19, 2024 · 1 comment

Comments

@RTLiang
Copy link

RTLiang commented Jul 19, 2024

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
Copy link
Member

Antonoko commented Jul 20, 2024

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

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants