Created
August 9, 2018 17:50
-
-
Save shussekaido/4f9517ac68dc794fb4ac7455710bada1 to your computer and use it in GitHub Desktop.
Throttle ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reference: | |
https://lorenzo.mile.si/2016/07/limiting-cpu-usage-and-server-load-with-ffmpeg/ | |
https://github.com/opsengine/cpulimit | |
brew install cpulimit | |
Run ffmpeg with: | |
nice -19 cpulimit -l 30 -- ffmpeg blah blah -threads 1 /tmp/yourvideo.mp4 | |
Note that '-threads 1' needs to be the last option. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment