To use a webcam or import video you can use the core library or
GSVideo. In the end, both webcam input and movie frames are just images. You can mix images in many ways. For more information, see the
reference and the available examples with Processing (libraries).