Azzera filtri
Azzera filtri

Inserting an watermarked frame into a video

1 visualizzazione (ultimi 30 giorni)
Imran
Imran il 28 Lug 2018
Risposto: Walter Roberson il 28 Lug 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.

Risposte (2)

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

Prodotti


Release

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by