Inserting an watermarked frame into a video

1 次查看(过去 30 天)
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.

回答(2 个)

Image Analyst
Image Analyst 2018-7-28
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 2018-7-28
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.)

产品


版本

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by