This function allows embedding one video into a another Main video, with many options.
Updated 7 Feb 2015

View License

The goal of this function is to embed a given video frames into another Main video.
The basic use is to highlight regions of interest, or render/annotate selected video frames. Another example is a case you wish to hide something on the video- like someone face etc, by occluding it with other dynamic scene frames. Video montage is naturally the most general case. This function allows you to enter one video frames into other video frames, where user chooses the frames, the image mask ROI, embedding position inside video, image opacity, inserted frame angle etc. This is quite powerful tool allowing us to plant a group of different new objects into a given video easily and quickly.
See results of Example\demo in https://www.youtube.com/watch?v=qjcchqyedmw

Cite As

Nikolay S. (2024). embedVideo2Video.zip (https://www.mathworks.com/matlabcentral/fileexchange/47734-embedvideo2video-zip), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

In Matlab 2014b and later, original folder became read only- had to replace the resulting video file destination.
Added Demo script.