Skip to content

Instantly share code, notes, and snippets.

@Adyg
Last active November 17, 2015 16:51
Show Gist options
  • Save Adyg/9137832 to your computer and use it in GitHub Desktop.
Save Adyg/9137832 to your computer and use it in GitHub Desktop.
CPU limit for avconv and imagemagick convert
#limit imagemagick convert to 40% cpu
cpulimit -l 40 -e convert.im6
#limit avconv to 40% cpu
cpulimit -l 40 -e avconv
#build transition images. nice -n to ensure nothing stalls because of it
nice -n 19 convert img1.jpg img2.jpg -delay 10 -morph 200 tmp_zl.png
#build video from transition images. again note "nice -n"
avconv -i 'tmp_zl-%d.png' -r 10 out.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment