MATLAB Answers

How can I overlay one video on top of another, one with a reduced opacity?

2 views (last 30 days)
Rifat Mahammod
Rifat Mahammod on 23 Jul 2021
Answered: Shubham Khatri on 27 Jul 2021
Hello,
I have two separate videos. I need to create an output video that plays both videos on top of each other, as if it was one video. One video should be slightly transparent so that both videos can be seen. In addition, the transparent video needs to starts at a frame x and end at a frame y of the other video. I am a beginner, so I am not sure where to start.
Any help will be appreciated!

Answers (1)

Shubham Khatri
Shubham Khatri on 27 Jul 2021
Hello,
To my understanding, you can do this by splitting the video frame by frame and then overlaying each frame. Then combining all the frames to generate video. Refer to this answer in the community for reference.
Hope it helps.

Community Treasure Hunt

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

Start Hunting!

Translated by