Skip to content

Instantly share code, notes, and snippets.

@shussekaido
Created August 9, 2018 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shussekaido/4f9517ac68dc794fb4ac7455710bada1 to your computer and use it in GitHub Desktop.
Save shussekaido/4f9517ac68dc794fb4ac7455710bada1 to your computer and use it in GitHub Desktop.
Throttle ffmpeg
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