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.
0 个评论
回答(2 个)
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).
0 个评论
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.)
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!