Do you know about any video processing software that can do chroma key of two video files, but run from command line as well?

I have two static video files (let's say MP4, same length) - one with green bg and another to be used as background video. I need to do chroma key effect. And it doesn't have to be perfect.

Two video files -> [software] -> one output video. Just so.


1 Answer 1


While not a direct solution, AVISynth supports creating a mask from a Chroma key using ColorKeyMask. You can then use that mask to blend the two layers together by using Mask on the top layer and then Layering them together.

You could then just feed files in to the script and use FFMPEG or something similar to write out the frame stream from AVISynth.

Note that you will still need to adjust the color of the background and the tolerance if they lighting isn't really consistent between shots of the green background though.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.