VideoCore-Inactive icon indicating copy to clipboard operation
VideoCore-Inactive copied to clipboard

How to remove the watermark image by addPixelBufferSource?

Open Jasonzn opened this issue 8 years ago • 4 comments

I've tried to add the watermark image with dynamic timestamp label by addPixelBufferSource function. But I need to remove the former image before adding a new image by addPixelBufferSource.

Does anyone know how to do this?

Thank you.

Jason

Jasonzn avatar Oct 03 '16 05:10 Jasonzn

The watermark image must be removed because the different image will mix together. So I must remove the old image added by addPixelBufferSource recovery the original camera preview screen.

Jasonzn avatar Oct 03 '16 07:10 Jasonzn

Any updates on this? Looking for a way to remove the watermark later on during the streaming session.

miketw2014 avatar May 10 '17 05:05 miketw2014

No, I don't find the way yet until now. Sorry...

Jason

Madhawan Misra [email protected]於 2017年5月10日 週三,下午1:12寫道:

Any updates on this? Looking for a way to remove the watermark later on during the streaming session.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jgh-/VideoCore/issues/347#issuecomment-300375675, or mute the thread https://github.com/notifications/unsubscribe-auth/AVft6UOMrSrmZUSpaghsgC3WnOLsvXx4ks5r4UckgaJpZM4KMQeQ .

Jasonzn avatar May 10 '17 05:05 Jasonzn

I am so excited to find that you also want to remove a watermark. To do this, I add the belowing function at VCSimpleSession.mm

-(void) removePixelBufferSource {
    m_videoMixer->unregisterSource(m_pixelBufferSource);
}

It really works. However, I have found that sometimes it will crashes at GLESVideoMixer.h . I have no idea how to fix this problem, I hope you will find something.

iHandle avatar Jun 06 '17 07:06 iHandle