Video overlay with video

Hi.

I need to check if there’s an option to put a layer of video on another video with lower opacity in the live view.

My scenario is a thermal camera stream that I stream and I want to put it on top of a corresponding video (they overlap).

Is there any example of how I can do it?

Yes. The samples we have is not exactly video on video but more like drawing a figure on the video. In theory I am guessing the same methods might work. I propose the try the Analytics Overlay plugin samples to get a first glimpse of how this works.

https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/analyticsoverlay/readme.html&tree=tree_1.html

https://github.com/milestonesys

Thanks.

I’ve checked this sample, but I didn’t manager to get how to receive the other stream’s frames in order to use them.

How to retrieve live stream images can be seen in samples like MediaLiveViewer (JPEG) and Media RGB Video Enhancement Live (bitmap).

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/medialiveviewer/readme.html&tree=tree_2.html

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/mediargbvideoenhancementlive/readme.html&tree=tree_2.html

The more I think about it I fear that you will not be able to fetch and apply the second cameras images in a live scenario. I will ask my colleagues in Milestone Development if they think it might work or if they see another and perhaps better way to achieve what you ask.