Open Jasonzn opened 8 years ago
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.
Any updates on this? Looking for a way to remove the watermark later on during the streaming session.
No, I don't find the way yet until now. Sorry...
Jason
Madhawan Misra notifications@github.com於 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 .
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.
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