Display two videos together then output as a merged video on a single screen

前端 未结 3 766
北恋
北恋 2021-02-14 01:35

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

3条回答
  •  名媛妹妹
    2021-02-14 01:43

    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:

    • do you want to read from a file/mem/url?
    • do you want to save to a file/mem/url?
    • do you need realtime processing?
    • do you need something more than simple picture-in-picture?

提交回复
热议问题