This question may sound a little bit complex or ambiguous, but I\'ll try to make it as clear as I can. I have done lots of Googling and spent lots of time but didn\'t find anyth
I would start with JavaCV. It's quite good and flexible. It should allow you to grab frames, composite them and write them back to a file. Use FFmpegFrameGrabber and Recorder classes. The composition can be done manually.
The rest of the answer depends on few things: