Skip to content

Instantly share code, notes, and snippets.

@samelie
Created February 23, 2016 15:25
Show Gist options
  • Save samelie/0f89fca4471a8a73fe4b to your computer and use it in GitHub Desktop.
Save samelie/0f89fca4471a8a73fe4b to your computer and use it in GitHub Desktop.
colorkey video and image
convert out.png -resize "640x475^" -gravity center -crop 640x475+0-70 l.jpg
ffmpeg -i out.gif -i l.jpg -filter_complex "[1:v]colorkey=0xff0000:0.5:0.5[ckout];[0:v][ckout]overlay[out]" -map "[out]" -y output.gif
0.5 is intensity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment