Take the 2-minute tour ×
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It's 100% free, no registration required.

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.

share|improve this question
    
Relevant questions on other stackexchange sites: stackoverflow.com/q/8299252/1256347 and superuser.com/q/549448/141595 –  Bart Arondson Apr 7 at 13:41

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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