##FFmpeg greenscreen process
ffmpeg -hwaccel videotoolbox -i background.jpg -i out.mp4 -filter_complex "[1:v]colorkey=0x34d454:0.3:0.15[ckout];[0:v][ckout]overlay[despill];[despill] despill=green[colorspace];[colorspace]format=yuv420p[out]" -map "[out]" output.mp4
###Explanation
*hwaccel enable hardware accelartion profile videotoolbok is avlaiable on my mac for this codec *-i is the input, the greenscreen video is second and the background image is first *-filter_complex chains up the filters in a string *colorkey provides the color of the green screen in hex, the threshold to match (higher is more) and the blend (higher is more) *overlay overlays the video on the second input *despill removes green artifacts left form the colorkey *format=yuv420p sets a specific color space for dumb players like quicktime *-map puts all the filters together
This works fine however am able to see blue patch for first few milliseconds. how to get rid of this?
