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

CPU limit ffmpeg #47

Open
lohqua opened this issue Jun 16, 2016 · 1 comment
Open

CPU limit ffmpeg #47

lohqua opened this issue Jun 16, 2016 · 1 comment

Comments

@lohqua
Copy link

lohqua commented Jun 16, 2016

Is there a way to limit the CPU usage when this gem starts up ffmpeg?

Just using the examples, ffmpeg will use 99% of the CPU making the rest of the app totally unresponsive.

@ghost
Copy link

ghost commented Jun 17, 2016

I'm trying to wrap ffmpeg inside https://github.com/opsengine/cpulimit on FreeBSD but so far it's still using 100%:

mv /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg_raw
echo '/usr/local/bin/cpulimit --limit 20 /usr/local/bin/ffmpeg_raw "$@"' > /usr/local/bin/ffmpeg
chmod +x /usr/local/bin/ffmpeg

Could you try and see if this works?

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

1 participant