jgh- / VideoCore-Inactive

*No longer in development* Please see https://github.com/unpause-live/SwiftVideo
MIT License
1.48k stars 538 forks source link

How to remove the watermark image by addPixelBufferSource? #347

Open Jasonzn opened 8 years ago

Jasonzn commented 8 years ago

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 commented 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.

miketw2014 commented 7 years ago

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

Jasonzn commented 7 years ago

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 .

iHandle commented 7 years ago

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.