Inserting an watermarked frame into a video

2 views (last 30 days)
Imran
Imran on 28 Jul 2018
Answered: Walter Roberson on 28 Jul 2018
I have extracted one frame from a video and then performed some operation on that frame. Now I want to insert this frame into the video. But when I insert the frame, it's values are changed. But I want to insert the frame into the video without changing its values.How can this be done? I have use avi video format.

Answers (2)

Image Analyst
Image Analyst on 28 Jul 2018
Well, you're doing it incorrectly. What else can I say, given what you've provided us?
Make sure you're putting back a frame of the same data type (RGB uint8).

Walter Roberson
Walter Roberson on 28 Jul 2018
When you create the VideoWriter object, you need to specify the profile as one of 'Uncompressed AVI', 'Indexed AVI', or 'Grayscale AVI'
Note: when I tested using Uncompressed AVI, no codec information was stored; likewise when I let it use the default Motion JPEG (which is a lossy compression.)

Products


Release

R2014b

Community Treasure Hunt

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

Start Hunting!